From ssharkins at gmail.com Tue Feb 1 07:14:09 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 08:14:09 -0500 Subject: [AccessD] From a reader References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p> <58225A873021488D947CD8EBB29A382E@nant> Message-ID: Thank you Shamil -- wow... I am impressed, but then, you always do impress me. :) Susan H. > Hello Susan -- > > What is given? - MS SQL backend with billions of rows? > What is missing? - Relatively inexpensive way to implement web solutions > to > present MS SQL backend data's small subsets/summary information? > > if the answer on both of the above questions is 'Yes' then I suppose > simple > ASP.NET applications + .NET MS ReportViewer control can be used. > One example: http://shamils-19.hosting.parking.ru/nw4 (ms access backend > is > used here but using MS SQL backend doesn't differ a lot - in fact that > online MS Access backend-based solution is a port from original MS > SQL-based > backend solution) > > Some informational links on used for the above sample reporting > technolgies: > > http://www.gotreportviewer.com/ > http://technet.microsoft.com/en-us/library/dd220460.aspx > > And here MS WebMatrix - it wasn't used in the above sample but it can be > used by your reader I suppose: > http://www.asp.net/webmatrix > http://weblogs.asp.net/scottgu/archive/2010/07/06/introducing-webmatrix.aspx From jimdettman at verizon.net Tue Feb 1 07:56:58 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 01 Feb 2011 08:56:58 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Susan, There is this company: www.eqldata.com Which will let you take your Access app as is and run it over the web through a web browser. Don't know of anyone that's used them yet. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 08:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. > Well, there are a few things that come immediately to mind. Using a MS > Access FE with SQL backend will work great (fast, reliable etc) but she is > going to need to understand how you need to set up access and the > connection to the SQL Server using ADO and the connection strings. > > Using linked tables and bound forms are going to cripple performance and > probably reliablility as well. Not linked tables and no bound forms. > > Each user should have their own FE version (locked down as an MDE in the > old language). The Front end should basically be an empty shell with > unbound forms. You only pull in the data you need, when you need it and > absolutely make the stored procs on the SQL Server do all the heavy > lifting. Understand how to use pass thru queries to pull data into > Access. > > You should only push (write) back to the server anything that has been > changed and needs to be updated. Normally much of the data can be pulled > in as read only anyway, this goes for combo box data as well (again I pull > into Access from the server using a Just in Time approach). > > Sharepoint isn't going to help at this stage, although I believe that > Access 2010 is rather neat with sharepoint integration. I have no > experience of it though, just what I have read. > > If you want true web based, you really should just bite the bullet and use > a C#.net (say ASP.net) front end to SQL Server back. ok, it will take > time and money to develop, but once you have it in place it will deliver. > > This reminds me of the ol' business triangle. Choose any two options, but > lose the 3rd option. Cheap, Fast, Good. > > I hope she can go for "Good" and "Fast" and make the investment in > effort/money. Of course that is not always an option... Be good to read > what others have to say. > > cheers > Darryl. > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, 1 February 2011 12:22 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] From a reader > > I've been corresponding (lightly) with a reader who needs to upsize an > Access 2007 database to SQL Server -- ultimately, she's looking for a web > solution. It sounds like an excruciating application -- she said it takes > hours to run queries. I think she's looking for two things. First, she > wants something to analyze the Access database to make it more efficient. > (I haven't asked who built it to begin with, her or a professional > developer.) I told her to start with the utilities already there, the > performance and table analyzers. Are there any third-party products that > do more or work better? Second, she wants a plug-in GUI -- I've never > heard of such a thing, but I'll let you guys read her request and if you > have something to suggest, I'll relay it. Thanks! > > Susan H. > "What I am asking is: Is there a design solution that would make a large > sluggish access application scalable, faster, easier to distribute to > remote sites? All that I have read to date - is that SQL Server as the > best and most practiced solution. But, I still see that as "tons" of data > still being pushed between ACCESS and SQL Server - so how is that really > better. Is there a WEB or Sharepoint solution that would work as the > ACCESS GUI front-end and a backend SQL Server to crunch the billions of > rows into the summary levels of data?" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________________________________ ___________ > > The information transmitted in this message and its attachments (if any) > is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, dissemination or other use of, or taking of any action in > reliance > upon this information, by persons or entities other than the intended > recipient is > prohibited. > > If you have received this in error, please contact the sender and delete > this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute > the information contained in this e-mail and any attached files, with the > permission > of the sender. > > This message has been scanned for viruses. > ____________________________________________________________________________ ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Feb 1 08:04:58 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 09:04:58 -0500 Subject: [AccessD] From a reader References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <851BE7E57C5043D8B0433DF1356CD092@salvationomc4p> Thanks Jim -- thanks everyone. I think you guys have really helped her! Susan H. > Susan, > > There is this company: > > www.eqldata.com > > Which will let you take your Access app as is and run it over the web > through a web browser. > > Don't know of anyone that's used them yet. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Monday, January 31, 2011 08:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > Darryl -- I agree. She's looking for a canned solution and I've told her > there isn't any such thing -- but I thought I'd ask. You never know. :) > > Susan H. > > >> Well, there are a few things that come immediately to mind. Using a MS >> Access FE with SQL backend will work great (fast, reliable etc) but she >> is > >> going to need to understand how you need to set up access and the >> connection to the SQL Server using ADO and the connection strings. >> >> Using linked tables and bound forms are going to cripple performance and >> probably reliablility as well. Not linked tables and no bound forms. >> >> Each user should have their own FE version (locked down as an MDE in the >> old language). The Front end should basically be an empty shell with >> unbound forms. You only pull in the data you need, when you need it and >> absolutely make the stored procs on the SQL Server do all the heavy >> lifting. Understand how to use pass thru queries to pull data into >> Access. >> >> You should only push (write) back to the server anything that has been >> changed and needs to be updated. Normally much of the data can be pulled >> in as read only anyway, this goes for combo box data as well (again I >> pull > >> into Access from the server using a Just in Time approach). >> >> Sharepoint isn't going to help at this stage, although I believe that >> Access 2010 is rather neat with sharepoint integration. I have no >> experience of it though, just what I have read. >> >> If you want true web based, you really should just bite the bullet and >> use > >> a C#.net (say ASP.net) front end to SQL Server back. ok, it will take >> time and money to develop, but once you have it in place it will deliver. >> >> This reminds me of the ol' business triangle. Choose any two options, >> but > >> lose the 3rd option. Cheap, Fast, Good. >> >> I hope she can go for "Good" and "Fast" and make the investment in >> effort/money. Of course that is not always an option... Be good to read >> what others have to say. >> >> cheers >> Darryl. >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> Sent: Tuesday, 1 February 2011 12:22 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] From a reader >> >> I've been corresponding (lightly) with a reader who needs to upsize an >> Access 2007 database to SQL Server -- ultimately, she's looking for a web >> solution. It sounds like an excruciating application -- she said it takes >> hours to run queries. I think she's looking for two things. First, she >> wants something to analyze the Access database to make it more efficient. >> (I haven't asked who built it to begin with, her or a professional >> developer.) I told her to start with the utilities already there, the >> performance and table analyzers. Are there any third-party products that >> do more or work better? Second, she wants a plug-in GUI -- I've never >> heard of such a thing, but I'll let you guys read her request and if you >> have something to suggest, I'll relay it. Thanks! >> >> Susan H. >> "What I am asking is: Is there a design solution that would make a large >> sluggish access application scalable, faster, easier to distribute to >> remote sites? All that I have read to date - is that SQL Server as the >> best and most practiced solution. But, I still see that as "tons" of data >> still being pushed between ACCESS and SQL Server - so how is that really >> better. Is there a WEB or Sharepoint solution that would work as the >> ACCESS GUI front-end and a backend SQL Server to crunch the billions of >> rows into the summary levels of data?" >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ____________________________________________________________________________ > ___________ >> >> The information transmitted in this message and its attachments (if any) >> is intended >> only for the person or entity to which it is addressed. >> The message may contain confidential and/or privileged material. Any >> review, >> retransmission, dissemination or other use of, or taking of any action in >> reliance >> upon this information, by persons or entities other than the intended >> recipient is >> prohibited. >> >> If you have received this in error, please contact the sender and delete >> this e-mail >> and associated material from any computer. >> >> The intended recipient of this e-mail may only use, reproduce, disclose >> or > >> distribute >> the information contained in this e-mail and any attached files, with the >> permission >> of the sender. >> >> This message has been scanned for viruses. >> > ____________________________________________________________________________ > ___________ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Feb 1 13:01:40 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:01:40 -0800 Subject: [AccessD] OT Yuma In-Reply-To: <001901cbbf11$9d3d7170$5bdea8c0@edz1> References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: My cousin lives in El Centro. She always wants us to come visit her. We're like, um, why don't you come out to us, by the beach. :) On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > > Yikes. > > I had an assignment in El Centro, not far > from Yuma, for a couple of months. > > The area brought a whole new meaning to > the word "hot". > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, January 27, 2011 1:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dual Monitors > > > > The 110 sounds like Phoenix. Did I guess correctly ? > > Even worse. Yuma. > > John W. Colby > www.ColbyConsulting.com > > > On 1/27/2011 3:05 PM, Edward Zuris wrote: > > > > When the Salmon come in to spawn, they > > would gather just a few miles from Everett > > near the San Juan area before heading to > > Canada or USA rivers. > > > > Great fishing, and very few people take > > advantage of it. > > > > I am in Albuquerque, NM. > > > > Starting in late May, or early June, the > > temperatures start climb up to the 100's. > > > > At the moment it is high dry cold winds > > with a few dust storms. Sometime maybe a > > half inch of snow every so often. After > > May it is total bake mode. But the desert > > and dry climate grows on you after awhile. > > > > I grew up in NM, so I know a number of good > > fishing holes. I go up into the mountains > > to fish for trout during the summer. But > > catching a ten pound king salmon really makes > > your day and puts any quarter pound mountain > > trout to shame. > > > > The 110 sounds like Phoenix. Did I guess > > correctly ? > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, January 27, 2011 10:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dual Monitors > > > > > > I grew up in the American southwest desert. > > 110 degrees F every day. I lived with my > > father for about 6 months in Everett > > Washington when I was a freshman in High School. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 1/27/2011 11:38 AM, Edward Zuris wrote: > >> > >> From what I hear from my friends overseas > >> a lot of computer related products in the > >> USA are rather inexpensive compared their > >> local markets. However, I am sure there > >> are places outside the USA has even cheaper > >> prices. > >> > >> Every Nation has its issues. Russian might, > >> or might not, be going back it's old USSR > >> ways. And in the USA we have more than our > >> fair share of crazy people. And we elect > >> a number of our crazies into high positions > >> into the government. > >> > >> Of the two, I'll think we are better off > >> with the cheaper computer monitors and some > >> crazies, in Congress. We also get to watch > >> them on CSPAN TV. It is like watching a > >> circus in slow motion. > >> > >> The USA has many cultures and climates. > >> > >> I live in the American Southwest desert. > >> One place I really liked was the American > >> Northwest. Fished for salmon around Everett. > >> Where John lives it can get hot and humid > >> in the summer, but there is good fishing > >> near by. I spent a summer near Asheville, > >> and the weekends at the Outer Banks. > >> > >> As far as I am concerned, Shamil, you are > >> welcome. > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > >> Salakhetdinov > >> Sent: Wednesday, January 26, 2011 12:56 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Dual Monitors > >> > >> > >> Hi John -- > >> > >> <<< > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >>>>> > >> That's a ridiculous price for St.Petersburg, Russia. > >> I should start thinking seriously how to get moved there in your > >> country... Especially taking into that Mr. Putin seems to be planning > > >> to get here at power on year 2012 for another 12 (or 14!?) years... > >> > >> Thank you. > >> > >> -- > >> Shamil > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: 26 ?????? 2011 ?. 21:26 > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Dual Monitors > >> > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> On 1/26/2011 7:43 AM, Dan Waters wrote: > >>> Yowser!! :-) You must have to swivel in your chair to look from one > > >>> side to the other! > >>> > >>> What brand of monitors did you get? Any thoughts on those? I have > a > >>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - > >> still > >> great). > >>> These have 1600 X 1200 resolution, and the screens are non-glare. > >>> > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >>> Sent: Tuesday, January 25, 2011 9:25 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: Re: [AccessD] From Lake Woebegone > >>> > >>> LOL, yep those big monitors are great for that kind of stuff. > >>> > >>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 > >>> native resolution. Pretty darned awesome. > >>> > >>> John W. Colby > >>> www.ColbyConsulting.com > >>> > >>> On 1/25/2011 10:05 PM, Mark Simms wrote: > >>>> I LOVE that site. I joined !! > >>>> I'm also now posting from my new Hanns-G 28" monitor....pretty > >> impressive. > >>>> One must stay 2 FEET away from this "big boy". > >>>> > >>>> It's also funny, because Access 2007's tabbed interface almost > >>>> seems > > > >>>> to mandate a large format monitor. I can have 50 columns showing in > > >>>> datasheet view now ! > >>>> > >>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan > >>>>> wrote: > >>>>>> So common that there's a programmers' website out there - > >>>>> http:/www.thedailywtf.com > >>>> > >>>> > >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 1 13:08:45 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:08:45 -0800 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: Can you make an ADP? On Mon, Jan 31, 2011 at 4:31 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, 1 February 2011 2:15 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] SQL constant harassment > > I am doing a demo Access database against a SQL Server BE. Access is > constantly "harassing" me with pop-ups to provide log in information. At > odd times, not always. But when it happens it is for each (bound) form > getting data. So a main form with subforms, and apparently even combo > boxes, it will pop up the box to select the user authorized to do this. > > What do I do to make this go away? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 1 13:59:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 01 Feb 2011 14:59:34 -0500 Subject: [AccessD] OT Yuma In-Reply-To: References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: <4D486626.9040605@colbyconsulting.com> LOL. Yup, El Centro, the hotbed of things to do. John W. Colby www.ColbyConsulting.com On 2/1/2011 2:01 PM, David McAfee wrote: > My cousin lives in El Centro. She always wants us to come visit her. > > We're like, um, why don't you come out to us, by the beach. :) > > > On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > >> >> Yikes. >> >> I had an assignment in El Centro, not far >> from Yuma, for a couple of months. >> >> The area brought a whole new meaning to >> the word "hot". >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, January 27, 2011 1:47 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Dual Monitors >> >> >> > The 110 sounds like Phoenix. Did I guess correctly ? >> >> Even worse. Yuma. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> On 1/27/2011 3:05 PM, Edward Zuris wrote: >>> >>> When the Salmon come in to spawn, they >>> would gather just a few miles from Everett >>> near the San Juan area before heading to >>> Canada or USA rivers. >>> >>> Great fishing, and very few people take >>> advantage of it. >>> >>> I am in Albuquerque, NM. >>> >>> Starting in late May, or early June, the >>> temperatures start climb up to the 100's. >>> >>> At the moment it is high dry cold winds >>> with a few dust storms. Sometime maybe a >>> half inch of snow every so often. After >>> May it is total bake mode. But the desert >>> and dry climate grows on you after awhile. >>> >>> I grew up in NM, so I know a number of good >>> fishing holes. I go up into the mountains >>> to fish for trout during the summer. But >>> catching a ten pound king salmon really makes >>> your day and puts any quarter pound mountain >>> trout to shame. >>> >>> The 110 sounds like Phoenix. Did I guess >>> correctly ? >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, January 27, 2011 10:06 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Dual Monitors >>> >>> >>> I grew up in the American southwest desert. >>> 110 degrees F every day. I lived with my >>> father for about 6 months in Everett >>> Washington when I was a freshman in High School. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 1/27/2011 11:38 AM, Edward Zuris wrote: >>>> >>>> From what I hear from my friends overseas >>>> a lot of computer related products in the >>>> USA are rather inexpensive compared their >>>> local markets. However, I am sure there >>>> are places outside the USA has even cheaper >>>> prices. >>>> >>>> Every Nation has its issues. Russian might, >>>> or might not, be going back it's old USSR >>>> ways. And in the USA we have more than our >>>> fair share of crazy people. And we elect >>>> a number of our crazies into high positions >>>> into the government. >>>> >>>> Of the two, I'll think we are better off >>>> with the cheaper computer monitors and some >>>> crazies, in Congress. We also get to watch >>>> them on CSPAN TV. It is like watching a >>>> circus in slow motion. >>>> >>>> The USA has many cultures and climates. >>>> >>>> I live in the American Southwest desert. >>>> One place I really liked was the American >>>> Northwest. Fished for salmon around Everett. >>>> Where John lives it can get hot and humid >>>> in the summer, but there is good fishing >>>> near by. I spent a summer near Asheville, >>>> and the weekends at the Outer Banks. >>>> >>>> As far as I am concerned, Shamil, you are >>>> welcome. >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Wednesday, January 26, 2011 12:56 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> >>>> Hi John -- >>>> >>>> <<< >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>>>>> >>>> That's a ridiculous price for St.Petersburg, Russia. >>>> I should start thinking seriously how to get moved there in your >>>> country... Especially taking into that Mr. Putin seems to be planning >> >>>> to get here at power on year 2012 for another 12 (or 14!?) years... >>>> >>>> Thank you. >>>> >>>> -- >>>> Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: 26 ?????? 2011 ?. 21:26 >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> On 1/26/2011 7:43 AM, Dan Waters wrote: >>>>> Yowser!! :-) You must have to swivel in your chair to look from one >> >>>>> side to the other! >>>>> >>>>> What brand of monitors did you get? Any thoughts on those? I have >> a >>>>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - >>>> still >>>> great). >>>>> These have 1600 X 1200 resolution, and the screens are non-glare. >>>>> >>>>> Dan >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Tuesday, January 25, 2011 9:25 PM >>>>> To: Access Developers discussion and problem solving >>>>> Subject: Re: [AccessD] From Lake Woebegone >>>>> >>>>> LOL, yep those big monitors are great for that kind of stuff. >>>>> >>>>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 >>>>> native resolution. Pretty darned awesome. >>>>> >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> >>>>> On 1/25/2011 10:05 PM, Mark Simms wrote: >>>>>> I LOVE that site. I joined !! >>>>>> I'm also now posting from my new Hanns-G 28" monitor....pretty >>>> impressive. >>>>>> One must stay 2 FEET away from this "big boy". >>>>>> >>>>>> It's also funny, because Access 2007's tabbed interface almost >>>>>> seems >>> >>>>>> to mandate a large format monitor. I can have 50 columns showing in >> >>>>>> datasheet view now ! >>>>>> >>>>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan >>>>>>> wrote: >>>>>>>> So common that there's a programmers' website out there - >>>>>>> http:/www.thedailywtf.com >>>>>> >>>>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Thu Feb 3 10:19:37 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 08:19:37 -0800 Subject: [AccessD] OT: Access and SQL server Message-ID: <4D4AD599.4020606@nanaimo.ark.com> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From Gustav at cactus.dk Thu Feb 3 10:45:25 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Feb 2011 17:45:25 +0100 Subject: [AccessD] OT: Access and SQL server Message-ID: Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From jwcolby at colbyconsulting.com Thu Feb 3 10:51:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 11:51:25 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <4D4ADD0D.8000207@colbyconsulting.com> >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks From ssharkins at gmail.com Thu Feb 3 11:01:04 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:01:04 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: > >I'll find a book with great reviews and the next review they basically > >say it is not so good and > so on and so on. > > What I have found is that is true for any product anywhere. There are > some people who just don't like *anything* and they are the biggest > complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I > try and get 85% to be 5, 4, and 3 star. ==========Sometimes -- I've run into this myself, at least twice -- they're not even reviewing the right book. :( You get trashed, and it's not even your book. Susan H. From jm.hwsn at gmail.com Thu Feb 3 11:04:11 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 3 Feb 2011 11:04:11 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4ADD0D.8000207@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> I agree, but I also take into consideration who recommends a book. If I recognize someone on this list that reviews a book, I'd give them more weight than anyone else. On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." by Phil Mitchell? Reviews are good on Amazon. Although it might be a little dated (2006). Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Feb 3 11:14:10 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:14:10 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4AE262.7030001@nanaimo.ark.com> Hey All That is why I am asking the list, I value their expert opinions. Rather than relying on someone who is either having a good or bad day. Also I don't want to be spending $50 or $60 on the wrong book. Susan and Martin I think I have heard those names before, they sound familiar. Just kidding. jm.hwsn wrote: >I agree, but I also take into consideration who recommends a book. >If I recognize someone on this list that reviews a book, I'd give them more >weight than anyone else. >On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." >by Phil Mitchell? Reviews are good on Amazon. Although it might be a little >dated (2006). >Thanks, >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Thursday, February 03, 2011 10:51 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say >it is not so good and so on and so on. > >What I have found is that is true for any product anywhere. There are some >people who just don't like *anything* and they are the biggest complainers. > >I look for the highest average, and simultaneously not a huge 1 star. I try >and get 85% to be 5, 4, and 3 star. > > >John W. Colby >www.ColbyConsulting.com > >On 2/3/2011 11:19 AM, Tony Septav wrote: > > >>Hey All >>Can anyone recommend a good book for learning "how to". I have googled and >> >> >a I'll find a book with > > >>great reviews and the next review they basically say it is not so good and >> >> >so on and so on. Any > > >>suggestions. >> >>Thanks >> >> From ssharkins at gmail.com Thu Feb 3 11:22:13 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:22:13 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> Message-ID: <20D251F9002D438789F292A4EB233918@salvationomc4p> > That is why I am asking the list, I value their expert opinions. Rather > than relying on someone who is either having a good or bad day. Also I > don't want to be spending $50 or $60 on the wrong book. > Susan and Martin I think I have heard those names before, they sound > familiar. > Just kidding. ========I don't think either one of us spend as much time here as we use to! ;) The book that Martin and I wrote is my best one -- I am very proud of it. The SQL sections are timeless -- not much is going to change there. A lot of the upsizing and using information is going to be different of course. It just depends on why you need the book -- if you need a SQL companion and comparison for Jet and T-SQL, it's a good choice. Martin can chime in if he sees this. I haven't done anything with Access 2007/1010 to SQL Server 8, but I would assume that the general process/preparations is still very similar, even though, the actual step-by-step instructions aren't going to be the same. We wrote that book in 2001! Susan H. From iggy at nanaimo.ark.com Thu Feb 3 11:31:07 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:31:07 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <20D251F9002D438789F292A4EB233918@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> <20D251F9002D438789F292A4EB233918@salvationomc4p> Message-ID: <4D4AE65B.8000805@nanaimo.ark.com> Hey Susan I am leaning towards your and Martin's book (I like to buy locally). The 3 books I have focused in on are all dated and that is kind of the conundrum. Yes I kind of want a SQL companion that I can learn from with the book sitting on my lap. Susan Harkins wrote: >> That is why I am asking the list, I value their expert opinions. >> Rather than relying on someone who is either having a good or bad >> day. Also I don't want to be spending $50 or $60 on the wrong book. >> Susan and Martin I think I have heard those names before, they sound >> familiar. >> Just kidding. > > > ========I don't think either one of us spend as much time here as we > use to! ;) The book that Martin and I wrote is my best one -- I am > very proud of it. The SQL sections are timeless -- not much is going > to change there. A lot of the upsizing and using information is going > to be different of course. It just depends on why you need the book -- > if you need a SQL companion and comparison for Jet and T-SQL, it's a > good choice. Martin can chime in if he sees this. I haven't done > anything with Access 2007/1010 to SQL Server 8, but I would assume > that the general process/preparations is still very similar, even > though, the actual step-by-step instructions aren't going to be the > same. We wrote that book in 2001! > > Susan H. > > From df.waters at comcast.net Thu Feb 3 11:33:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 11:33:24 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <075701507B7443FBB72A9B2003835317@DanWaters> Hi Tony, 1) Microsoft Access Developer's Guide to SQL Server Available new or used - 5-stars on Amazon. http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 /ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 2) Access 2002 Enterprise Developer's Guide + Access 2002 Desktop Developer's Guide Available new or used - 5-stars on Amazon. http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 Both of these cover mdb's and adp's. My thoughts - if you're going to use an mdb, then all you really need to learn is how to set up the table links between the mdb application file and the SQL Server database. If you're going to go the extra mile and set up an adp, then you may want to consider going a mile and a half and use a .Net language and SQL Server. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 10:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Feb 3 11:45:17 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:45:17 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> Message-ID: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Check for a used one -- if I had any author copies left, I'd send it to you myself! Susan H. > Hey Susan > I am leaning towards your and Martin's book (I like to buy locally). The 3 > books I have focused in on are all dated and that is kind of the > conundrum. Yes I kind of want a SQL companion that I can learn from with > the book sitting on my lap. > From iggy at nanaimo.ark.com Thu Feb 3 12:08:25 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:08:25 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <075701507B7443FBB72A9B2003835317@DanWaters> References: <4D4AD599.4020606@nanaimo.ark.com> <075701507B7443FBB72A9B2003835317@DanWaters> Message-ID: <4D4AEF19.6040501@nanaimo.ark.com> Hey Dan Thanks for the mdb and adp advice. Dan Waters wrote: >Hi Tony, > >1) Microsoft Access Developer's Guide to SQL Server > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 >/ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 > > >2) Access 2002 Enterprise Developer's Guide + > Access 2002 Desktop Developer's Guide > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 >06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 > >http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ >ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 > > >Both of these cover mdb's and adp's. > >My thoughts - if you're going to use an mdb, then all you really need to >learn is how to set up the table links between the mdb application file and >the SQL Server database. If you're going to go the extra mile and set up an >adp, then you may want to consider going a mile and a half and use a .Net >language and SQL Server. > >Good Luck! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Thursday, February 03, 2011 10:20 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Access and SQL server > >Hey All >Can anyone recommend a good book for learning "how to". I have googled >and a I'll find a book with great reviews and the next review they >basically say it is not so good and so on and so on. Any suggestions. > >Thanks > > From iggy at nanaimo.ark.com Thu Feb 3 12:09:49 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:09:49 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Message-ID: <4D4AEF6D.5020808@nanaimo.ark.com> Hey Susan I am kind of disappointed I was hoping for an autographed edition. Thanks for the thought though. Susan Harkins wrote: > Check for a used one -- if I had any author copies left, I'd send it > to you myself! > > Susan H. > >> Hey Susan >> I am leaning towards your and Martin's book (I like to buy locally). >> The 3 books I have focused in on are all dated and that is kind of >> the conundrum. Yes I kind of want a SQL companion that I can learn >> from with the book sitting on my lap. >> > From jimdettman at verizon.net Thu Feb 3 12:19:53 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 03 Feb 2011 13:19:53 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <3556A738030B4920ADB3B0052805FFA8@XPS> Tony, Check out "The Best of Both Worlds: Access-SQL Server Optimization" here: http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp Has some invaluable tips and insights on using Access as a FE with a SQL Server backend. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 11:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 3 12:39:39 2011 From: john at winhaven.net (John Bartow) Date: Thu, 3 Feb 2011 12:39:39 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: References: Message-ID: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Hey Tony, I've been reviewing the book (that Gustav recommends below) over the last couple of months. I have an older Access 97 FE/BE system that I have to upgrade to Access 2003 and (unbelievably) then have to upgrade again next year to 2010/SQLServer. I'd prefer to do it in one but not my decision. I'm reviewing this so the second upgrade goes smooth as ice :o) The book is dated (of course, its early century material) but there's good, timeless advice in it. And Susan's writing style always makes technical materials easier to read. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 03, 2011 10:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Access and SQL server Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 13:05:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:05:11 -0500 Subject: [AccessD] Opening an Access application multiple times Message-ID: <4D4AFC67.7070902@colbyconsulting.com> I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:09:46 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:09:46 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:13:19 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:13:19 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4AFC67.7070902@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 2:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Opening an Access application multiple times I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:23:35 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:23:35 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From ssharkins at gmail.com Thu Feb 3 13:30:43 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 14:30:43 -0500 Subject: [AccessD] OT: Access and SQL server References: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Message-ID: And Susan's writing style always makes technical > materials easier to read. ======Thank you John -- that was very nice of you to say. I appreciate it a great deal! Susan H. From jwcolby at colbyconsulting.com Thu Feb 3 13:37:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:37:27 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4B03F7.9050409@colbyconsulting.com> I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks From jwcolby at colbyconsulting.com Thu Feb 3 13:40:52 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:40:52 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: <4D4B04C4.2080602@colbyconsulting.com> >I usually just open another instance of Access and then.. Yea. These are end users so... batch file it is. John W. Colby www.ColbyConsulting.com On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 2:05 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Opening an Access application multiple times > > I am trying to open an access application more than once - two instances open at the same time. > When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? > > When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. > > I can live with having to open it from a batch file but I am just wondering why this is happening. > > -- > 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 davidmcafee at gmail.com Thu Feb 3 14:01:23 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 3 Feb 2011 12:01:23 -0800 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B04C4.2080602@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: John, I do it as Lambert described. Quick question. Why do the users need to open two copies of the database? On Thu, Feb 3, 2011 at 11:40 AM, jwcolby wrote: > >I usually just open another instance of Access and then.. > > Yea. These are end users so... batch file it is. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > >> Don't know why but I see the same thing happening. I usually just open >> another instance of Access and then have it open the second instance of the >> MDB file via the File menu. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto: >> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 03, 2011 2:05 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Opening an Access application multiple times >> >> I am trying to open an access application more than once - two instances >> open at the same time. >> When I double click the FE (in explorer) it opens. When I go back to >> explorer and double click it again, it just switches me back to the open >> instance. Shouldn't it open the application a second time? >> >> When, from a batch file, I so something like "SomePath\Access.exe" >> SomeAccessFe.mdb it in fact opens the application a second time. >> >> I can live with having to open it from a batch file but I am just >> wondering why this is happening. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 14:35:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 15:35:37 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: <4D4B1199.7060605@colbyconsulting.com> LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just open >>> another instance of Access and then have it open the second instance of the >>> MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two instances >>> open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back to >>> explorer and double click it again, it just switches me back to the open >>> instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 14:42:49 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 15:42:49 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B1199.7060605@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: One other thing: I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Opening an Access application multiple times LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just >>> open another instance of Access and then have it open the second >>> instance of the MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two >>> instances open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back >>> to explorer and double click it again, it just switches me back to >>> the open instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 15:02:47 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:02:47 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: <4D4B17F7.4020505@colbyconsulting.com> >*At their instance* (I need to stress that) It is pretty bad when I am stressing my own mis-spellings. ;) *At their insistance* (I need to stress that) John W. Colby www.ColbyConsulting.com On 2/3/2011 3:42 PM, Heenan, Lambert wrote: > One other thing: > > I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 3:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Opening an Access application multiple times > > LOL. Because they do. Not uncommon really. > > In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. > > Can you say *busy*? > > The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. > > Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... > > Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 3:01 PM, David McAfee wrote: >> John, I do it as Lambert described. >> >> Quick question. Why do the users need to open two copies of the database? >> >> >> >> On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: >> >>>> I usually just open another instance of Access and then.. >>> >>> Yea. These are end users so... batch file it is. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >>> >>>> Don't know why but I see the same thing happening. I usually just >>>> open another instance of Access and then have it open the second >>>> instance of the MDB file via the File menu. >>>> >>>> Lambert >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com [mailto: >>>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Thursday, February 03, 2011 2:05 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Opening an Access application multiple times >>>> >>>> I am trying to open an access application more than once - two >>>> instances open at the same time. >>>> When I double click the FE (in explorer) it opens. When I go back >>>> to explorer and double click it again, it just switches me back to >>>> the open instance. Shouldn't it open the application a second time? >>>> >>>> When, from a batch file, I so something like "SomePath\Access.exe" >>>> SomeAccessFe.mdb it in fact opens the application a second time. >>>> >>>> I can live with having to open it from a batch file but I am just >>>> wondering why this is happening. >>>> >>>> -- >>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 15:13:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:13:26 -0500 Subject: [AccessD] I need an archive / copy widget Message-ID: <4D4B1A76.5010507@colbyconsulting.com> I use library (MDA) files. I use nested library files, the FE references one lib which references another lib. For whatever reason, if I don't do a full decompile / compile / compact etc on all libs / FE starting at the deepest referenced lib, and then use all the freshly DCCRed parts, the FE will hand (refuse to close). Do a full DCCR on all the parts, *in order* and then use all the parts and voila, no more hang. Which means that I now have a matched set of files where the FE only works with the libs that it was DCCRed with. So I need something that allows me to zip up all the files in the set in a (production or test) directory, then transfer into that (production or test) directory the freshly DCCRed files from my dev directory. Make sense? Has anyone got such a widget? -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Feb 3 16:34:57 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 3 Feb 2011 16:34:57 -0600 Subject: [AccessD] Modifying Charts with VBA References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad From Darryl.Collins at iag.com.au Thu Feb 3 16:38:51 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:38:51 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: References: Message-ID: <201102032242.p13MgRnk010389@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Thu Feb 3 16:43:08 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:43:08 +1100 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4B03F7.9050409@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com>, <4D4B03F7.9050409@colbyconsulting.com> Message-ID: <201102032243.p13MhLhA015541@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ HAHAHAHAHA! nice one John. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: Friday, 4 February 2011 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From df.waters at comcast.net Thu Feb 3 16:56:28 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 16:56:28 -0600 Subject: [AccessD] Modifying Charts with VBA In-Reply-To: References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> This is a link to the MS Graph 10 Object Model. http://msdn.microsoft.com/en-us/library/aa141052(office.10).aspx Could be a different version for Access 2007. Per this you should have a file on your PC name VBAGR10.chm if you've installed Access XP. I've got it and it's in C:\Program Files(x86)\Microsoft Office\Office11\vbagr10.chm. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 03, 2011 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Modifying Charts with VBA All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 3 17:01:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 3 Feb 2011 17:01:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Not to mention that if she is running into problems with the current system, a 'canned' solution would most likely carry those same issues along with it. A long time ago, I built a 'canned' solution that would display reports from an access database across the web (and any 'UI' prompts, like [Enter Product Number] that were in the query would be read, recreated into a web format to be displayed to the user, and then the user's response sent back to the actual .mdb). It worked great. Toyed with the idea of doing the same for forms, and ran into a huge brick wall with how Access subclasses the windows in its forms. So I never took it any further. But to take an Access mdb, and just 'dump it' into a web application loses the benefit of some of the great features a web application can incorporate. For instance, if you were to just create a Dropdown box, that 'populated' some fields in an ASP.NET application, ASP.Net would let you make it 'look' like an access combobox, and act like it, but what's happening in the background is clunky. First, .Net is creating javascript on the client side that is reacting to the 'OnClick' of the combobox (or index changed event), then it's sending all the current web form info back to the server (as a PostBack), where the web server then does what your .Net (VB or C#) code wants to do, in filling in the fields, and sends all that back to the user. UGLY. Works, but ugly. If it's a huge form, or a very slow connection, that creates noticeable pauses and reloads on the web page. There is another solution: You can create a generic handler, that uses JQuery (AJAX) on the client side to just 'ask' the web server for the applicable data. Here's a generic handler (.ashx file) <%@ WebHandler Language="VB" Class="LoadDoctorInfo" %> Imports System Imports System.Web Public Class LoadDoctorInfo : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim intID As String = context.Request.QueryString("DoctorID") Dim strDocInfo As New StringBuilder Dim dr As New Doctor(intID) strDocInfo.Append("[{""DoctorName"":""" & dr.Name & """,") strDocInfo.Append("""Address1"":""" & dr.Address1 & """,") strDocInfo.Append("""Address2"":""" & dr.Address2 & """,") strDocInfo.Append("""City"":""" & dr.City & """,") strDocInfo.Append("""State"":""" & dr.State & """,") strDocInfo.Append("""Zip"":""" & dr.ZipCode & """,") strDocInfo.Append("""Phone"":""" & dr.Phone & """}]") context.Response.ContentType = "application/json" context.Response.ContentEncoding = Encoding.UTF8 context.Response.Write(strDocInfo.ToString()) context.Response.End() End Sub Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class The above file is stored on the web server, and is called using the follow javascript on the client end: The drop down list is filled with doctors and their IDs, the jquery-1.2.6.js file (which you can download from the web) has all the code necessary to make the above code work. It takes the ID of the combo, queries the webserver's generic handler ('LoadDoctorInfo.ashx') and then populates controls on the end user's form using data from what's returned by the handler. The user's form doesn't have to 'reload' against the webserver, and that interaction 'appears' to work just like a combo box on an Access form would work. There are several other tricks you can do with .asp pages which will help increase the performance of an application. While there may be 'canned' apps out there, which can stuff an application into a .Net solution, I doubt it will be very finely tuned or optimized. Heck, one of the features of ASP.Net that I fell in love with, is how easy it is to create a 'downloaded file' on the fly. (Say on a data form, you want to give the user the ability to download a .csv file of the data they are working on, with .asp, I would create the .csv file in a temp file, and then redirect them to that file... with ASP.Net, it's extremely easy to just interrupt the outbound feed, and just send the file on the fly. Probably could have done that in classic asp, but the tutorial to do that in asp.Net was quick and easy to find). No more temp files. Very slick. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 7:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 newsgrps at dalyn.co.nz Thu Feb 3 17:39:01 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 12:39:01 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade Message-ID: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From bill_patten at embarqmail.com Thu Feb 3 19:54:59 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 3 Feb 2011 17:54:59 -0800 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: ?David, I don't know if this will help as I do not have Access XP any more, I do however have an adp Access2003 and did the following tests. Created and ADE restored a Sql Server 2000 backup into a 2008 Sql Server Opened a Win7 32 bit VM with Office 2010 installed in it Opened the 2003 ADE with 2010 and used my built in change SQL Server routine to connect to the 2008 Server. My program then prompted me for the database update to the latest version. I pointed my update routine to the correct .Sql file and it updated the server correctly, this is good that means some things are working OK. I opened a few forms and made a few entries and everything seemed to work with one exception. My automatic throw away the ribbon and use the old Office menus did not work. I suspect this is because it is an ADE and can't make the changes to the program. Selecting Add-ins does show the Office Menus but on top of the ribbon. I don't use ADE's any more, but lock down the ADP as much as possible to keep users out. If they get in and screw it up then they can pay me to fix it. The good news is 2010 did open a 2003 ade and didn't complain, obviously more testing is needed but at least on the surface it appears to work. By the way, there are some free Office 2010 downloads available, I think good for 30 days or so and if you have any Virtual machines or spare tests machines you can easily do some testing without screwing up you development system. HTH Bill -------------------------------------------------- From: "David Emerson" Sent: Thursday, February 03, 2011 3:39 PM To: "Access Developers discussion and problem solving" ; Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Feb 3 20:25:16 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 15:25:16 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20110204022539.UKGH3726.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Bill, That looks very promising. Much appreciated. Regards David At 4/02/2011, Bill Patten wrote: >?David, >I don't know if this will help as I do not have Access XP any more, I do >however have an adp Access2003 and did the following tests. >Created and ADE >restored a Sql Server 2000 backup into a 2008 Sql Server >Opened a Win7 32 bit VM with Office 2010 installed in it >Opened the 2003 ADE with 2010 and used my built in change SQL Server routine >to connect to the 2008 Server. My program then prompted me for the database >update to the latest version. >I pointed my update routine to the correct .Sql file and it updated the >server correctly, this is good that means some things are working OK. >I opened a few forms and made a few entries and everything seemed to work >with one exception. >My automatic throw away the ribbon and use the old Office menus did not >work. I suspect this is because it is an ADE and can't make the changes to >the program. Selecting Add-ins does show the Office Menus but on top of the >ribbon. > >I don't use ADE's any more, but lock down the ADP as much as possible to >keep users out. If they get in and screw it up then they can pay me to fix >it. > > >The good news is 2010 did open a 2003 ade and didn't complain, obviously >more testing is needed but at least on the surface it appears to work. > >By the way, there are some free Office 2010 downloads available, I think >good for 30 days or so and if you have any Virtual machines or spare tests >machines you can easily do some testing without screwing up you development >system. > >HTH > >Bill > >-------------------------------------------------- >From: "David Emerson" >Sent: Thursday, February 03, 2011 3:39 PM >To: "Access Developers discussion and problem solving" >; >Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade > >I have a client who is looking at upgrading their SQL2005 to SQL2008. > >Currently we are running an Access XP ade connected to SQL2005. > >Does anyone have any experience or know if an Access XP ade will >connect to an SQL2008 database > >Will an Access XP ade run in Access 2010? > >Can Access 2010 be used to create an ade? > >Are there any issues I should be aware of in upgrading an SQL2005 >database to SQL2008? > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Feb 3 20:29:55 2011 From: marksimms at verizon.net (Mark Simms) Date: Thu, 03 Feb 2011 21:29:55 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <013601cbc413$698b9850$3ca2c8f0$@net> I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From jwcolby at colbyconsulting.com Thu Feb 3 21:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 22:21:46 -0500 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <4D4B70CA.1070107@colbyconsulting.com> And that is exactly why I am going to C# apps. I *hate* clunky web apps and I don't want to be the author of one. Eventually I will do C# and services. Maybe. If I can ever figure it out. ;) There's just too much to know. I think I'll turn it all over to Robbie and let him figure it all out. He can already tell me how to do all the stuff on the Windows 7 HTPC that I can't figure out. John W. Colby www.ColbyConsulting.com On 2/3/2011 9:29 PM, Mark Simms wrote: > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From Lambert.Heenan at chartisinsurance.com Fri Feb 4 08:15:56 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 4 Feb 2011 09:15:56 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: <201102032242.p13MgRnk010389@databaseadvisors.com> References: <201102032242.p13MgRnk010389@databaseadvisors.com> Message-ID: Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Feb 4 09:42:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 04 Feb 2011 07:42:39 -0800 Subject: [AccessD] OT: Hey Susan Message-ID: <4D4C1E6F.9080701@nanaimo.ark.com> Hey Susan Thought this may give you a laugh. Just checked out the price of your book at amazon.ca List price $54.95 CDN Amazon price $34.62 CDN Checked out the other sellers new and used price. Vary's from $28.72 to $147.00 CDN Look's like it is becoming a collector's item. From ssharkins at gmail.com Fri Feb 4 10:16:31 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 4 Feb 2011 11:16:31 -0500 Subject: [AccessD] OT: Hey Susan References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <3B1F14CD1ABB42CEB708EED0AA569DE3@salvationomc4p> Well, if you send me $147.00, I'll send you MY copy! ;) AHAHAHAHHAAH Susan H. > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From jwcolby at colbyconsulting.com Fri Feb 4 10:26:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 04 Feb 2011 11:26:03 -0500 Subject: [AccessD] OT: Hey Susan In-Reply-To: <4D4C1E6F.9080701@nanaimo.ark.com> References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <4D4C289B.2050504@colbyconsulting.com> LOL. I've seen that with other books. I think some people put a book up for sale at an outrageous price and just hope for the occasional dunce to click buy. John W. Colby www.ColbyConsulting.com On 2/4/2011 10:42 AM, Tony Septav wrote: > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From pcs.accessd at gmail.com Sat Feb 5 02:14:52 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 18:14:52 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server Message-ID: Hi all, I have created both a view and a SP based on tables in another Db (call it Db1) on the same instance of the SQL Server (2008). I created the view and SP in say Db2. A simple Select ... When I want to use either the View or the SP in a join with other tables in Db2 I am stuck. The SP containing the join to either view or SP based on Db1 tables and saved in Db2 will save Ok but not execute. Both the view and the SP that I am trying to join up will execute ok when running on their own. Funny thing is that in the Access FE I can create a pass through query based on the view and join the pass through query to an odbc linked table from Db2. Any one who can shed light on this? borge From paul.hartland at googlemail.com Sat Feb 5 02:56:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 5 Feb 2011 08:56:51 +0000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Have you got an example of the view and SP, if you want to run a view or SP in DB2 that uses tables/views in DB1 then you have to reference the database (which I am assuming that you are doing), but if not example is below: in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 Paul On 5 February 2011 08:14, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From pcs.accessd at gmail.com Sat Feb 5 03:22:06 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 19:22:06 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Yes, I am referencing the Db. I have created viewDb1 in Db2. The view executes ok in Db2 When I try and use viewDb1 in a join in another select SP in Db2 I can create and save the SP but it will not execute. It does not recognize the viwDb1. ?? I will now create the ViewDb1 in Db1 and on the SP in question in Db2 try and join up the Db1.viewDb1 ... We'll see. Thanks for the input. borge On Saturday, February 5, 2011, Paul Hartland wrote: > Have you got an example of the view and SP, if you want to run a view or SP > in DB2 that uses tables/views in DB1 then you have to reference the database > (which I am assuming that you are doing), but if not example is below: > > in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > Paul > > On 5 February 2011 08:14, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at roadrunner.com Sat Feb 5 08:02:40 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 5 Feb 2011 09:02:40 -0500 Subject: [AccessD] Archives In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <374E68B7D75E4258B8C2AE40475D03A8@DCYN3T81> Are the archives down? I am unable to search ... http://databaseadvisors.com/mailman/mmsearch/accessd "The webpage cannot be found" Thanks Bob Gajewski From pcs.accessd at gmail.com Sat Feb 5 18:58:43 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sun, 6 Feb 2011 10:58:43 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Follow up to this issue: I have these DBs: RMS_ADMIN and RMS_DATA I have created a view call vAppUsers in both RMS_ADMIN and RMS_DATA based on tables in RMS_ADMIN. The view created in RMS_DATA references the RMS_ADMIN. In RMS_DATA I can create a SP that joins the vAppUsers view; I can use the local vAppUsers created in RMS_DATA or I can use the RMS_ADMIN.dbo.vAppUsers. However, in both SPs whenever I hover over the vAppUsers object, the intellisense responds with: Invalid Object Name 'RMS_ADMIN.dbo.vAppUsers' or Invalid Object Name 'dbo.vAppUsers' (when using the local RMS_DATA.dbo.vAppUsers) and when hovering over a column: The Multi-part identifier "RMS_ADMIN.dbo.vAppUsers.User_ID" could not be bound or The Multi-part identifier "dbo.vAppUsers.User_ID" could not be bound (when using the local RMS_DATA.dbo.vAppUsers) The SPs executes OK Is it just a limitation on the part of the intellisense that I can just disregard. Or do I need to do something here? One of the SPs looks like that references the view in RMS_ADMIN looks like this: SELECT dbo.tlkpRS_CCAreas.*, dbo.tlkpAreaGroup.AreaGroupDescription, dbo. tlkpAreaGroup.DesignatedUserID, RMS_ADMIN.dbo.vAppUsers.User_LoginName FROM dbo.tlkpRS_CCAreas INNER JOIN dbo.tlkpAreaGroup ON dbo.tlkpRS_CCAreas.AreaGroup = dbo.tlkpAreaGroup.AreaGroupID INNER JOIN RMS_ADMIN.dbo.vAppUsers ON dbo.tlkpAreaGroup.DesignatedUserID = RMS_ADMIN. dbo.vAppUsers.User_ID --- regards borge On Sat, Feb 5, 2011 at 7:22 PM, Borge Hansen wrote: > Yes, I am referencing the Db. > I have created viewDb1 in Db2. > The view executes ok in Db2 > When I try and use viewDb1 in a join in another select SP in Db2 I > can create and save the SP but it will not execute. It does not > recognize the viwDb1. > ?? > I will now create the ViewDb1 in Db1 and on the SP in question in Db2 > try and join up the Db1.viewDb1 ... We'll see. > Thanks for the input. > borge > > On Saturday, February 5, 2011, Paul Hartland > wrote: > > Have you got an example of the view and SP, if you want to run a view or > SP > > in DB2 that uses tables/views in DB1 then you have to reference the > database > > (which I am assuming that you are doing), but if not example is below: > > > > in DB1 you have a view call it say ViewInDB1, to reference the view in > DB1 > > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > > > Paul > > > > On 5 February 2011 08:14, Borge Hansen wrote: > > > >> Hi all, > >> I have created both a view and a SP based on tables in another Db > >> (call it Db1) on the same instance of the SQL Server (2008). I created > >> the view and SP in say Db2. A simple Select ... > >> When I want to use either the View or the SP in a join with other > >> tables in Db2 I am stuck. The SP containing the join to either view or > >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. > >> Both the view and the SP that I am trying to join up will execute ok > >> when running on their own. > >> Funny thing is that in the Access FE I can create a pass through query > >> based on the view and join the pass through query to an odbc linked > >> table from Db2. > >> Any one who can shed light on this? > >> borge > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > -- > > Paul Hartland > > paul.hartland at googlemail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > From Darryl.Collins at iag.com.au Sun Feb 6 17:29:13 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 7 Feb 2011 10:29:13 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: Message-ID: <201102062329.p16NTG9m003348@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hey Lambert, If you want, send me a copy of the target XL file and the Access code modules used to call it, I will see if I can replicate the problem here, or see if there is anything funky with the XL file. Always interested in these sort of issues. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Saturday, 5 February 2011 1:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 7 07:15:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 08:15:23 -0500 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: <4D4FF06B.9010304@colbyconsulting.com> It feels like a security issue. At my office I am the owner of all the databases. I have many (hundreds) of databases and I have always used the db.dbo.table.view addressing to create views, dynamic SQL etc. most of which references other databases. I have a handful of (a dozen) databases which are what I call "data" databases, which hold name / address lists. In the past I used SPs heavily which operated on data from each other. I also use C# to execute code updating or appending records from one database to another. the key to me is the dbname.dbo. syntax, as long as I have that the queries work fine. Again though, all of the databases are owned by the same owner so rights are not an issue. John W. Colby www.ColbyConsulting.com On 2/5/2011 3:14 AM, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge From jwcolby at colbyconsulting.com Mon Feb 7 11:05:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 12:05:04 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: <4D502640.50309@colbyconsulting.com> > I sent a demo SQL dB to you off-list. Did you get it? AFAICT I did not get that offline. I am trying to build an access application which installs on a user's system somewhere out in the world. 1) They are not local to my machine, they come in to my SQL Server instance over Hamachi. 1a) They have no means to login directly to the server instance with a username / password. 2) They are going to run on a 2007 run-time. 3) The runtime is intentionally unhelpful. 4) In testing it just gives me a "there was an error executing the command" when I try to open a form. When I try to open the same thing under the full version Access it is asking for a logon as it attempts to open the first form. My guess is that the runtime is attempting to open this SQl Server login form and isn't allowed to by the runtime. Thus I have to set up the linked tables to just use a correct username / password. I think I can embed this directly into the sql connect string that is part of the tabledef.connect but was attempting to avoid that. That will be my next test just to ensure that it is in fact the issue here. John W. Colby www.ColbyConsulting.com On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren From markamatte at hotmail.com Mon Feb 7 13:27:19 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:27:19 +0000 Subject: [AccessD] Access Limits In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com> Message-ID: Hello All, Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. What is the limitation on linking a text/csv file? Thanks, Mark A. Matte From garykjos at gmail.com Mon Feb 7 13:34:58 2011 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 7 Feb 2011 13:34:58 -0600 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: I don't usually link to CSV files, but I often import them and get a similar error if the file is not formatted correctly with end of record CTRL/LF combinations. Here are Access 2007 limits. http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx No mention of a limit for linked files. GK On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Feb 7 13:41:17 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:41:17 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte > Date: Mon, 7 Feb 2011 13:34:58 -0600 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > I don't usually link to CSV files, but I often import them and get a > similar error if the file is not formatted correctly with end of > record CTRL/LF combinations. > > Here are Access 2007 limits. > > http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx > > No mention of a limit for linked files. > > GK > > On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > 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 gustav at cactus.dk Mon Feb 7 15:01:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 07 Feb 2011 22:01:26 +0100 Subject: [AccessD] Access Limits Message-ID: Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte From Lambert.Heenan at chartisinsurance.com Mon Feb 7 15:31:15 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 7 Feb 2011 16:31:15 -0500 Subject: [AccessD] Access Limits In-Reply-To: References: Message-ID: And for a text file editor with which to do the split you could do a lot worse that Notepad++ http://notepad-plus-plus.org/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 07, 2011 4:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access Limits Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 7 16:37:54 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 7 Feb 2011 16:37:54 -0600 Subject: [AccessD] Order of Data on Access 2007 Chart References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> Message-ID: All, I am just starting to experiment with charts in Access 2007. I have a really dumb question. How can I make the order of a chart the same as the order of its underlying query? I have set up a small test table, query, and report. The table only has two fields, Customer_Name and Customer_Amount The query sorts the data on Customer_Amount. The report is based on the query and shows the data sorted on Customer_Amount I added a chart with the "Insert Chart" button on the Access 2007 ribbon. I stepped through the chart wizard and picked the underlying query. I was expecting to see the generated chart to be sorted the same as the query and the report. Instead, it is sorted on Customer_Name. I can't seem to figure out what I am missing here. Thanks, Brad From pcs.accessd at gmail.com Mon Feb 7 18:25:02 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 10:25:02 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: <4D4FF06B.9010304@colbyconsulting.com> References: <4D4FF06B.9010304@colbyconsulting.com> Message-ID: SOLVED The same situation here. I am the owner of the databases.... I use SQL Server Authentication and am logged in using sa .... I don't think it is a security issue.... I replicated the issue. It turns out the intellisense only kicks in after you have exited the Management Studio and then logged in again 1. Create a view in Db2 using tables from Db1 - save as view1Db2 and run 2. Create a new view based on view1Db2 and copy the sql string 3. into a new SP in Db2 - sp1Db2 - save it. Execute. 4. Close the sp and open again as alter sp - You should see the intellisense is not working. 5. Close and reopen Management Studio. Open the sp as alter sp - You should now see the intellisense working ok. regards, borge On Mon, Feb 7, 2011 at 11:15 PM, jwcolby wrote: > It feels like a security issue. > > At my office I am the owner of all the databases. I have many (hundreds) > of databases and I have always used the db.dbo.table.view addressing to > create views, dynamic SQL etc. most of which references other databases. I > have a handful of (a dozen) databases which are what I call "data" > databases, which hold name / address lists. In the past I used SPs heavily > which operated on data from each other. > > I also use C# to execute code updating or appending records from one > database to another. the key to me is the dbname.dbo. syntax, as long as I > have that the queries work fine. Again though, all of the databases are > owned by the same owner so rights are not an issue. > > John W. Colby > www.ColbyConsulting.com > > > On 2/5/2011 3:14 AM, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs.accessd at gmail.com Mon Feb 7 19:35:51 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 11:35:51 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: John, We use a system / machine ODBC dsn with SQL Server Authentication Login ID and password We drop and relink tables on opening of the runtime using hardcoded Login ID and password Even if user can access properties of linked table, the Login ID and password will not be shown, see sample below: ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest I am curious about the hamachi, please provide link for more information and instrucitons for how to set up regards, borge On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > > I sent a demo SQL dB to you off-list. Did you get it? > > AFAICT I did not get that offline. > > I am trying to build an access application which installs on a user's > system somewhere out in the world. > > 1) They are not local to my machine, they come in to my SQL Server instance > over Hamachi. > 1a) They have no means to login directly to the server instance with a > username / password. > 2) They are going to run on a 2007 run-time. > 3) The runtime is intentionally unhelpful. > 4) In testing it just gives me a "there was an error executing the command" > when I try to open a form. When I try to open the same thing under the full > version Access it is asking for a logon as it attempts to open the first > form. > > My guess is that the runtime is attempting to open this SQl Server login > form and isn't allowed to by the runtime. Thus I have to set up the linked > tables to just use a correct username / password. I think I can embed this > directly into the sql connect string that is part of the tabledef.connect > but was attempting to avoid that. That will be my next test just to ensure > that it is in fact the issue here. > > > John W. Colby > www.ColbyConsulting.com > > On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > >> Hi JC >> >> I sent a demo SQL dB to you off-list. Did you get it? >> It shows how to use Pass through queries >> It has a sample to store your username and password and pass it in your >> SQL >> connection requests >> There is also the option to set the "Trusted Connection" to yes in the SQL >> connections strings >> >> Many thanks >> >> Darren >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 8 07:00:54 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 08:00:54 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: <4D513E86.5000401@colbyconsulting.com> Borge, I need your help. I will open my system to you, I will teach you about Hamachi and you can teach me about authentication in a run time world. I cannot give you the keys in AccessD though so contact me off line. Anyone else too who knows any part of this and wants to learn any part. We will keep all discussions other than actual user name / passwords on this list. Thanks, John W. Colby www.ColbyConsulting.com On 2/7/2011 8:35 PM, Borge Hansen wrote: > John, > > We use a system / machine ODBC dsn with SQL Server Authentication Login > ID and password > > We drop and relink tables on opening of the runtime using hardcoded Login ID > and password > > Even if user can access properties of linked table, the Login ID and > password will not be shown, see sample below: > > ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office > 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest > I am curious about the hamachi, please provide link for more information and > instrucitons for how to set up > > regards, > borge > > > > On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > >>> I sent a demo SQL dB to you off-list. Did you get it? >> >> AFAICT I did not get that offline. >> >> I am trying to build an access application which installs on a user's >> system somewhere out in the world. >> >> 1) They are not local to my machine, they come in to my SQL Server instance >> over Hamachi. >> 1a) They have no means to login directly to the server instance with a >> username / password. >> 2) They are going to run on a 2007 run-time. >> 3) The runtime is intentionally unhelpful. >> 4) In testing it just gives me a "there was an error executing the command" >> when I try to open a form. When I try to open the same thing under the full >> version Access it is asking for a logon as it attempts to open the first >> form. >> >> My guess is that the runtime is attempting to open this SQl Server login >> form and isn't allowed to by the runtime. Thus I have to set up the linked >> tables to just use a correct username / password. I think I can embed this >> directly into the sql connect string that is part of the tabledef.connect >> but was attempting to avoid that. That will be my next test just to ensure >> that it is in fact the issue here. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >> >>> Hi JC >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>> It shows how to use Pass through queries >>> It has a sample to store your username and password and pass it in your >>> SQL >>> connection requests >>> There is also the option to set the "Trusted Connection" to yes in the SQL >>> connections strings >>> >>> Many thanks >>> >>> Darren >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From charlotte.foust at gmail.com Tue Feb 8 10:27:42 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 8 Feb 2011 08:27:42 -0800 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: This is just a SWAG, but would assume that the limit on a linked file would be the same as on a linked table or database. It may also depend on the database format you're using, mdb or acdb. Charlotte Foust On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Feb 8 11:12:30 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 8 Feb 2011 17:12:30 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: I have, in the past, linked to 5 gig txt files using Access 03. This however is a CSV...not sure if that is the difference. I have not tried using an acdb. > Date: Tue, 8 Feb 2011 08:27:42 -0800 > From: charlotte.foust at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > This is just a SWAG, but would assume that the limit on a linked file > would be the same as on a linked table or database. It may also > depend on the database format you're using, mdb or acdb. > > Charlotte Foust > > On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 13:30:10 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 13:30:10 -0600 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 accessd at shaw.ca Tue Feb 8 14:45:24 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 12:45:24 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 jwcolby at colbyconsulting.com Tue Feb 8 15:12:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 16:12:15 -0500 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <4D51B1AF.6050204@colbyconsulting.com> > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From accessd at shaw.ca Tue Feb 8 15:42:16 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 13:42:16 -0800 Subject: [AccessD] From a reader In-Reply-To: <4D51B1AF.6050204@colbyconsulting.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <4D51B1AF.6050204@colbyconsulting.com> Message-ID: <3B6F14CED7D7428DBCC6E90F3A8DDD78@creativesystemdesigns.com> Now you are talking... that should thin out the ranks considerable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, February 08, 2011 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 18:21:06 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 18:21:06 -0600 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 marksimms at verizon.net Tue Feb 8 20:48:26 2011 From: marksimms at verizon.net (Mark Simms) Date: Tue, 08 Feb 2011 21:48:26 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <004d01cbc803$d3fe0c10$7bfa2430$@net> > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. From accessd at shaw.ca Wed Feb 9 01:17:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 23:17:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 9 04:23:09 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 11:23:09 +0100 Subject: [AccessD] From a reader Message-ID: Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. From shamil at smsconsulting.spb.ru Wed Feb 9 05:24:20 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 14:24:20 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From pcs.accessd at gmail.com Wed Feb 9 06:48:35 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Wed, 9 Feb 2011 22:48:35 +1000 Subject: [AccessD] [dba-SQLServer] index-defrag-script-v4-0 Message-ID: Hi all, I thought I'd share this link to a very interesting script for defragmenting indexes in one table, one Db or all non system databases: http://sqlfool.com/2010/04/index-defrag-script-v4-0/ regards borge From DWUTKA at Marlow.com Wed Feb 9 09:27:42 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 09:27:42 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: What are you talking about Jim, there is such an app, I think you already mentioned it... it's called Notepad.... ;) I actually really like ASP.Net. It has some wonderful features. But someone coming from a non-web GUI, may not realize how ASP.Net is actually 'mimicking' the interface interactions they are used too, and it just gets ugly then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 09, 2011 1:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim 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 Wed Feb 9 11:12:01 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:12:01 -0600 Subject: [AccessD] From a reader In-Reply-To: <004d01cbc803$d3fe0c10$7bfa2430$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <004d01cbc803$d3fe0c10$7bfa2430$@net> Message-ID: I've gotten pretty familiar with ASP.Net, and I must say, for smaller sites, I would probably still just use classic asp. I can already hear a future me grumbling about it a decade from now... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, February 08, 2011 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. -- 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 Wed Feb 9 11:17:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:17:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Yes, exactly, although, that is a mixed post. A developer that doesn't optimize right (though he is using Access 2007, how many pros would use that version if they had a choice? ;) ), and a customer that doesn't want to listen to reason. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 4:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. -- 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 accessd at shaw.ca Wed Feb 9 12:12:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 10:12:12 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Feb 9 12:25:01 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 21:25:01 +0300 Subject: [AccessD] From a reader In-Reply-To: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Message-ID: Hi Jim -- Yes, I also wanted to give a try to Razor + jQuery. Have a look they say: <<< Razor is already part of DNN5.6.1. The engine itself can be hosted even in Non Web Applications. >>> http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/118/postid/4070 62/scope/posts/Default.aspx#407062 Hosting the Razor Engine for Templating in Non-Web Applications http://www.west-wind.com/weblog/posts/864461.aspx <<< Microsoft SQL Server Migration Assistant 2005 for Access" >>> I'm not sure which version of MS SQL Server Migration Assitant I used last time - that could have been Microsoft SQL Server Migration Assistant 2005 for Access as I used it for MS Access 2003 database somewhere year 2004 or later. And it worked smoothly AFAIKR. As for queries - simple ones get converted OK but something more complicated and especially with VBA functions - all that needed additional manual work. And Migration Assitant does try to export a lot of MS Access tables and their fields properties' as Extended properties of MS SQL tables and their columns - I'd better switch off that feature as it creates a lot of unneeded "garbage" extended properties - just IMO. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 21:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From Gustav at cactus.dk Wed Feb 9 12:37:14 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 19:37:14 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Feb 9 13:16:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 22:16:27 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From iggy at nanaimo.ark.com Wed Feb 9 11:42:59 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 09 Feb 2011 09:42:59 -0800 Subject: [AccessD] Hey Susan Message-ID: <4D52D223.6060108@nanaimo.ark.com> Hey Susan Can you give me an EMail off-line that I can use to discuss with you somethings about your book. I am down to about 4 choices, like to go with yours and Martin's but just have a couple of questions. Thanks Tony From gustav at cactus.dk Wed Feb 9 15:51:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 22:51:26 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil OK, that's a good point. Slow response can kill you. But one trick around this is to have a fast main page and fast landing pages - then you have caught the attention and can go from there. That said, I think I'll go and download the Razor beta and have a closer look ... Could we ever settle at some level? You gave the answer: Yes, when we retire. Thanks for the links by the way. /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 20:16 >>> Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From accessd at shaw.ca Wed Feb 9 18:21:07 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 16:21:07 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs.accessd at gmail.com Thu Feb 10 01:01:00 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Thu, 10 Feb 2011 17:01:00 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D513E86.5000401@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Thu Feb 10 07:00:08 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 08:00:08 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Borge, <> On a 64 bit machine, there are two ODBC managers; one for 64 bit data sources and one for 32 bit. Your probably creating it as a 64 bit data source, which your 32 bit Office install will not be able to see. The 32 bit version is located in the %systemdrive%\Windows\SysWoW64 folder and must be directly invoked. Here's a MSKB article on it with some details: http://support.microsoft.com/kb/942976 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, February 10, 2011 02:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL constant harassment Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=db o.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 07:57:40 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 07:57:40 -0600 Subject: [AccessD] Access 2007 FE/BE speed Message-ID: <4d53eed6.0431640a.4399.01f5@mx.google.com> Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim From jimdettman at verizon.net Thu Feb 10 08:52:01 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 09:52:01 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53eed6.0431640a.4399.01f5@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 09:01:55 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 09:01:55 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: <4d53fde5.841dec0a.2285.05a6@mx.google.com> Good points Jim, thanks. I have turned off the sub-datasheets... I usually do that regardless of the version. I don't have any control over the servers, but I can ask them to make some changes. I never thought about the virus scan... I'll check into that. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 10, 2011 8:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 10:13:55 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:13:55 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53fde5.841dec0a.2285.05a6@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> Message-ID: <4D540EC3.2020605@colbyconsulting.com> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless of the > version. > I don't have any control over the servers, but I can ask them to make some > changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which each > user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and again, > this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. It > appears that the SMB 2.0 specification is giving some apps headaches, > although this is not fully clear yet. Some report the app works better when > the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage > may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if A2007 > can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned in > passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be found on > the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations and Show > Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an integrated > file. I know it's running little slower, but I can barely see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't think > there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 10 10:21:07 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:21:07 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D541073.1040809@colbyconsulting.com> Borge, Wow, thanks! I am right in the middle of rush work but this is my immediate need for my unpaid work so I will work on it in the next day or so, probably after work tonight and the next few days. In the meantime, to start boning up on Hamachi we are going to make you your own network just for you to learn how Hamachi works. 1) Go to https://secure.logmein.com/login.asp 2) Click the "New user? Create an account" link *under* the login button. 3) Create yourself an account and log in to that account 4) Once logged in, click the "NETWORK" link in the left hand margin 5) Click the "Add Network" under the big bold My Networks in the center of the page 6) Fill in the network name and description. I suggest that you use a prefix such as BHNetworkName (BH for Borge Hansen) for your own personal networks. Not necessary but it may help you organize. 7) Fill in the network type radio button. You can come back here later to change the network type. for now select mesh. 8) Click the Continue button at the bottom of the page 9) On the next page you set up how new users can be added to the network and a password for joining the network. For now click "Accept automatically" and create a password. You can change these parameters later if you wish by revisiting this page. 10) Click continue. I believe that you will end up in a "finish dialog". I created a hub and spoke network for this discussion to get in to my machine so I am on a different path through the page now. So you should now have your first personal mesh network. A mesh network allows every computer to see every other computer, much like a router / switch does on a normal network on your system. At this instant you do not have any computer with Hamachi installed so you need to get Hamachi installed on at least two machines so that they can join this new network of yours and can talk to each other. There are two ways to do this. The first is to email an invitation to join your network from this HAMACHI web page you are on. This will send an email to an email address with a hotlink which when clicked will apply to join your network. Whether or not it is instantly allowed in to the network depends on whether you selected "immediate acceptance" as you were setting up the network. Let us use this method now so that you can see how it works and what the recipient will experience. 1) On the left hand side of the web page, click the "NETWORK" hotlink. You will be back at the page showing "MY NETWORKS" and you will now have a network, named whatever you chose as your name. 2) Click the "Add client" hot link next to the green +. Click Deploy LogMeIn Hamachi to a remote computer. Click continue. 3) The next page will be used to send an email. It allows you to send a hotlink which can be used N times within a time period to join the network. Select 1 time if it is just going to be used once, select N times if it is going to be shared by several individuals which are all in an office but you may not have all of their emails. 4) Select the network(s) that you want them to be allowed to join. 5) Click continue LogmeIn's web page apparently has a bug. For me it did *not* take me to the page I am about to describe I had to poke around and find the page. It is *supposed* to take to this next page where... 6) You will see a big bold "ADD CLIENT" in the middle of the page and three buttons - Copy, Send and test. Click the SEND button and (in my case) Thunderbird opens with a hotlink in the body for your user to click on. 7) Fill in the person that you want to join your network and the subject (join my network!) and send the email. I'll send more later. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jm.hwsn at gmail.com Thu Feb 10 10:32:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 10:32:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D540EC3.2020605@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> Message-ID: <4d541317.02f2960a.41cf.0c8e@mx.google.com> That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 df.waters at comcast.net Thu Feb 10 10:51:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 10 Feb 2011 10:51:25 -0600 Subject: [AccessD] Turn Off Sub Datasheets Message-ID: <599935DC8C564030B2932B984D19468A@utc.com> To quickly turn off the subdatasheets in tables, run this code in a module in your database where the actual tables are located. '--------------------------------------------------------------------------- -------- Private Sub TurnOffSubDataSheets() On Error GoTo EH '-- Before running this module, set Error Trapping to 'Break on Unhandled Errors' Dim dbs As DAO.Database Dim prop3270 As DAO.Property Dim propName As String, propVal As String, rplpropValue As String Dim propType As Integer, i As Integer Dim intCount As Integer Set dbs = CurrentDb propName = "SubDataSheetName" propType = 10 propVal = "[None]" rplpropValue = "[Auto]" intCount = 0 For i = 0 To dbs.TableDefs.Count - 1 If (dbs.TableDefs(i).Attributes And dbSystemObject) = 0 Then If dbs.TableDefs(i).Properties(propName).Value = rplpropValue Then dbs.TableDefs(i).Properties(propName).Value = propVal intCount = intCount + 1 End If End If XH: Next i dbs.Close MsgBox "The " & propName & " value for " & intCount & " non-system tables has been updated to " & propVal & "." Exit Sub EH: If Err.Number = 3270 Then Set prop3270 = dbs.TableDefs(i).CreateProperty(propName) prop3270.Type = propType prop3270.Value = propVal dbs.TableDefs(i).Properties.Append prop3270 intCount = intCount + 1 Resume XH Else MsgBox Err.Description & vbCrLf & vbCrLf & " in TurnOffSubDataSheets routine." End If End Sub From Lambert.Heenan at chartisinsurance.com Thu Feb 10 11:25:18 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 12:25:18 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d541317.02f2960a.41cf.0c8e@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 jm.hwsn at gmail.com Thu Feb 10 12:21:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 12:21:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4d542ca3.0348960a.0f48.1437@mx.google.com> Essentially, I'm doing this, I just didn't realize I was keeping the connection open. When the FE opens, the user fills in their credentials in the log in form. Once verified, the user's Personal ID populates a couple of fields in the bound log in form. When the next button is clicked the log in form is hidden throughout the entire session. The fields are used for various processes during the session. The fields are tied to all the forms and results that the database represents to the user. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 10, 2011 11:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 12:59:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 13:59:31 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4D543593.1050307@colbyconsulting.com> But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, which >> each user should have their own copy of, so opening exclusive would be >> appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). Not >> specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, others >> 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and 3 >> above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> 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 shamil at smsconsulting.spb.ru Thu Feb 10 13:01:10 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 10 Feb 2011 22:01:10 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From Lambert.Heenan at chartisinsurance.com Thu Feb 10 13:23:27 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 14:23:27 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D543593.1050307@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: Ya got me there John. What do you mean by "for the FE that is the application"? I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. So again, what did you mean by "for the FE that is the application"? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, >> which each user should have their own copy of, so opening exclusive >> would be appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). >> Not specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, >> others 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and >> 3 above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 10 14:43:40 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 Feb 2011 12:43:40 -0800 Subject: [AccessD] From a reader In-Reply-To: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Feb 10 15:40:37 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 00:40:37 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From davidmcafee at gmail.com Thu Feb 10 17:49:16 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 15:49:16 -0800 Subject: [AccessD] Forgot old Access 2.0 password Message-ID: A coworker needs to open an old A2.0 database. They don't have the password. Anyway to bypass the mdw? From rlister at actuarial-files.com Thu Feb 10 18:42:19 2011 From: rlister at actuarial-files.com (Ralf Lister) Date: Thu, 10 Feb 2011 20:42:19 -0400 Subject: [AccessD] Recordset Movements Message-ID: <002701cbc984$8b3edd10$a1bc9730$@com> Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From davidmcafee at gmail.com Thu Feb 10 18:51:48 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 16:51:48 -0800 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg> <4D548323.80805@emilia-maxim.de> Message-ID: Sorry Emilia, I forgot Access-L replies directly to the person replying rather than the list. ---------- Forwarded message ---------- They got it. They found some pw cracker that unlocked the first few characters, which was enough for one of the old timers to remember. Thanks. :) 2011/2/10 Emilia Maxim David, > > > A coworker needs to open an old A2.0 database. >> >> They don't have the password. >> >> Anyway to bypass the mdw? >> > > If A2007 or A2010 "understand" A2.0, then they might have a chance. At > least I could import data from a secured A97 DB in A2007 without the mdw. > > -- > Regards > Emilia, TWIG > > Emilia Maxim > PC-SoftwareService > Stuttgart, Germany > From rockysmolin at bchacc.com Thu Feb 10 18:58:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 10 Feb 2011 16:58:47 -0800 Subject: [AccessD] Recordset Movements In-Reply-To: <002701cbc984$8b3edd10$a1bc9730$@com> References: <002701cbc984$8b3edd10$a1bc9730$@com> Message-ID: <4BFC9413470B4F6C82A793044BE2369A@HAL9005> I'd look at the record source for the report. But if you want to print a report of just that record, I would pass the PK of the record you want to print and in the _Open event set the report filter to just that record's PK. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Thursday, February 10, 2011 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Recordset Movements Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From stuart at lexacorp.com.pg Thu Feb 10 19:07:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 11 Feb 2011 11:07:56 +1000 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg>, , Message-ID: <4D548BEC.9197.49664D2@stuart.lexacorp.com.pg> No it doesn't. You email program does. :-) Obviously it is not honouring the "Reply-To" header in the message: Reply-To: Access Developers discussion and problem solving -- Stuart On 10 Feb 2011 at 16:51, David McAfee wrote: > Sorry Emilia, I forgot Access-L replies directly to the person > replying rather than the list. > > ---------- Forwarded message ---------- From Gustav at cactus.dk Fri Feb 11 02:03:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Feb 2011 09:03:48 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim From paul.hartland at googlemail.com Fri Feb 11 04:03:56 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 11 Feb 2011 10:03:56 +0000 Subject: [AccessD] Upgrading SSRS 2005 To SSRS 2008 On Different Server Message-ID: To all, I am getting an error when reports have been migrated from SSRS 2005 to SSRS 2008 which is 'The data source 'Connection_To_AL_SQL_Genesis' cannot be found. The data source name in SSRS 2005 is actually 'Connection To AL-SQL Genesis', I looked around on the internet and apparently when migrating to SSRS 2008 any spaces and hyphens in the connection name get replaced by underscores. So I went back to the data sources on SSRS 2005 and renamed my connection to 'ConnectionToALSQLGenesis' and relinked all the reports to the new name. So then went through the process of backing up the reportserver and reportservertempdb databases, and the reporting services encryption keys, copied the files to the new server, restored the databases and the reporting services encryption keys. However I am still getting the same error message when trying to open the reports, if I go to the properties of the report and re-connect to the data source I still get the same error. However if I reload the report and connect to the data source then it works !!!!! Can anyone shed any light as to what I am doing wrong or what I need to do to resolve this, as I dont really want to reload all the reports and re-connect the data sources. -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Feb 11 08:35:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 17:35:00 +0300 Subject: [AccessD] "Next Big Technology Things" - Was:RE: From a reader In-Reply-To: References: Message-ID: <94457126BED34D7FB1D867E8CEBE6F25@nant> Hi Gustav -- Thank you for your note. Shouldn't we move this discussion thread to dba-vb? No, I'm not fiddling with semi-boiled frameworks (I hope) - I'm mainly trying to find and "keep my eyes open" on the "next big" technology things I should be aware of. And Jim has already found them AFAIS. And that "next big technologies things" I'm (mainly) watching not yet using in my everyday real work or test projects should be generally accepted not only by MS shops... Then I will wait as much as possible until MS will make this "next big technology things" mature enough to use in real life applications. And that "next big technology things" for me currently are: - JavaScript (+jQuery) (yes, it's an "old thing" but MS started to support jQuery not that long ago); - RESTFul services + JSON (WCF + .NET Framework support them naturally); - HTML5 (IE9 and FireFox7(?)); - ADO.NET EF; - Silverlight and Windows Phone 7; - Azure. Did I miss some? <<< For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. >>> Yes, I'm "more than busy" here too... ...if I've had time to learn PERL (or Python or Ruby) I'd probably leave just: - 1) VS20xx + C# + MS Access + MS SQL - for desktop development; - 2) PERL (Python(?)/Ruby(?))+ HTML(5) + CSS + JavaScrip(jQuery)t + mySQL/MS SQL + a partnership with advanced web designer - for "classical" web development. - 3) Silverlight for Windows Pnone 7 development Thank you. -- Shamil P.S. BTW here is QCon short announcement for this year London conference - you can find that my "next big technology things" list is mainly covered by QCon list. And I will have to skip all the other subjects or just glance them - no time at all: - Enterprise Agile Transformation - Teams, Learning, Contracts & Collaboration; - Lean and Kanban: Learning Through Systems Thinking - Kanban at BBC, Design Thinking, Complexity vs. Lean, System Design; - Building Systems with REST - REST at BestBuy, Hypermedia-driven apps & integration, REST in .NET; - Architectures You've Always Wondered About - Facebook, Twitter, Netflix, OnLive, Visa; - When Things Break - "Let it crash", operating during Failure, Continuous Deployment, Unreliable Components; - Software Architecture Improvements - Architecture Refactoring, Re-engingeering, Erosion, Arch Assessment; - Design and Objects 2011 - OO at Facebook, OO at Government, Onion Design, OO in Java, Event-driven design; - Next-Generation Financial Technology- Futures Trade Flow, Millisecond latencies @ Linear Scale, CEP, and more; - NoSQL: Where and How - HBase at Facebook, MongoDB at Guardian.co.uk, and more NoSQL; - Software Craftsmanship - Craftsmanship & Engineering, Deliberate Practice, Leadership, Quality, Learning; - Functional Web - Node.JS, Haskell, Webmachine, Clojure, Conversational Web; - HTML5, the Platform - HTML5 at Facebook, WebSockets, Mobile, Secure browser OO; - Future of Java- JVM Languages, Java EE, Spring, OSGi, Virtualization & Cloud, GC; - .NET State of the Art - Azure, Rx Async Programming, Code Contracts, Reflection; - iOS4 and Android - Advanced iOS4 and Android stuff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 11 ??????? 2011 ?. 11:04 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 08:39:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 09:39:01 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D554A05.6000002@colbyconsulting.com> Borg, I have the database restored and available. If you were to attach to the Hamachi network that you received the invite to join, you would see the SQL Server database at 5.203.167.79. If you were to use the Access Fe that you sent to me, and edit the DSN to use that IP as the server name, you would be connecting directly into the server on my VM. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From accessd at shaw.ca Fri Feb 11 08:57:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 06:57:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav: In my type of business my clients are not necessarily Microsoft...in fact the largest clients are totally Linux/Unix based and their web systems and BE are build with PHP/Java, Oracle etc. I have my feet firmly in both worlds.? Many require mixed support with MS desktops and Linux/Unix Servers. In addition, clients are moving away from desktop?dependency?and are starting to request all web-based solutions. OTOH that does not mean I will not always be required to support MS products, it is just that they are far from the entire world in computing. Having limited time I have to guess at which products have staying power, work on the widest range of platforms, support who's paying the bills and devote?attention?to their application requirements first and foremost. ? Jim ?? ----- Original Message ----- From: Gustav Brock Date: Thursday, February 10, 2011 11:54 pm Subject: Re: [AccessD] From a reader To: accessd at databaseadvisors.com > Hi Shamil and Jim > > Of course, as a developer, you have to be curious and look > around searching to keep up and be familiar with the trends ... > but aren't you two constantly beating yourself by fiddling with > semi-boiled frameworks and techniques? For my part, just trying > to get up to speed with Visual Studio 2010 and Silverlight and > EF and (still) some Access and ... can keep me more than busy. > > /gustav > > > >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> > Hi Jim -- > > Thank you for your reply. > > AFAIK MS is one of the leaders in this area: WCF Data Services > (OData - > http://msdn.microsoft.com/en-us/data/bb931106) naturally support > RESTFul web > service concept and WCF Data Services can implement full CRUD > set of > operations for a given entity datamodel/database using ... yes, > ADO.NETEntity Framework (http://msdn.microsoft.com/en- > us/library/bb399572.aspx) - > all that stuff can be generated within VS2010 AFAIU... > > And as I have just found there already exists "New JavaScript > library for > OData and beyond" > (http://www.odata.org/blog/2011/2/9/new-javascript-library-for- > odata-and-bey > ond). > > The part which is missing is HTML forms generator for the HTML > forms to be > used together with jQuery and RESTFul Data Services (for the > same entity > datamodel/database) - I guess IronSpeed > (http://www.ironspeed.com/) will > make something like that soon... > > Then all the raw stuff can be generated for custom applications? > And here > you are with your advanced skills to customize raw stuff > produced by code > generators?... > > As for security - HTTPS doesn't solve this issue? I mean if a > user gets > authenticated by entering their user name/password (or use > LiveID or ...) to > setup an HTTPS session between browser and web server what could > malicioususers do here? Why VPN is considered more secure there? > > > Thank you. > > -- > Shamil > ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: 10 ??????? 2011 ?. 23:44 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > Hi Shamil: > > That is a series of good question. I am basically unfamiliar > with the > RESTful concept as, interesting enough; it only caught my eye a > couple of > days ago. There are a number of people working a GNU JQuery > RESTful API but > there are not finished products out there yet, that I am aware > of. For > example: > > http://mike-hostetler.com/representational-state-transfer-rest- > client-testin > g > > JAVA and PHP programmers seem to be a little ahead in this right > now. All > the major site have FEs build: Facebook, Amazon, EBay etc. > > As for a full database interface with all the bells and > whistles, a complete > CRUD type thing; again no complete interface. I have my own > ASP.Net/JQueryhybrids. Here is one of my sources for the initial > base code but I have > removed much of the BE direct processing and replaced that > connection with > JQuery AJAX calls: > > http://www.dotnetfunda.com/articles/article970-aspnet-gridview-- > jquery-tips- > and-tricks--part-1-.aspx > > There are many other ones out there again using PHP/JAVA. For example: > (watch the wrap..) > > http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud- > interface/?u > tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro > DevTips+-+dev+related+notes+and+tutorials) > ...and... > http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter- > iii/ > > Connecting to the database can always be a danger as if some > outside and > unauthorized individual gets access to your UI they may find a > way to hack > in. To that end most of my clients run their sites as only > Intranet or > through their company VPNs. Recently, I was shown an excellent > open source > GNU product at: http://openvpn.net/ (You do have to pay for > multiple remote > connections as it is needed to cover the company's hardware > costs but it is > really cheap.) > > This functions similar to Hamachi/Logmein and allows you as the > senior tech > to encompass a fixed set of users and offices anywhere in the world. > > I am currently working on a JQuery POS (header/detail/footer), > in my spare > time but it is turning out to be a huge time-consuming project, > with many > re-writes, as I continue to learn more, with hundreds > (thousands?) of lines > of code...all the heavy lifting, like the data management will > be done at > the back end. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Feb 11 10:11:51 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 11 Feb 2011 08:11:51 -0800 Subject: [AccessD] CDO Message-ID: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jimdettman at verizon.net Fri Feb 11 10:33:33 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 11 Feb 2011 11:33:33 -0500 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <25B63CE25E444FB3B740A456DF3A93AC@XPS> Rocky, CDO is the "middle of the road" approach. It still relies on software being installed on the machine, but gives you support for things outside of simply sending mail. I don't believe it's dead yet. If all your doing is sending mail with attachments, then the simplest thing I've ever found is BLAT.EXE. It's a command line utility for sending mail directly via a SMTP server. You simply need the server address and possibly a login. Outside of that, that's it. However it also gives you the least amount of control over the process (you need to shell() to use it). The only thing you can run afoul of is a firewall that blocks the program the first time you use it (and the user needs to click allow or block). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 11 12:30:11 2011 From: john at winhaven.net (John Bartow) Date: Fri, 11 Feb 2011 12:30:11 -0600 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <001201cbca19$b8506220$28f12660$@winhaven.net> It's not dead yet but from all I've read it's going to be. They haven't updated it for 2007/2010. I'm doing a bunch of stuff with Outlook directly now and will send you some stuff when I get it finished. What I like to do is check if Outlook is being used and if so I use that otherwise I use DoCmd.SendObject (which has somewhat basic capabilities) Outlook Redemption has been updated for 2010. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 12:58:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 13:58:49 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: <4D5586E9.8090409@colbyconsulting.com> It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > But that opens a persistent connection *for that fe* but not for the FE that is the application. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 12:25 PM, Heenan, Lambert wrote: >> I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. >> >> That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 11:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> That sounds more elegant than the code I found. >> Would you mind sharing the code? >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 10, 2011 10:14 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. >> >> I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. >> >> I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. >> >> Voila, persistent connections. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/10/2011 10:01 AM, jm.hwsn wrote: >>> Good points Jim, thanks. >>> I have turned off the sub-datasheets... I usually do that regardless >>> of the version. >>> I don't have any control over the servers, but I can ask them to make >>> some changes. >>> I never thought about the virus scan... I'll check into that. >>> Thanks, >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Dettman >>> Sent: Thursday, February 10, 2011 8:52 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] Access 2007 FE/BE speed >>> >>> Jim, >>> >>> The exclusive point is in regards to the FE in a split design, >>> which each user should have their own copy of, so opening exclusive >>> would be appropriate. >>> >>> Some other items: >>> >>> 1. Make sure the new ACE DB's are not being virus scanned. Since the >>> extension has changed, anti-virus sometimes kicks in. >>> >>> 2. Turn off the sub datasheets feature on all tables (FE and BE). >>> Not specific to A2007, but often overlooked. >>> >>> 3. Turning off OPLOCKs on the server, but that impacts all apps and >>> again, this applies to all versions (not A2007 specifically). >>> >>> 4. Often, A2007 is used in conjunction with a new server like 2008. >>> It appears that the SMB 2.0 specification is giving some apps >>> headaches, although this is not fully clear yet. Some report the app >>> works better when the server is forced to use SMB 1.0 protocol, >>> others 2.0, so your mileage may vary. >>> >>> Jim. >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >>> Sent: Thursday, February 10, 2011 08:58 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] Access 2007 FE/BE speed >>> >>> Access 2007 is inherently slow on a network configured using FE/BE >> scenario. >>> >>> I have scoured several websites and spent a lot of hours, to see if >>> A2007 can be modified to speed it up. >>> >>> Several "tips" were obscure on the sites and might only be mentioned >>> in passing. >>> >>> Here is what I've found: >>> >>> 1) ensure there is a persistent connection to the BE. Code can be >>> found on the FMS, Inc. site. >>> >>> 2) Ensure the BE location is in a "Trusted Location" in the FE. >>> >>> 3) Change record-level locking. I set the following: >>> >>> OLE/DDE timeout: 30 >>> >>> Refresh interval: 30 >>> >>> Number of update retries: 2 >>> >>> ODBC refresh interval: 120 >>> >>> Update retry interval: 250 >>> >>> 4) Turn off unused user interface features such as: Show animations >>> and Show Smart Tags on Datasheets >>> >>> >>> >>> In my somewhat limited test, my FE runs almost as fast as an >>> integrated file. I know it's running little slower, but I can barely >>> see the difference >>> - I can live with it. The biggest improvement came when I did 2 and >>> 3 above. I still haven't done or tested number 1 above. >>> >>> >>> >>> Other items that are recommended are: >>> >>> change the default open mode: Exclusive >>> >>> default record locking: Edited Record. >>> >>> However, I don't think these would work with a shared BE. I don't >>> think there is a way to make these different for two separate files. >>> >>> >>> >>> Do you have any other ideas or words of wisdom or comments? >>> >>> Thanks, >>> >>> Jim >>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Feb 11 13:37:15 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 11 Feb 2011 13:37:15 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at chartisinsurance.com Fri Feb 11 13:48:16 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 11 Feb 2011 14:48:16 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D5586E9.8090409@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Ah. I see. Another example of how email is amongst the poorest forms of communication homo sapiens has come up with so far. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, February 11, 2011 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > From steve at datamanagementsolutions.biz Fri Feb 11 13:53:23 2011 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sat, 12 Feb 2011 08:53:23 +1300 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA From df.waters at comcast.net Fri Feb 11 15:43:10 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 11 Feb 2011 15:43:10 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <071A30A392964280AF4AC02A6FA9F97B@DanWaters> Hi Rocky, Another good choice is Outlook Security Evader from www.everythingaccess.com. It's $79 for a single developer. It consists of 4 classes that are added to your access file - no external .dll. I've two experiences with customer support - both resulted in an update in less than a day. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 11, 2011 1:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 11 18:07:58 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:07:58 +1000 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Ambiguous question :-) Does "which would need to be registered" relate to "dlls or activex controls" or just to "activex controls" I generally go with Blat. A proper native code DLL which doesn't require registering. -- Stuart On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without > using dlls or activex controls which would need to be registered? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:09:13 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:09:13 +1000 Subject: [AccessD] CDO In-Reply-To: <25B63CE25E444FB3B740A456DF3A93AC@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> Message-ID: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). From stuart at lexacorp.com.pg Fri Feb 11 18:11:21 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:11:21 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > From accessd at shaw.ca Fri Feb 11 18:15:58 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:15:58 -0800 Subject: [AccessD] CDO In-Reply-To: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: I will back you up on that one. BLAT is so simple that if it does not work the last place you look is at BLAT. Start checking to see if your ports are open or whether you can actually see the web. It resided all in one directory, runs of a client or server without issues. The only trouble you may have is working at the CMD prompt and for some of you new boys it may be a real problem. ;-) Jim ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:08 pm Subject: Re: [AccessD] CDO To: Access Developers discussion and problem solving > Ambiguous question :-) > > Does "which would need to be registered" relate to "dlls or > activex controls" or just to > "activex controls" > > I generally? go with Blat.? A proper native code DLL > which doesn't require registering. > > -- > Stuart > > On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > > > Is CDO dead or alive?? Use it or lose it?? > > > > What's the best way to automatically send emails from an app without > > using dlls or activex controls which would need to be > registered?? > > > > MTIA > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > Skype: rocky.smolin > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 11 18:19:44 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:19:44 -0800 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Hi Brad: If you ever have a problem with BLAT just ask Stuart for a sample piece of code or in a real pinch ask me. ;-) Jim ? ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:11 pm Subject: Re: [AccessD] CDO - RE: What's the best way to automatically send emails from an app To: Access Developers discussion and problem solving > What "install"???? Just stick the EXE or DLL > anywhere appropriate and call it.? There is no > need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a > reply.? I thought > > that it was worth a little money to have good product support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:22:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:22:56 +1000 Subject: [AccessD] Sparkline like graphs in Acces Reports In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <4D55D2E0.28767.52276E@stuart.lexacorp.com.pg> A neat demo database with simple code for adding mini-graphs to each row of a report. http://blogs.office.com/b/microsoft-access/archive/2011/02/10/power-tip-add-sparkline-like- graphs-to-access-reports.aspx or http://goo.gl/Wd8lE -- Stuart From accessd at shaw.ca Fri Feb 11 18:34:52 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:34:52 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? From jwcolby at colbyconsulting.com Fri Feb 11 20:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 21:21:46 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <4D55EEBA.9090206@colbyconsulting.com> Unfortunately the tied up my billions in Egyptian gas shares while they were at it. John W. Colby www.ColbyConsulting.com On 2/11/2011 7:34 PM, Jim Lawrence wrote: > Switzerland has frozen all Hosni Mubarak's accounts as of today. Actually they frozen all of the Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. > > He was little more than history as soon as that was done. > > Jim From pcs.accessd at gmail.com Sat Feb 12 00:09:15 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 12 Feb 2011 16:09:15 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: John, sending this a second time, as the first email was above the 20Kb limit ?!!? If keeping this conversation on Accessd, please continue under a new Subject Heading Borge > Alright ... done that ... assuming using SQL Server Authentication, so I > need user name and pword for your connection / ODBC systems DSN .... I tried > with same user name and password as I had kept in my configuration .... > didn't work .... > > I can ping your network... > I can chat to your network... > I can't connect to your sql server .... > Back to the drawing board... > > Regards > Borge > > > > On Sat, Feb 12, 2011 at 12:39 AM, jwcolby wrote: > >> Borg, >> >> I have the database restored and available. If you were to attach to the >> Hamachi network that you received the invite to join, you would see the SQL >> Server database at 5.203.167.79. >> >> If you were to use the Access Fe that you sent to me, and edit the DSN to >> use that IP as the server name, you would be connecting directly into the >> server on my VM. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> From accessd at shaw.ca Sat Feb 12 00:36:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 22:36:02 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <4D55EEBA.9090206@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: I sorry to hear to hear that John. Jim ? ----- Original Message ----- From: jwcolby Date: Friday, February 11, 2011 6:22 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > Unfortunately the tied up my billions in Egyptian gas shares > while they were at it. > > John W. Colby > www.ColbyConsulting.com > > On 2/11/2011 7:34 PM, Jim Lawrence wrote: > >Switzerland has frozen all Hosni Mubarak's accounts as of > today. Actually they frozen all of the Egyptian accounts and > they are in excess of 3 billion dollars of the government's or > people's money. It always seems that these dictators keep huge > off-shore stashes of cash in case they ever have to make a run > for it. > > > >He was little more than history as soon as that was done. > > > >Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Feb 12 04:39:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:39:26 -0500 Subject: [AccessD] Hamachi progress In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D56635E.3010407@colbyconsulting.com> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... Sounds like progress though. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From jwcolby at colbyconsulting.com Sat Feb 12 04:40:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:40:22 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: <4D566396.3090001@colbyconsulting.com> That's what happens when ya hobnob with dictators. Luckily I don't need the money right now. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:36 AM, Jim Lawrence wrote: > I sorry to hear to hear that John. > > Jim > > > > ----- Original Message ----- > From: jwcolby > Date: Friday, February 11, 2011 6:22 pm > Subject: Re: [AccessD] Frozen accounts > To: Access Developers discussion and problem solving > >> Unfortunately the tied up my billions in Egyptian gas shares >> while they were at it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/11/2011 7:34 PM, Jim Lawrence wrote: >>> Switzerland has frozen all Hosni Mubarak's accounts as of >> today. Actually they frozen all of the Egyptian accounts and >> they are in excess of 3 billion dollars of the government's or >> people's money. It always seems that these dictators keep huge >> off-shore stashes of cash in case they ever have to make a run >> for it. >>> >>> He was little more than history as soon as that was done. >>> >>> Jim >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From kost36 at otenet.gr Sat Feb 12 08:30:17 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 12 Feb 2011 16:30:17 +0200 Subject: [AccessD] Passing query "Between" date values into a form Message-ID: <0421405D459E470B8565306DFAE9289F@kost36> Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas From ab-mi at post3.tele.dk Sat Feb 12 13:14:58 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 12 Feb 2011 20:14:58 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0421405D459E470B8565306DFAE9289F@kost36> References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Feb 12 14:27:21 2011 From: john at winhaven.net (John Bartow) Date: Sat, 12 Feb 2011 14:27:21 -0600 Subject: [AccessD] CDO In-Reply-To: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Message-ID: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> One of the issues I've run into using third party email apps/activex/dll in one Microsoft (government) network is that the security staff install spam blockers and such that do not allow anything to access the smtp server. They basically broke my application that had been installed there for 10 years and refused to adapt their security to allow it to work. Ignorance makes for paranoia and there's no getting around ignorant security staff. They are like gods to the unwitting administrative staff that have to make the final decisions. So I was basically forced into recoding an old iron horse app to utilize Outlook/Exchange and the user just has to click the irritating "allow for one hour" prompt when the first email is sent. It is no big deal to them just an item that needs to be explained. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, February 11, 2011 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Sat Feb 12 17:40:52 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Sat, 12 Feb 2011 17:40:52 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Stuart, I probably should have said "getting Blat to work with Access" instead of just the word "install". This work was done almost a year ago and I don't remember all of the details (plus I have some brain damage from 32 years of COBOL, CICS, and DB2 :-) Anyway, as I recall, I spent several hours trying to get Blat to work with Access but ran into problems. I then did some research of other products and ended up buying Febooti. The two things that first sold me on Febooti were their very good online documentation and the fact that I was able to get it to work with Access very quickly. I may take another look at Blat for future projects. I have seen it mentioned by many people so I might experiment with it again, down the road. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Fri 2/11/2011 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- 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 jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <7E7BA0B951514023A3D06606F6C0C91F@XPS> Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO In-Reply-To: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> Message-ID: <10132A1CB2B04D1892BBF1255F4A3620@XPS> Stuart, Yes, but the DLL (unless something has changed) is no where near as up to date as the command line EXE or as feature rich. But I still should have mentioned it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:37:29 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:37:29 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <25F48DD1AA344148944DCC21BA26B24D@XPS> um...should this not be on the OT list? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 11, 2011 07:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Frozen accounts Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 13 06:51:07 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:51:07 +1000 Subject: [AccessD] CDO In-Reply-To: <10132A1CB2B04D1892BBF1255F4A3620@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> Message-ID: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 13 06:52:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:52:56 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg>, <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <4D57D428.20786.598D18E@stuart.lexacorp.com.pg> That was always an option, not a requirement. All it did was store some standard switches such as server name in the Windows Registry so that you didn't need to include them in the command line each time. -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > I think he's talking about the little "install" that must be done > with > Blat itself the first time you use it. If memory serves though, I > believe their was a change with that where it was no longer required. > Been 4 or 5 years since I last used BLAT. > > I stick to vbSendMail now. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO - > RE: What's the best way to automatically sendemails from an app > > What "install"? Just stick the EXE or DLL anywhere appropriate and > call it. There is no need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a reply. I > > thought that it was worth a little money to have good product > > support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Feb 13 08:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 06:37:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <25F48DD1AA344148944DCC21BA26B24D@XPS> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: Yes, it should have. Power outage fried my email server and I was still getting use to the web interface, :-) Jim ----- Original Message ----- From: Jim Dettman Date: Sunday, February 13, 2011 3:37 am Subject: Re: [AccessD] Frozen accounts To: 'Access Developers discussion and problem solving' > > ? um...should this not be on the OT list? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: Friday, February 11, 2011 07:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Frozen accounts > > Switzerland has frozen all?Hosni Mubarak's accounts as of today. > Actuallythey frozen all of the?Egyptian accounts and they are in > excess of 3 billion > dollars of the government's or people's money. It always seems > that these > dictators keep huge off-shore stashes of cash in case they ever > have to make > a run for it. > > He was little more than history as soon as that was done. > > 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 df.waters at comcast.net Sun Feb 13 09:38:02 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 09:38:02 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automatically sendemails from an app) In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:16:48 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:16:48 -0500 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:18:39 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:18:39 -0500 Subject: [AccessD] CDO In-Reply-To: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> Message-ID: <906488E01DC842EABF7450742C2F4F50@XPS> Stuart, <> Very nice to know, thanks. The DLL is native correct? Doesn't need to be registered? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 13:00:34 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 13:00:34 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg><7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <3B7E0BE15AA74052B488AFA84DD7F51B@DanWaters> No problem - saves me all kinds of grief! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Sun Feb 13 14:02:04 2011 From: delam at zyterra.com (Debbie) Date: Sun, 13 Feb 2011 14:02:04 -0600 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> It did send on Friday after all. Debbie Sent from my iPhone On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > Yes, it should have. Power outage fried my email server and I was > still getting use to the web interface, :-) > > Jim > > > > ----- Original Message ----- > From: Jim Dettman > Date: Sunday, February 13, 2011 3:37 am > Subject: Re: [AccessD] Frozen accounts > To: 'Access Developers discussion and problem solving' > > >> >> um...should this not be on the OT list? >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> LawrenceSent: Friday, February 11, 2011 07:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Frozen accounts >> >> Switzerland has frozen all Hosni Mubarak's accounts as of today. >> Actuallythey frozen all of the Egyptian accounts and they are in >> excess of 3 billion >> dollars of the government's or people's money. It always seems >> that these >> dictators keep huge off-shore stashes of cash in case they ever >> have to make >> a run for it. >> >> He was little more than history as soon as that was done. >> >> 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 accessd at shaw.ca Sun Feb 13 16:06:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 14:06:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> Message-ID: Thank you Debbie ;-) Jim ? ----- Original Message ----- From: Debbie Date: Sunday, February 13, 2011 12:02 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > It did send on Friday after all. > > Debbie > > Sent from my iPhone > > On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > > >Yes, it should have. Power outage fried my email server and I > was still getting use to the web interface, :-) > > > >Jim > > > > > > > >----- Original Message ----- > >From: Jim Dettman > >Date: Sunday, February 13, 2011 3:37 am > >Subject: Re: [AccessD] Frozen accounts > >To: 'Access Developers discussion and problem solving' > > > >> > >>? um...should this not be on the OT list? > >> > >>Jim. > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >>LawrenceSent: Friday, February 11, 2011 07:35 PM > >>To: Access Developers discussion and problem solving > >>Subject: [AccessD] Frozen accounts > >> > >>Switzerland has frozen all Hosni Mubarak's accounts as of today. > >>Actuallythey frozen all of the Egyptian accounts and they are in > >>excess of 3 billion > >>dollars of the government's or people's money. It always seems > >>that these > >>dictators keep huge off-shore stashes of cash in case they ever > >>have to make > >>a run for it. > >> > >>He was little more than history as soon as that was done. > >> > >>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 stuart at lexacorp.com.pg Sun Feb 13 16:57:53 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 14 Feb 2011 08:57:53 +1000 Subject: [AccessD] CDO In-Reply-To: <906488E01DC842EABF7450742C2F4F50@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> Message-ID: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Sun Feb 13 17:19:17 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:19:17 +0100 Subject: [AccessD] List politeness - responding to answers Message-ID: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger From ab-mi at post3.tele.dk Sun Feb 13 17:21:59 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:21:59 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: <0608D47FEF8E463095A0A9281128D242@abpc> Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Sun Feb 13 17:27:14 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 14 Feb 2011 10:27:14 +1100 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> References: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <201102132328.p1DNSUE5007261@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ agreed, and there is value for all other list members as then we know if the provided solution was suitable or not. and it is also good manners. regards Darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond [ab-mi at post3.tele.dk] Sent: Monday, 14 February 2011 10:19 AM To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rockysmolin at bchacc.com Sun Feb 13 17:45:13 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 15:45:13 -0800 Subject: [AccessD] CDO In-Reply-To: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 20:11:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 20:11:41 -0600 Subject: [AccessD] CDO In-Reply-To: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Message-ID: <7B20395DF450419295B8AB132547D842@DanWaters> Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 13 22:03:23 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 20:03:23 -0800 Subject: [AccessD] CDO In-Reply-To: <7B20395DF450419295B8AB132547D842@DanWaters> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg><97730524ECCC4F12B97A52F009DC6CF6@HAL9005> <7B20395DF450419295B8AB132547D842@DanWaters> Message-ID: <3FAC692F0DA243D5B773D32C140A525C@HAL9005> Thanks. Will forward and get and answer. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 6:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 14 01:18:41 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 14 Feb 2011 07:18:41 -0000 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <393E113EBEE44CD0AA0C36FF5C0A5047@MINSTER> Fair point Asger. I hope everyone takes heed. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: 13 February 2011 23:19 To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I've seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn't getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Feb 14 01:27:23 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 14 Feb 2011 09:27:23 +0200 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0608D47FEF8E463095A0A9281128D242@abpc> References: <0421405D459E470B8565306DFAE9289F@kost36> <0608D47FEF8E463095A0A9281128D242@abpc> Message-ID: <80B8AC08C4BC48ED980667CB0BA6AC4F@kost36> Yes Asger it works perfect thank's a lot /kostas -----Original Message----- From: Asger Blond Sent: Monday, February 14, 2011 1:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Passing query "Between" date values into a form Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 5871 (20110213) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com From Gustav at cactus.dk Mon Feb 14 05:07:06 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 12:07:06 +0100 Subject: [AccessD] Cleaning data by an Open Source tool Message-ID: Hi all Sometimes it has been discussed how to clean data. Here is an Open Source offer with a reputation of high quality: DataCleaner 2.0 http://datacleaner.eobjects.org/newsitem/datacleaner-2.0-released I haven't used it myself so I cannot give any further advice. /gustav From jm.hwsn at gmail.com Mon Feb 14 10:18:59 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 10:18:59 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem Message-ID: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim From Gustav at cactus.dk Mon Feb 14 10:31:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 17:31:48 +0100 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Message-ID: Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav From rockysmolin at bchacc.com Mon Feb 14 10:54:59 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 08:54:59 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <440D6D582182440E9ADD781199DD31B0@HAL9005> For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 11:23:34 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 11:23:34 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <4d596519.0120970a.351c.7690@mx.google.com> Thanks, Rocky. I'll try it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jengross at gte.net Mon Feb 14 11:58:29 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 09:58:29 -0800 Subject: [AccessD] Force Closing the FE Message-ID: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross From charlotte.foust at gmail.com Mon Feb 14 12:14:09 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 10:14:09 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in an > attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, delete or > modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale (1-10 or > 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as well as > change the text of the question. > > We are currently going through usability testing. ?The entire "class" is > around 500 students. ?The class has a 3 digit identifier that is used in the > questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The question > form has a sub form that shows an example of the question as it would look > on the questionnaire. ?When a search is done using a list box for combo box > the sub form changes to reflect the text and ?type of question. ?When the > question type changes the sub form updates the sample. For example a > question might change from a fill-in question to combo box self-lookup > question OR a question might change from a 4 pt multiple choice to a 4 pt > Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in some > questions. ?The researcher puts this identifier within the question to > personalize it for the students. ?I have a button on the question form that > is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need > to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after the > "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while the > dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys to > ensure that "Match" is set to "Any Part of Field" and that the cursor goes > to "Find What" field. ?That works, however, occasionally the Num Lock key is > turned off. ?I understand that I could use: Application.SetOption "Default > Find/Replace Behavior",1 - but that would set it for all users. ?Is there > some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Mon Feb 14 12:18:04 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:18:04 -0600 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <4d5971de.8772ec0a.699a.295a@mx.google.com> I did this once! The user's were not happy. Some opened the database and kept it open all day. Sometimes it would be idle for hours. Instead, what I did was to force close the FE's whenever I needed to do maintenance. I placed a small text file in the directory where the BE resided. To force everyone out, I changed the extension from txt to something else. Code in the frontend would periodically look for the file and if the extension was changed the user would get a pop-up form indicating the database would shut down in 1 minute for maintenance. I found the code and method here: http://support.microsoft.com/kb/304408 It worked for me. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 11:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 14 12:23:25 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 10:23:25 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 12:25:39 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:25:39 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> I do not use acCmdFindNext at all. But yes, the user can modify any instance of the value being searched. When the button is clicked, the Find Dialog appears. The user has the option to search for any text they need to find. They also have the option to do a global change (e.g. 68W to 92C) within all the question texts. Anytime the "Find Next" button in the Find Dialog box is pressed the sub form does not update. The user can use the dialog box for anything within the question text. Thanks, Charlotte Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. ?The entire "class" > is around 500 students. ?The class has a 3 digit identifier that is > used in the questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. ?When a search is done using a > list box for combo box the sub form changes to reflect the text and ? > type of question. ?When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. ?The researcher puts this identifier within the > question to personalize it for the students. ?I have a button on the > question form that is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will > need to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. ?That works, however, occasionally > the Num Lock key is turned off. ?I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. ?Is there some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > 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 jengross at gte.net Mon Feb 14 12:35:13 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 10:35:13 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> Message-ID: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 13:22:09 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 19:22:09 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:08:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:08:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:20:04 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:20:04 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:28:19 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:28:19 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Message-ID: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:44:02 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:44:02 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:52:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:52:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Message-ID: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 16:09:58 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 17:09:58 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <000301cbcc93$ece41320$c6ac3960$@com> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 16:10:22 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 22:10:22 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From stuart at lexacorp.com.pg Mon Feb 14 16:21:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 08:21:23 +1000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106>, <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > From jengross at gte.net Mon Feb 14 16:25:21 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:25:21 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> Message-ID: <004701cbcc96$1253e5c0$1201a8c0@Schroeder> Would you be willing to share the database log table and code? If so, please send to jennifer at yourdatabasics.com. I know I have stuff that I've been using since the mid-90's that I can't do without and use in every database as well. I don't even think about their existence or how they work - they just do what I need them to do. Thanks again, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 14 16:26:43 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:26:43 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <004801cbcc96$42d4bcb0$1201a8c0@Schroeder> Great idea Stuart. I am going to work this into the code that Bruce sent. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Feb 14 16:40:44 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 23:40:44 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jengross at gte.net Mon Feb 14 16:48:45 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:48:45 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: Message-ID: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 14 17:20:12 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 14 Feb 2011 18:20:12 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <125E4D47A358498F9B5FF73038C34406@XPS> FYI, the code Rocky has is from here: http://support.microsoft.com/?id=210297 also, there may be interest in passive shutdown which is a middle of the road approach between doing nothing and forcing users out (it prevents new users from connecting to the DB but doesn't kick existing users out): http://msdn.microsoft.com/en-us/library/aa164890(v=office.10).aspx You may want to combine that with a idle timeout and/or forced exit. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 02:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE <> From charlotte.foust at gmail.com Mon Feb 14 17:53:47 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 15:53:47 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the option > to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the sub > form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and allow > the researcher to modify that instance? ?Then use acCmdFindNext and it > doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students in >> an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form updates >> the sample. For example a question might change from a fill-in >> question to combo box self-lookup question OR a question might change >> from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) while >> the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use SendKeys >> to ensure that "Match" is set to "Any Part of Field" and that the >> cursor goes to "Find What" field. ?That works, however, occasionally >> the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 darren at activebilling.com.au Mon Feb 14 17:55:59 2011 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 15 Feb 2011 10:55:59 +1100 Subject: [AccessD] Force Closing the FE Message-ID: <014401cbcca2$bb920bb0$32b62310$@activebilling.com.au> Hi Jennifer Further to what has been said here - I also keep a track of what users have logged in and from what machine and when It has allowed me to prove or dis-prove a lot of things said by clients I also capture the logout/logoff times too and am able to do a simple average time logged in once I have these details Good for reports and again - for proving or dis-proving some claims If for whatever reason there was an ungraceful shutdown of the app or the local machine the log off times and machines are not recorded So this then allows me to see all the orphaned logons without a corresponding logoff. This info is useful as well My approach to this 'Everybody Out!' issue was to give an admin person a special admin form/s. This admin form allowed them to type messages (as well as 'canned' messages) and set statuses that the app responded to accordingly I had a routine that periodically checked this special Massages table in the BE and then behave accordingly. E.g. the Admin person could send a generic message to all users and the users would see this message. They could see it as a message box that required a click from the user, or as Stuart mentioned, in a timed/modal form It depended on the 'type' of message the admin person wanted to send The admin person could also set up a timed shut down - Users were alerted to that and they saw on screen countdowns for say 5mins down to closing time Or the admin person could set a forced immediate shutdown as well - again depending on the need The code had many messaged it could react to - I had about 6 or 7 that were code driven - but these could be categorised and made into a growing table driven list A bit like a Message Bus Of course for your needs it sounds like you need to get the time from a server and if a set time (Say 7:00pm) has passed then shut the front end. That's not too tricky either - but of course this mucks up the logon logoff times and average logged on times - but that's not a big deal if you aren't doing that already Lots of fun with these back end administrator screens See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, 15 February 2011 4:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 18:41:33 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 19:41:33 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: Message-ID: <000c01cbcca9$19f950e0$4debf2a0$@com> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djdros at derrickcorp.com Mon Feb 14 21:18:53 2011 From: djdros at derrickcorp.com (Dros, David J.) Date: Tue, 15 Feb 2011 06:18:53 +0300 Subject: [AccessD] Access 2003 on win server 2008 SLOW Message-ID: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Urgent help!! Has anyone encountered this? Acc 2003 FE/BE on brand new network. Clients running xp. Top of the line hardware etc. Cat 6 gig drops /nics etc. File transfer speed lightning fast. BE sitting on a brand new $25k nas running windows storage server 2008 64bit. Queries that write to the database take minutes vs seconds on old 10/100mb network of xp clients against single 10yr old sever 2003 fileserver. We are handcuffed in the middle of an overseas deployment. Any help or referals would be greatly appreciated. Thank you. David J Dros Derrick Corporation Sent from mobile device LEGAL & CONFIDENTIALITY NOTICE: This message, including any attachments, is intended for the addressee(s) only and contains confidential information. Access to the message by anyone else is unauthorized. If the reader of this message is not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any review, retransmission, disclosure, copying, or distribution of this message, or the taking of any action in reliance on its contents, by persons or entities other than the intended recipient is strictly prohibited. If you have received this email in error, we ask you to contact the sender immediately, delete this message from your computer system, and destroy all paper copies. From stuart at lexacorp.com.pg Mon Feb 14 21:27:08 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 13:27:08 +1000 Subject: [AccessD] Access 2003 on win server 2008 SLOW In-Reply-To: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Message-ID: <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Could it be something to do SMB2. I've just come across this in another context and was pointed to http://www.alaska-software.com/fixes/smb2/overview.shtm "With the advent of Windows Vista and Windows 7, Microsoft introduced a new network protocol (SMB2) to optimize file sharing for WAN and low bandwidth and high latency scenarios. To optimize these types of file access scenarios, Microsoft performed design decisions which lead to the inability of the new SMB2 protocol to handle cache coherency of file meta information such as the file size, the last update time and whether the file actually exists on the server ("file not found" status). As a result of this design decision made by Microsoft, the SMB2 protocol with its default configuration breaks any application relying on shared, concurrent data access. It is therefore absolutely required to reconfigure the SMB2 cache of the local workstation to not cache file meta information. Alaska Software provides to its customers and their end-users an MSI installation package which reconfigures the SMB2 cache accordingly. This MSI package needs to be executed on any Vista and Windows 7 workstation in a network to ensure that no data loss or data corruption occurs when accessing files concurrently." -- Stuart On 15 Feb 2011 at 6:18, Dros, David J. wrote: > Urgent help!! > Has anyone encountered this? Acc 2003 FE/BE on brand new network. > Clients running xp. Top of the line hardware etc. Cat 6 gig drops > /nics etc. File transfer speed lightning fast. BE sitting on a brand > new $25k nas running windows storage server 2008 64bit. Queries that > write to the database take minutes vs seconds on old 10/100mb network > of xp clients against single 10yr old sever 2003 fileserver. We are > handcuffed in the middle of an overseas deployment. Any help or > referals would be greatly appreciated. Thank you. > From rockysmolin at bchacc.com Mon Feb 14 23:58:40 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 21:58:40 -0800 Subject: [AccessD] Error 3709 The search key was not found in any record Message-ID: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Dear List: Client gets this error: "Error 3709 The search key was not found in any record" and the line of code triggering it is Me.Filter = strWhere. strWhere has some valid filtering criteria. It seems to be random or at least not replicatable. Big variable is that he's running an A2K3 mdb on A2K7 (boo!) and W7. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Gustav at cactus.dk Tue Feb 15 03:57:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Feb 2011 10:57:46 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert You are most likely right. I had to give up on this after some bad experiences with "lost" data - an issue that never had happened before of "no apparent reason" and never happened again after the automatic shutdown was removed. /gustav >>> robert at servicexp.com 15-02-2011 01:41 >>> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jackandpat.d at gmail.com Tue Feb 15 07:27:15 2011 From: jackandpat.d at gmail.com (jack drawbridge) Date: Tue, 15 Feb 2011 08:27:15 -0500 Subject: [AccessD] Error 3709 The search key was not found in any record In-Reply-To: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> References: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Message-ID: Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in any > record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is that > he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Tue Feb 15 08:09:28 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 08:09:28 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 robert at servicexp.com Tue Feb 15 08:46:45 2011 From: robert at servicexp.com (Robert) Date: Tue, 15 Feb 2011 09:46:45 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <002901cbcd1f$2c3a0030$84ae0090$@com> Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 09:05:37 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 09:05:37 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <002901cbcd1f$2c3a0030$84ae0090$@com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <002901cbcd1f$2c3a0030$84ae0090$@com> Message-ID: <4d5a9643.1f44960a.3b51.07f8@mx.google.com> Thanks, Robert. I tried that. I also tried to use a function (private and public) to no avail. The acCmdFind dialog box is the same one seen when Ctr+F is pressed. I would like to put something on the button "Find Next" but it seems that's not possible. I didn't want to create my own dialog box, but I might have to. Thanks for all the suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, February 15, 2011 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I >> could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 10:34:09 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 08:34:09 -0800 Subject: [AccessD] FW: Error 3709 The search key was not found in any record Message-ID: <2AB45B24A4304C9EBF470DF4AB232489@HAL9005> -----Original Message----- From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Tuesday, February 15, 2011 6:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error 3709 The search key was not found in any record Jack: There is a memo field in that bound form. I'll forward to the client. If we can figure out how to duplicate the problem reliably (it's seemingly random at the moment) then I could delete all of the data in the memo fields and see if that solves it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Tuesday, February 15, 2011 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3709 The search key was not found in any record Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in > any record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is > that he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 13:49:38 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 11:49:38 -0800 Subject: [AccessD] Convert To PDF Problem Message-ID: Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rusty.hammond at cpiqpc.com Tue Feb 15 13:55:05 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 15 Feb 2011 13:55:05 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Tue Feb 15 14:20:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 06:20:10 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Tue Feb 15 14:20:43 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 15 Feb 2011 14:20:43 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 14:26:05 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 14:26:05 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Message-ID: <4d5ae160.6a3fec0a.2e90.ffffb98a@mx.google.com> That's correct. Thanks for the clarification. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 15, 2011 2:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 14:33:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 12:33:12 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <63463EA44AC249B49075058DBAB40786@HAL9005> Same report. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Tuesday, February 15, 2011 11:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert To PDF Problem Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Feb 15 15:01:18 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 13:01:18 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <8E759E1C63BE4A9AA390D5B4FABE93C8@HAL9005> Dan: I changed Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) To Set db = CurrentDb Set rstQ = db.OpenRecordset("Select * FROM tblUser") Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) rstQ.Close Set rstQ = Nothing But to no avail. I do get the flash on the screen that says the snp is being created, then...nothing. It should create the PDF and then fall through to a message box that says "Rental Agreements exported." bit it doesn't. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 15, 2011 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert To PDF Problem Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Tue Feb 15 21:20:08 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 21:20:08 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: I sent someone a database with a compiled front end / back end last June. Now he has emailed me because the the forms and reports can be viewed in Design view. The file he sent back (with .mde extension) does not run the startup form, and it does allow me to open forms and reports in Design view. The modules are all gone however. This was an Access2000 database. I don't know what version of Access his co-workers were using (he's just the messenger), but I do know that the OS is Windows7. I had also heard from them last June that they were having trouble opening the file -- getting a message that Windows was blocking it. It sounds like they found something to handle the problem of the database being blocked by Windows 7 that ended up allowing design view? Does anyone know what they might have done? The person I'm dealing with doesn't seem to know. Thanks Carolyn Johnson St Louis, MO From stuart at lexacorp.com.pg Tue Feb 15 21:46:34 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:46:34 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> The only way that I can think of for that to happen is that someone has used a tool to recreate the forms and reports from the original MDE into another file which they have given the same name. That would explain the absence of any code modules. I seem to remember one of our list members creating such a thing a few years ago. Hang on a minute while I search my archives...... Yep, Shamil came up with concept back in 2002. Last reference on the list was: "Shamil Salakhetdinov" Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, Issue 23 Tue,16 Feb 2010 23:12:03 +0300 -- Stuart On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > I sent someone a database with a compiled front end / back end last > June. Now he has emailed me because the the forms and reports can be > viewed in Design view. > > The file he sent back (with .mde extension) does not run the startup > form, and it does allow me to open forms and reports in Design view. > The modules are all gone however. > > > This was an Access2000 database. I don't know what version of Access > his co-workers were using (he's just the messenger), but I do know > that the OS is Windows7. I had also heard from them last June that > they were having trouble opening the file -- getting a message that > Windows was blocking it. > > > It sounds like they found something to handle the problem of the > database being blocked by Windows 7 that ended up allowing design > view? Does anyone know what they might have done? The person I'm > dealing with doesn't seem to know. > > > > Thanks > Carolyn Johnson > St Louis, MO > -- > 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 Feb 15 21:55:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:55:02 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> Message-ID: <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Tue Feb 15 22:32:05 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 22:32:05 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Message-ID: <931C03D1C41D479D8A387793840B07A5@Dell> Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . And I still don't know what the issue is with it being blocked by Windows 7. None of this makes sense, although that may be asking for too much. Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Tuesday, February 15, 2011 9:55 PM Subject: Re: [AccessD] compiled .mde file allowing design view Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 16 05:11:21 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 16 Feb 2011 06:11:21 -0500 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <931C03D1C41D479D8A387793840B07A5@Dell> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> <931C03D1C41D479D8A387793840B07A5@Dell> Message-ID: <4D5BB0D9.7000902@colbyconsulting.com> In a true MDE the code is there, it is just in a PCode state, i.e. the source has been removed. John W. Colby www.ColbyConsulting.com On 2/15/2011 11:32 PM, Carolyn Johnson wrote: > Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . > > And I still don't know what the issue is with it being blocked by Windows 7. > > None of this makes sense, although that may be asking for too much. > > > Carolyn > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Tuesday, February 15, 2011 9:55 PM > Subject: Re: [AccessD] compiled .mde file allowing design view > > > Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of > the forms and reports in the MDE. > > -- > Stuart > > On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > > > The only way that I can think of for that to happen is that someone > > has used a tool to recreate the forms and reports from the original > > MDE into another file which they have given the same name. That would > > explain the absence of any code modules. > > > > I seem to remember one of our list members creating such a thing a few > > years ago. Hang on a minute while I search my archives...... > > > > Yep, Shamil came up with concept back in 2002. Last reference on the > > list was: > > > > "Shamil Salakhetdinov" > > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > > > > -- > > Stuart > > > > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > > > I sent someone a database with a compiled front end / back end last > > > June. Now he has emailed me because the the forms and reports can > > > be viewed in Design view. > > > > > > The file he sent back (with .mde extension) does not run the startup > > > form, and it does allow me to open forms and reports in Design view. > > > The modules are all gone however. > > > > > > > > > This was an Access2000 database. I don't know what version of > > > Access his co-workers were using (he's just the messenger), but I do > > > know that the OS is Windows7. I had also heard from them last June > > > that they were having trouble opening the file -- getting a message > > > that Windows was blocking it. > > > > > > > > > It sounds like they found something to handle the problem of the > > > database being blocked by Windows 7 that ended up allowing design > > > view? Does anyone know what they might have done? The person I'm > > > dealing with doesn't seem to know. > > > > > > > > > > > > Thanks > > > Carolyn Johnson > > > St Louis, MO > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 21:51:27 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 19:51:27 -0800 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) In-Reply-To: References: Message-ID: ...and here is another JavaScipt fast-loader that I have been playing with: http://labjs.com/ Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 22:05:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 20:05:02 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 16 22:39:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 20:39:47 -0800 Subject: [AccessD] FW: Convert To PDF Problem Message-ID: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Feb 16 23:00:17 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 00:00:17 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> Message-ID: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 17 00:58:31 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 22:58:31 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Message-ID: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 07:02:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 08:02:23 -0500 Subject: [AccessD] CDO In-Reply-To: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> Message-ID: <4D5D1C5F.3070304@colbyconsulting.com> in C# I am actually using a gmail account to send and receive email. John W. Colby www.ColbyConsulting.com On 2/12/2011 3:27 PM, John Bartow wrote: > One of the issues I've run into using third party email apps/activex/dll in > one Microsoft (government) network is that the security staff install spam > blockers and such that do not allow anything to access the smtp server. They > basically broke my application that had been installed there for 10 years > and refused to adapt their security to allow it to work. Ignorance makes for > paranoia and there's no getting around ignorant security staff. They are > like gods to the unwitting administrative staff that have to make the final > decisions. So I was basically forced into recoding an old iron horse app to > utilize Outlook/Exchange and the user just has to click the irritating > "allow for one hour" prompt when the first email is sent. It is no big deal > to them just an item that needs to be explained. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, February 11, 2011 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CDO > > Ricky, > > You might consider Total Access Email from FMS > http://www.fmsinc.com/MicrosoftAccess/Emails.asp > > For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but > then that doesn't meet your "avoid ActiveX" criteria. > > Regards > Steve > > -----Original Message----- > From: Rocky Smolin > Sent: Saturday, February 12, 2011 5:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] CDO > > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without using > dlls or activex controls which would need to be registered? > > MTIA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From michael at mattysconsulting.com Thu Feb 17 11:22:07 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 12:22:07 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, Yes, that's what I would've expected to find. I have made a program based on Leban's work also, seems like it should be an easy to find needle in the haystack. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Feb 17 14:09:38 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 17 Feb 2011 14:09:38 -0600 Subject: [AccessD] Using Access to Back-up Remote SQL-Server Tables - Looking for a better approach References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Message-ID: Background Small Firm Currently no Microsoft SQL-Server in house (Only Microsoft Access) Website Hosting is outsourced. Website orders are stored in SQL-Server at the hosting firm. We have reason to believe that adequate SQL-Server backups are not being done by the hosting firm. (We are in the process of finding a new website hosting firm.) I have a little Access application that pulls the data (with ODBC) from the 24 SQL-Server tables at the hosting firm and imports these tables into Access tables. This takes about 5 minutes to run. I view these tables as a "last resort" short-term backup. With this as background, here is my question... I am thinking about installing SQL-Server 2008 Express. How difficult would it be to import these 24 remote SQL-Server tables into a local copy of SQL-Server. This was easy to do with Access, but I am not familiar with SQL-Server utilities. I know that this is more of a SQL-Server question than an Access question. I just thought that many of you have a lot of experience with SQL-Server and could possibly point me in the right direction. Perhaps my current approach of using Access is good enough. Thanks, Brad From jengross at gte.net Thu Feb 17 14:52:58 2011 From: jengross at gte.net (Jennifer Gross) Date: Thu, 17 Feb 2011 12:52:58 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> Message-ID: <00ce01cbcee4$a9cb00f0$1201a8c0@Schroeder> Thanks for the caution Jim. The collective knowledge of this group always blows my mind. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 16, 2011 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 21:42:32 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 22:42:32 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D5DEAA8.2090501@colbyconsulting.com> Borge, I haven't forgotten you. I will create a username / password for you but I need to know more. What group to add you to, what rights to assign that group etc. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From pcs.accessd at gmail.com Fri Feb 18 06:24:13 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Fri, 18 Feb 2011 22:24:13 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D5DEAA8.2090501@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> <4D5DEAA8.2090501@colbyconsulting.com> Message-ID: John, Thanks for the update. No hurry... I am in Koh Samui for a wedding and will be back in Australia early next week. I guess the group and rights issues are being worked out by you, and not questions for me. Regards borge On Fri, Feb 18, 2011 at 1:42 PM, jwcolby wrote: > Borge, > > I haven't forgotten you. I will create a username / password for you but I > need to know more. What group to add you to, what rights to assign that > group etc. > > > John W. Colby > www.ColbyConsulting.com > > On 2/12/2011 1:09 AM, Borge Hansen wrote: > >> John, sending this a second time, as the first email was above the 20Kb >> limit ?!!? >> If keeping this conversation on Accessd, please continue under a new >> Subject >> Heading >> Borge >> >> >> >> Alright ... done that ... assuming using SQL Server Authentication, so I >>> need user name and pword for your connection / ODBC systems DSN .... I >>> tried >>> with same user name and password as I had kept in my configuration .... >>> didn't work .... >>> >>> I can ping your network... >>> I can chat to your network... >>> I can't connect to your sql server .... >>> Back to the drawing board... >>> >>> Regards >>> Borge >>> >>> >>> >>> On Sat, Feb 12, 2011 at 12:39 AM, jwcolby>> >wrote: >>> >>> Borg, >>>> >>>> I have the database restored and available. If you were to attach to >>>> the >>>> Hamachi network that you received the invite to join, you would see the >>>> SQL >>>> Server database at 5.203.167.79. >>>> >>>> If you were to use the Access Fe that you sent to me, and edit the DSN >>>> to >>>> use that IP as the server name, you would be connecting directly into >>>> the >>>> server on my VM. >>>> >>>> >>>> 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 Lambert.Heenan at chartisinsurance.com Fri Feb 18 09:07:13 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 18 Feb 2011 10:07:13 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 10:46:17 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 08:46:17 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Feb 18 12:19:14 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 18 Feb 2011 12:19:14 -0600 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <30D57E25E3164C6F80178CB681220BCC@DanWaters> Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 18 12:53:04 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Feb 2011 10:53:04 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 13:06:34 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 11:06:34 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Message-ID: <2E6999F5433E42AC8DD9B1F81816230B@HAL9005> Problem here is that the whole routine is encapsulated in a module which I call from the CBF. In the one form it works perfectly. In the other it fails unless I run it one time from the first form. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 18, 2011 10:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 18 19:49:54 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 17:49:54 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <30D57E25E3164C6F80178CB681220BCC@DanWaters> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: Dan: No soap. The code us in a module and is a Public Function. And works perfectly when it is called from the form where I first implemented it. But when I call it from the second form it doesn't work. However, if I call it from the first form, the call it from the second form then it DOES work in the second form. So the call in the first form is apparently creating some condition that the second form doesn't. But danged if I can spot it. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 18, 2011 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lawrence.robinr at gmail.com Sat Feb 19 04:03:35 2011 From: lawrence.robinr at gmail.com (Robin Lawrence) Date: Sat, 19 Feb 2011 10:03:35 -0000 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-solution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Sat Feb 19 08:13:18 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 19 Feb 2011 09:13:18 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <65F58CC636624923B89498173CAE7D35@DCYN3T81> Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 19 08:58:48 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 19 Feb 2011 06:58:48 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <65F58CC636624923B89498173CAE7D35@DCYN3T81> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com><440D6D582182440E9ADD781199DD31B0@HAL9005> <65F58CC636624923B89498173CAE7D35@DCYN3T81> Message-ID: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> I think so. But I tend to write more verbose code out of self defense because 6 months later it's much easier to figure out what I was trying to do. So my code reads: "If the user's preference is to have the num lock on and it's off then toggle the num lock off. Of the user's preference is to have the num lock on and it's off, then toggle the num lock on." A bit redundant, I know, but just easier for me. Old guy, you know.... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jwcolby at colbyconsulting.com Sat Feb 19 13:53:30 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 14:53:30 -0500 Subject: [AccessD] I'm getting nowhere Message-ID: <4D601FBA.5020302@colbyconsulting.com> I am getting nowhere on understanding SQL Server security. Microsoft provides us with SQL Server Express which implies that joe blow (me) is going to install / maintain it. I am not a SQL Server Admin and I cannot afford to spend the time to be one. Google is my friend. BOL is not. Except that Google is taking me to these places where I am expected to already know how this stuff works, and then wants to make me a *better* administrator. Which of course is useless because I am not an administrator at all. OTOH I am not stupid. If I could find something that started at the "This is SQL Server security" basics I could learn this stuff. Before anyone says "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it simply sucks for my level of expertise (my opinion of course). If that is your advice, simply stay out of this thread. Thanks! So... my needs: I need to set up several SQL Server databases for use by different, very small groups (5-20 people) of entirely unrelated people. What I mean by that is that each DB is for a different "company" if you will. I need to access these databases from C#. I understand the group / user paradigm. I would like to create groups and users. Specific groups can do specific things in the database, some can see data but not modify it. Some can add records in specific tables but not others. Some can run reports (view). I do *NOT* want to create windows level groups and users if I can avoid it. These are people that I do not necessarily know and I do not want to give them any rights at the machine level, and I prefer to not maintain such lists at the machine level. Unfortunately SQL Server does not seem to model Groups / users. I go into SQL Server and see a security tab. It has "logins". Is that a user? A specific ability to log in with a password? To what? The server itself? A specific database? Groups of databases? I see "roles" but these appear to be aimed at the server and none of these people are going to be doing anything at the server level. Can I safely ignore everything under the server security tab? I go to a database and I see a security tab. It has users and roles. Hmm... better (I would think). I would like to add users "under" the specific database that the user will access. So I try to add a new user but I do not see anywhere to require a password. Hmmm... I go into roles and I do not see any predefined role that looks like it would be useful to me in meeting my needs described above. If I look at "add new role" it asks for a password. The User / group model does nto assign passwords at the group level which implies that a role is not a group at the user / group paradigm. Is it just me, or is SQL Server security just... different? Am I correct in assuming that it doesn't implement a user / group paradigm? And more importantly, where can I go to get a plain, simple, English description of how this mess works? And please excuse the tone that results from my frustration. The only help documents that I have found (and I have extensive lists of bookmarked web pages) so far assume that I am an administrator. I am not, and cannot afford to become one. And yet MS pushes SQL Express as if I (non-admin) should be able to use this as a data store pool. Help! -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sat Feb 19 17:06:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 09:06:52 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, <65F58CC636624923B89498173CAE7D35@DCYN3T81>, <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> Message-ID: <4D604D0C.5787.1EB6CF22@stuart.lexacorp.com.pg> If I had to pick up your code from scratch and maintain it in the future: I actually find "If the user's Numlock preference doesn't match the current Numlock state, then toggle it" easier to follow :-). -- Stuart On 19 Feb 2011 at 6:58, Rocky Smolin wrote: > I think so. But I tend to write more verbose code out of self defense > because 6 months later it's much easier to figure out what I was > trying to do. > > So my code reads: > > "If the user's preference is to have the num lock on and it's off then > toggle the num lock off. Of the user's preference is to have the num > lock on and it's off, then toggle the num lock on." > > A bit redundant, I know, but just easier for me. Old guy, you > know.... > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob > Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > Hi Rocky > > This has nothing to do with solving your problem - sorry - but I just > had a question about part of your code ... > > Would this work the same? > > Private Sub NumLockChecker() > If Not (DLookup("NumLockPreference", "LocalOptions") = > IsNumLockOn) Then > ToggleNumLock End Sub > > Thanks > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > For #2 I use the following - except for the first module it's not my > code - I cribbed it from somewhere else. I store the user's > preference for num lock on or off in a local options table. > > > Private Sub NumLockChecker() > If DLookup("NumLockPreference", "LocalOptions") = True And > IsNumLockOn = > False Then ToggleNumLock > If DLookup("NumLockPreference", "LocalOptions") = False And > IsNumLockOn > = True Then ToggleNumLock End Sub > > Function IsNumLockOn() As Boolean > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > IsNumLockOn = keys(VK_NUMLOCK) > > End Function > > Sub ToggleNumLock() > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > > If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then > '=====Win95 > keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) > SetKeyboardState keys(0) > ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then > '=====WinNT 'Simulate Key Press > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, > 0 > 'Simulate Key Release > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ > Or KEYEVENTF_KEYUP, 0 > End If > > End Sub > > Where the Type statement is > > ' Declare Type for API call: > Private Type OSVERSIONINFO > dwOSVersionInfoSize As Long > dwMajorVersion As Long > dwMinorVersion As Long > dwBuildNumber As Long > dwPlatformId As Long > szCSDVersion As String * 128 ' Maintenance string for PSS > usage > End Type > > And the constants: > > ' Constant declarations: > Const VK_NUMLOCK = &H90 > Const VK_SCROLL = &H91 > Const VK_CAPITAL = &H14 > Const KEYEVENTF_EXTENDEDKEY = &H1 > Const KEYEVENTF_KEYUP = &H2 > Const VER_PLATFORM_WIN32_NT = 2 > Const VER_PLATFORM_WIN32_WINDOWS = 1 > > I think that's everything. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] Access 2007 - > acCmdFind problem > > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more > researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. The entire "class" > is around 500 students. The class has a 3 digit identifier that is > used in the questions. There are about 350 questions in the current > questionnaire. > > > > The researcher uses a Question form to modify the questions. The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. When a search is done using a > list box for combo box the sub form changes to reflect the text and > type of question. When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. The researcher puts this identifier within the > question to personalize it for the students. I have a button on the > question form that is used to search for questions with the 3 digit > class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 > digit class identifier will need to change periodically and this > allows the researcher to do a "replace all" after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function (update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. That works, however, occasionally > the Num Lock key is turned off. I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. Is there some way to achieve the same > functionality without using SendKeys? > > > > Thanks in advance, > > 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 jwcolby at colbyconsulting.com Sat Feb 19 18:18:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 19:18:04 -0500 Subject: [AccessD] [dba-SQLServer] I'm getting nowhere In-Reply-To: References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605DBC.3080006@colbyconsulting.com> > The hierarchy goes like this: > > Roles > -- Users But why does the user have no (apparent) password but the role does? I found a vague (to me) reference to schemas and assigning schemas to users... Now that makes sense. I assume in all this that if a user goes away I just delete the user? I don't see any way to enable / disable the user. This whole thing just seems real hokey. John W. Colby www.ColbyConsulting.com On 2/19/2011 4:38 PM, Arthur Fuller wrote: > The hierarchy goes like this: > > Roles > -- Users > > What is not obvious from the docs is that you can add a role to a role. The > reason you would want to do this is to "include" lower-level capabilities > within a higher-level group (without bothering to have to re-define these). > > You can grant select, update, delete and inserts on any combination of > tables, views and sprocs. The approach I typically use is to deny table > access to everyone but me, and then to grant various levels of access to > views and sprocs to various roles. That way, no one but you can directly hit > a table. > > So, your bottom level might define Select capability and nothing else (to > one or more views and sprocs). The next level up might permit Updates, and > the next Inserts and Deletes. Actually I mean granting this privileges on > the sprocs/views created for those purposes. > > As you move up the hierarchy, you can "stack" the abilities (i.e. add the > lowest level role to the next up, and so on, until you reach the top, where > the only member of that role is you. > > HTH, and if not feel free to ask. > Arthur > > On Sat, Feb 19, 2011 at 2:53 PM, jwcolbywrote: > >> I am getting nowhere on understanding SQL Server security. Microsoft >> provides us with SQL Server Express which implies that joe blow (me) is >> going to install / maintain it. >> >> I am not a SQL Server Admin and I cannot afford to spend the time to be >> one. >> >> Google is my friend. BOL is not. >> >> Except that Google is taking me to these places where I am expected to >> already know how this stuff works, and then wants to make me a *better* >> administrator. Which of course is useless because I am not an administrator >> at all. >> >> OTOH I am not stupid. If I could find something that started at the "This >> is SQL Server security" basics I could learn this stuff. Before anyone says >> "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it >> simply sucks for my level of expertise (my opinion of course). If that is >> your advice, simply stay out of this thread. Thanks! >> >> So... my needs: >> >> I need to set up several SQL Server databases for use by different, very >> small groups (5-20 people) of entirely unrelated people. What I mean by >> that is that each DB is for a different "company" if you will. I need to >> access these databases from C#. I understand the group / user paradigm. I >> would like to create groups and users. Specific groups can do specific >> things in the database, some can see data but not modify it. Some can add >> records in specific tables but not others. Some can run reports (view). >> >> I do *NOT* want to create windows level groups and users if I can avoid it. >> These are people that I do not necessarily know and I do not want to give >> them any rights at the machine level, and I prefer to not maintain such >> lists at the machine level. >> >> Unfortunately SQL Server does not seem to model Groups / users. I go into >> SQL Server and see a security tab. It has "logins". Is that a user? A >> specific ability to log in with a password? To what? The server itself? A >> specific database? Groups of databases? >> >> I see "roles" but these appear to be aimed at the server and none of these >> people are going to be doing anything at the server level. >> >> Can I safely ignore everything under the server security tab? >> >> I go to a database and I see a security tab. It has users and roles. >> Hmm... better (I would think). I would like to add users "under" the >> specific database that the user will access. >> >> So I try to add a new user but I do not see anywhere to require a password. >> Hmmm... >> >> I go into roles and I do not see any predefined role that looks like it >> would be useful to me in meeting my needs described above. If I look at >> "add new role" it asks for a password. The User / group model does nto >> assign passwords at the group level which implies that a role is not a group >> at the user / group paradigm. >> >> Is it just me, or is SQL Server security just... different? Am I correct >> in assuming that it doesn't implement a user / group paradigm? >> >> And more importantly, where can I go to get a plain, simple, English >> description of how this mess works? >> >> And please excuse the tone that results from my frustration. The only help >> documents that I have found (and I have extensive lists of bookmarked web >> pages) so far assume that I am an administrator. I am not, and cannot >> afford to become one. And yet MS pushes SQL Express as if I (non-admin) >> should be able to use this as a data store pool. >> >> Help! >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Sat Feb 19 18:22:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 10:22:49 +1000 Subject: [AccessD] I'm getting nowhere In-Reply-To: <4D601FBA.5020302@colbyconsulting.com> References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605ED9.11823.1EFC5774@stuart.lexacorp.com.pg> On 19 Feb 2011 at 14:53, jwcolby wrote: > If I could find something that started at the > "This is SQL Server security" basics I could learn this stuff. Maybe this will help. (This is "my" understanding of it - corrections from others welcome .) There are two levels of "Security" in SQL Server: 1. SQL Server Instance (Server name) level 2. Database level At the Instance Level, you have: 1. Server Roles 2. Logins At the Database level you have: 1. Database Roles 2. Users INSTANCE LEVEL ============== SERVER ROLES These are generic sets of "rights" which apply to the entire Instance. "Server role is used to grant server-wide privileges to a user" . Generally, use Public for all logins unless you need admin rights on the server. LOGIN To allow anyone to access SQL Server, you need to create a login at instance level for them and then define what that login can do in terms of individual databases Login = an entity that can log in to SQL Server. In your situation, you are using SQL Secruity so a Login needs a Username and Password. If using Windows/Mixed security, it could also be an Active Drectory user. Note the use of the word "entity" - not person. With SQL Security, an entity is entirely identified by the username/password pair. If you embed a standard username/password in a connection string for an application that connects to SQL Server, then that application itself is the logged in entity. Alternatively, if you collect the username/password from the person using that application and put that the in the connection string, the individual user is the entity. On creation, you can define the "Default Database" for the login - this is the one they automatically access (so your don't need to specify it in your connection string.) DATABASE LEVEL =============== DATABASE ROLE Role = a definition a what entities with that role can do in the database.. There are a number of predefined roles, which are useful for things like "read only" users but you frequently need to create your own and assign rights to specific database objects for that role. i.e. allow read only on some tables and write access on others. You can also do things like prevent users from directly writing to any tables and only allow them to run specfic stored prcedures to update data. Once you have defined a new role within the database, you can assign that role to specific users within that database. You can think of a role as similar to a Group, it defines a set of rights and you can assign roles to users in the same way you assign "group membership" to Windows users. USER Once you have created a Login, you go the relevant database ( or databases) and assign rights to that login in that database. You do that by adding the Login as a User in that database. User = The definition of what a particular login entity can do in the database. To make a specific login a user in the database, you create a new user and select the existing Login name. Note that you can give that user the same name as the Login name or use a completely different one. Unless you have a good reason, I'd use the same as the login name. You then assign Databse Roles to the User to control what the user can do in the database. -- Stuart From rockysmolin at bchacc.com Mon Feb 21 10:10:33 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:10:33 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: Robin: No images in the report. Pretty plain vanilla stuff. And it works when called from the form for which I originally implemented Lebans' code. But it doesn't work from the second form unless I run it once from the first form. Then the second form works. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robin Lawrence Sent: Saturday, February 19, 2011 2:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-sol ution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Mon Feb 21 10:40:33 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Mon, 21 Feb 2011 10:40:33 -0600 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: <6577705DE870458B8A84B96BBC0EA0FF@Dell> I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > From rockysmolin at bchacc.com Mon Feb 21 10:55:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:55:12 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <6577705DE870458B8A84B96BBC0EA0FF@Dell> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> <6577705DE870458B8A84B96BBC0EA0FF@Dell> Message-ID: <1C2CEB538F7C4EAB86D2E97BF6D71D9C@HAL9005> Carolyn: Could I impose on you to send me those updated dlls off line (those are dynapdf.dll and strStorage.dll, yes?). Mine are dated 2006. Maybe that will clear up the problem. Thanks and regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, February 21, 2011 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Feb 21 11:58:06 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 09:58:06 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 13:23:40 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 Feb 2011 14:23:40 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <4D62BBBC.2040408@colbyconsulting.com> > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order to do > maintenance or make data structure changes to an evolving database. I am > open to any suggestions including learning more sophisticated coding than I > am used to . . . > > I don't have any long running processes that would take more than a minute > or two, so checking for inactivity every 30 minutes, with shut down after 60 > minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you are > used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected result > with other code procedures. For some reason Access (at least with the > programs I use to build (large complex)) has never liked timers, internal > (form) or external (API).. I think it has something to do with running them > in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a user > down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in the > past. Was always able to get around it because of my network permissions - > with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - that's > a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 13:29:44 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 11:29:44 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: It uses a dll not form timer as far as I can see. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Feb 21 14:34:53 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 21 Feb 2011 14:34:53 -0600 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <000601cbd206$cca0d440$65e27cc0$@comcast.net> I downloaded and looked at this. It does use a form timer, and it looks to see if the current active control is the same active control as the last time it looked. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, February 21, 2011 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 14:54:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 22 Feb 2011 06:54:01 +1000 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: , <004a01cbcc99$57261fd0$1201a8c0@Schroeder>, Message-ID: <4D62D0E9.4286.2889E9F5@stuart.lexacorp.com.pg> Yes it does. In frmInactiveShutDown Private Sub Form_Timer() '********************************************************************** '* This timer event procedure will shut down the application '* after a specified number of minutes of inactivity. Inactivity '* is measured based on how long a control remains the ActiveControl. '********************************************************************** And it doesn't allow remote control or shut down at a specific time. Very limited compared to previous posted solutions. -- Stuart On 21 Feb 2011 at 9:58, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock Sent: Monday, February 14, 2011 2:41 PM To: > accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > > >>> robert at servicexp.com 14-02-2011 23:09 >>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal (form) or external (API).. I think it has something > to do with running them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Force Closing > the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 17:28:09 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 15:28:09 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: <090CDAD44D744C36B0502A547965F956@murphy3234aaf1> My Error. I just downloaded the zip file and looked in to see the exe. Actually installed it and opened the example. It does use a hidden form and timer. Not what I thought it was. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gweedensmith at iowatelecom.net Wed Feb 23 21:43:56 2011 From: gweedensmith at iowatelecom.net (Greg Smith) Date: Wed, 23 Feb 2011 21:43:56 -0600 Subject: [AccessD] Emails not working? Message-ID: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Where has everyone gone? Greg From rockysmolin at bchacc.com Wed Feb 23 23:55:05 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 23 Feb 2011 21:55:05 -0800 Subject: [AccessD] Emails not working? In-Reply-To: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Message-ID: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> The last possible Access question was answered on Monday. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Wednesday, February 23, 2011 7:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails not working? Where has everyone gone? Greg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 24 00:08:40 2011 From: john at winhaven.net (John Bartow) Date: Thu, 24 Feb 2011 00:08:40 -0600 Subject: [AccessD] Emails not working? In-Reply-To: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: <000b01cbd3e9$487cf2e0$d976d8a0$@winhaven.net> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 23, 2011 11:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Emails not working? The last possible Access question was answered on Monday. Rocky From jwcolby at colbyconsulting.com Thu Feb 24 05:31:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 06:31:37 -0500 Subject: [AccessD] Just quiet? Message-ID: <4D664199.3090801@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com From garykjos at gmail.com Thu Feb 24 06:16:57 2011 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Feb 2011 06:16:57 -0600 Subject: [AccessD] Just quiet? In-Reply-To: <4D664199.3090801@colbyconsulting.com> References: <4D664199.3090801@colbyconsulting.com> Message-ID: It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 df.waters at comcast.net Thu Feb 24 07:40:12 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 07:40:12 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass Message-ID: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ From jwcolby at colbyconsulting.com Thu Feb 24 08:25:06 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 09:25:06 -0500 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D666A42.7020703@colbyconsulting.com> Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked myself > out of an Access file by mistakenly running code to change its properties, > including setting the AllowShiftBypass property to False. The normal way to > fix this is to open a new Access file and import all the objects, then reset > references, startup properties, and options. It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I could > make a utility to reset an Access file?s properties where that file had its > properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run the > first procedure ? this will ask you to select an Access file, and it will > then reset several properties to true so that you can open it normally > again. > > Hope someone can use this! > Dan > > ?------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the > _ > user picked at least one file. If the .Show method returns > _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > ?------------------------ > > > > From andy at minstersystems.co.uk Thu Feb 24 11:31:56 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Feb 2011 17:31:56 -0000 Subject: [AccessD] Just quiet? In-Reply-To: Message-ID: Hush -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 February 2011 12:17 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Just quiet? It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 davidmcafee at gmail.com Thu Feb 24 12:32:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 Feb 2011 10:32:11 -0800 Subject: [AccessD] Just quiet? In-Reply-To: References: Message-ID: shhh, you guys keep waking me up! On Thu, Feb 24, 2011 at 9:31 AM, Andy Lacey wrote: > Hush > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 24 February 2011 12:17 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Just quiet? > > > It would seem so. > > GK > From df.waters at comcast.net Thu Feb 24 12:37:30 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 12:37:30 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D666A42.7020703@colbyconsulting.com> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> <4D666A42.7020703@colbyconsulting.com> Message-ID: <000c01cbd451$e5e54b00$b1afe100$@comcast.net> Thanks John! Of course now that I have this I'll probably remember not to lock myself out anymore. ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 24, 2011 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How To Undo Disabled Shift Bypass Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False. > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options. It's a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file's properties where that > file had its properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again. > > Hope someone can use this! > Dan > > '------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns > True, the _ > user picked at least one file. If the .Show method > returns _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > '------------------------ > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 24 14:19:00 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 24 Feb 2011 12:19:00 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <007301cbd460$126db640$374922c0$@cox.net> Thanks for sharing Dan, I built a little utility to do this several years ago. It is a great way to keep the casual Access user out of your database internals. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 24, 2011 5:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How To Undo Disabled Shift Bypass Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 24 15:14:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:14:27 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> "The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options." Not for everyone. :-) I think you will find that quite a few of us have a similar module in little MDB that we keep in our toolboxes. Still, it's good to remind people occassionally -- Stuart On 24 Feb 2011 at 7:40, Dan Waters wrote: > Sure been quiet for a few days!? So this is something I finished > yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False.? > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options.? > It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file?s properties where that > file had its properties set to False.? And it worked! > > Below is code that you can copy into a standard module in a new Access > file.? Name that new file AllowBypass.mdb, or something similar.? Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again.? > > Hope someone can use this! > Dan > From stuart at lexacorp.com.pg Thu Feb 24 15:47:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:47:23 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net>, <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> Message-ID: <4D66D1EB.25156.2AA4508@stuart.lexacorp.com.pg> Incidentally, I often leave a trapdoor inside the applications. I use a function to toggle the security state ( comment out particular properties depending on the requirement of the application) Function Lockdown(state As Boolean) SetProperty "AllowBypassKey", dbBoolean, Not state SetProperty "AllowFullMenus", dbBoolean, Not state SetProperty "AllowSpecialKeys", dbBoolean, Not state SetProperty "AllowToolbarChanges", dbBoolean, Not state SetProperty "AllowBuiltInToolbars", dbBoolean, Not state SetProperty "AllowBreakIntoCode", dbBoolean, Not state 'SetProperty "AllowSHortcutMenus", dbBoolean, Not state End Function Public Function SetProperty(strPropName As String, _ varPropType As Variant, varPropValue As Variant) As Boolean On Error GoTo Err_SetProperty Dim db As DAO.Database, prp As DAO.Property Set db = CurrentDb db.Properties(strPropName) = varPropValue SetProperty = True Set db = Nothing Exit_SetProperty: Exit Function Err_SetProperty: If Err = 3270 Then 'Property not found Set prp = db.CreateProperty(strPropName, varPropType, varPropValue) db.Properties.Append prp Resume Next Else SetProperty = False MsgBox "SetProperty", Err.Number, Err.Description Resume Exit_SetProperty End If End Function If I am using my own user level security, in my login process I use something like: If AccessLevel = 5 Then MsgBox "Developer Mode! - Close and Reopen Using the Bypass key" Lockdown False DoCmd.Quit You can also do something similar with a commandline switch and a Startup() function called from an AutoExec macro or your startup form. Note that similar code to the above is used in the tollbox MDB, the only difference is that "db" is passed as a parameter to SetProperty, rather than being hard coded to CurrentDB. Note also that Setproperty() can also be used to set other things such as built in Copyright notices, Version Numbers etc in the same or a different database and a similar GetProperty() function can be used to read them. -- Stuart On 25 Feb 2011 at 7:14, Stuart McLachlan wrote: > "The normal way to fix this is to open a new Access file and import > all the objects, then reset references, startup properties, and > options." > > Not for everyone. :-) > > I think you will find that quite a few of us have a similar module in > little MDB that we keep in our toolboxes. Still, it's good to remind > people occassionally > > > -- > Stuart > > On 24 Feb 2011 at 7:40, Dan Waters wrote: > > > Sure been quiet for a few days!? So this is something I finished > > yesterday. > > > > A few days ago, for about the hundredth time, I accidentally locked > > myself out of an Access file by mistakenly running code to change > > its properties, including setting the AllowShiftBypass property to > > False.? The normal way to fix this is to open a new Access file and > > import all the objects, then reset references, startup properties, > > and options.? It?s a pain. > > > > I recently did some work with OpenCurrentDatabase, and wondered if I > > could make a utility to reset an Access file?s properties where that > > file had its properties set to False.? And it worked! > > > > Below is code that you can copy into a standard module in a new > > Access file.? Name that new file AllowBypass.mdb, or something > > similar.? Run the first procedure - this will ask you to select an > > Access file, and it will then reset several properties to true so > > that you can open it normally again.? > > > > Hope someone can use this! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Feb 24 17:04:31 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 24 Feb 2011 17:04:31 -0600 Subject: [AccessD] Access 2007 Runtime on Windows Server 2003 ??? References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: All, We are thinking about putting a small application, built for Access 2007 (Runtime) on a Windows Server 2003 - Standard Edition - Service Pack 2. This application will run unattended. Will Access 2007 Runtime work on Windows Server 2003 Standard Edition - SP2? Are others doing this? Are we headed for trouble? Thanks, Brad From iggy at nanaimo.ark.com Fri Feb 25 08:50:54 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 25 Feb 2011 06:50:54 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D67C1CE.1080804@nanaimo.ark.com> Hey Dan Ha ha ha ha ha ha ha ha ha !. This should have been OT: Friday Humour. That is the best I have heard, a developer locking themselves out of their own application. Just kidding I think we have all run into it at one time or another, trying to lock down what a user can do in an app. I know I did it myself a couple of years ago and spent several hours going "Oh crap Oh crap" until the "Duh" light came on and luckily I was able to copy it. Not a nice feeling. Dan Waters wrote: >Sure been quiet for a few days! So this is something I finished yesterday. > >A few days ago, for about the hundredth time, I accidentally locked myself >out of an Access file by mistakenly running code to change its properties, >including setting the AllowShiftBypass property to False. The normal way to >fix this is to open a new Access file and import all the objects, then reset >references, startup properties, and options. It?s a pain. > >I recently did some work with OpenCurrentDatabase, and wondered if I could >make a utility to reset an Access file?s properties where that file had its >properties set to False. And it worked! > >Below is code that you can copy into a standard module in a new Access >file. Name that new file AllowBypass.mdb, or something similar. Run the >first procedure ? this will ask you to select an Access file, and it will >then reset several properties to true so that you can open it normally >again. > >Hope someone can use this! >Dan > >?------------------------ >Private MappSource As Access.Application > >Private Sub UnlockMDB() >1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File >2 stgSourceFilePath = SelectFile >3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = >"" Then >4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" >5 Exit Sub >6 End If >7 DoEvents > > '-- Set Source MDB as the CurrentDatabase >8 Set MappSource = New Access.Application >9 MappSource.Visible = False >10 MappSource.OpenCurrentDatabase stgSourceFilePath >11 DoEvents > >12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift >key bypass >13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 >key >14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >15 ChangeProperty "AllowFullMenus", dbBoolean, True >16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > >17 MappSource.CloseCurrentDatabase >18 Set MappSource = Nothing > >19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", >vbInformation + vbOKOnly, "File Now Available" > >20 Exit Sub > >EH: >21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >22 MsgBox stgPrompt, vbExclamation + vbOKOnly >23 Stop > >End Sub > >Private Function SelectFile() As String >1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > >2 Set fDialog = FileDialog(msoFileDialogFilePicker) > >3 With fDialog > >4 .AllowMultiSelect = False >5 .InitialView = msoFileDialogViewList >6 .InitialFileName = CurrentProject.Path >7 .Title = "Select the Access file." > >8 .Filters.Clear >9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the >_ > user picked at least one file. If the .Show method returns >_ > False, the user clicked Cancel. >10 If .Show = True Then >11 For Each varFile In .SelectedItems >12 SelectFile = varFile >13 Next varFile >14 Else >15 SelectFile = "File Not Selected" >16 End If > >17 End With > >18 Exit Function > >EH: >19 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >20 MsgBox stgPrompt, vbExclamation + vbOKOnly >21 Stop > >End Function > >Public Function ChangeProperty(stgPropName As String, varPropType As >Variant, varPropValue As Variant) As Boolean >1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > >2 Set dbs = MappSource.DBEngine(0)(0) > >3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > >4 ChangeProperty = True > >XH: >5 Exit Function > >EH: >6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created >7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >varPropType, varPropValue) >8 DBEngine(0)(0).Properties.Append prp >9 Set prp = Nothing >10 Resume Next > >11 Case Else >12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >13 MsgBox stgPrompt, vbExclamation + vbOKOnly >14 Stop > >15 End Select > >End Function > >?------------------------ > > > > > > From iggy at nanaimo.ark.com Sun Feb 27 07:43:20 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 05:43:20 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6A54F8.30203@nanaimo.ark.com> Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? From stuart at lexacorp.com.pg Sun Feb 27 08:33:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 00:33:01 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> A few thoughts on your questions: There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an application development environment. You still need some sort of development enviroment for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, Access, PowerBasic or anything else which is you feel is appropriate. An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC links to the SQL Server tables. That is all that you need sometimes. I tend to use Access this way for reporting applications. I generally don't use Access as the FE for data *management" since you should not as rule use linked table and bound forms to maintain data in SQL Server, you should be using CRUD (create, read, update, delete) stored procedures for this which implies going "unbound". I use PowerBasic/SQLTools for these applications. A major reason for using SQL Server is user security now that MS have depreciated it in Access. I update the same way that I update an Access FE/BE application. A user runs the FE by clicking on shortcut to a batch/cmd file or small application which copies the latest version of the FE to a local drive and then opens it. Updates to the BE are made by building a small Updater application which modifies the backend database using ODBC with CREATE and ALTER statements. -- Stuart On 27 Feb 2011 at 5:43, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > From iggy at nanaimo.ark.com Sun Feb 27 08:54:30 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 06:54:30 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> Message-ID: <4D6A65A6.2080604@nanaimo.ark.com> Hey Stuart Thanks Quickly and concisely cleared up many questions I had. How to you about updating stored procedures on the SQL Server end?. Stuart McLachlan wrote: >A few thoughts on your questions: > >There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an >application development environment. You still need some sort of development enviroment >for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, >Access, PowerBasic or anything else which is you feel is appropriate. > >An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC >links to the SQL Server tables. That is all that you need sometimes. I tend to use Access >this way for reporting applications. > >I generally don't use Access as the FE for data *management" since you should not as rule >use linked table and bound forms to maintain data in SQL Server, you should be using >CRUD (create, read, update, delete) stored procedures for this which implies going >"unbound". I use PowerBasic/SQLTools for these applications. > >A major reason for using SQL Server is user security now that MS have depreciated it in >Access. > >I update the same way that I update an Access FE/BE application. A user runs the FE by >clicking on shortcut to a batch/cmd file or small application which copies the latest version of >the FE to a local drive and then opens it. Updates to the BE are made by building a small >Updater application which modifies the backend database using ODBC with CREATE and >ALTER statements. > > > From ssharkins at gmail.com Sun Feb 27 09:32:15 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 27 Feb 2011 10:32:15 -0500 Subject: [AccessD] Access and SQL Server References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <026EA1F3F2D543959BEF646378CB7B19@salvationomc4p> > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. ========Don't buy it... just ask questions here. :) > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? ========I'm not -- do almost no development work anymore. Susan H. From jwcolby at colbyconsulting.com Sun Feb 27 12:10:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 13:10:23 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A938F.1070900@colbyconsulting.com> I am trying to use Access to quickly get small applications up which can hit a database over the internet. An MDB is notorious for corrupting if accessed by an Access FE over the internet. AFAICT SQL Server works great. I have a hand full of small databases which have to be geographically dispersed, running on joe blow's computer from his house (or the local pub with internet). Access is RAD and has good reporting capabilities. *IF* I can get it to run under a runtime then it is also free. AFAICT it talks to the SQL Server over the internet just fine. I am talking about databases with 20 tables, FEs running on 10-20 people's machines, coming in to a SQL Server database over cable or DSL over an Hamachi VPN. Now that I am starting to understand the SQL Server security it is beginning to come together. John W. Colby www.ColbyConsulting.com On 2/27/2011 8:43 AM, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly > complex pass through queries, ADO connections with stored procedures and Views, I have still to buy > Susan's book to answer some of my under lying questions. Other than being prepared for a client's > request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my > applications I have out there are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I don't think any of my clients > (including the big companies) know what SQL Server is. In fact I have produced only one app for a > client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL > Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server > link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from > the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) > much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? > Are you producing major apps dealing with millions of records? > Are you producing major apps dealing with hundreds of users? > How do you go about distributing changes to an ACCESS/SQL Server app? > > > > From stuart at lexacorp.com.pg Sun Feb 27 14:44:18 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:44:18 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A65A6.2080604@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg>, <4D6A65A6.2080604@nanaimo.ark.com> Message-ID: <4D6AB7A2.29205.11E3A570@stuart.lexacorp.com.pg> Use the ALTER PROCEDURE procedure that you get when you modify a stored procedure in Management Studio. Just copy that script into a string in the updater application and Execute it as part of the update process. If it is a new procedure in the destination database, change the ALTER to CREATE. -- Stuart On 27 Feb 2011 at 6:54, Tony Septav wrote: > Hey Stuart > Thanks > Quickly and concisely cleared up many questions I had. > How to you about updating stored procedures on the SQL Server end?. > > Stuart McLachlan wrote: > > >A few thoughts on your questions: > > > >There is really no such thing as an SQL Server app. SQL Server is a > >RDMS, not an application development environment. You still need some > >sort of development enviroment for the front end, up to you whether > >you use a web server and PHP or ADO.net, VB.Net, C#, Access, > >PowerBasic or anything else which is you feel is appropriate. > > > >An SQLServer/Access is no more complex than an Access FE/BE app if > >you just use ODBC links to the SQL Server tables. That is all that > >you need sometimes. I tend to use Access this way for reporting > >applications. > > > >I generally don't use Access as the FE for data *management" since > >you should not as rule use linked table and bound forms to maintain > >data in SQL Server, you should be using CRUD (create, read, update, > >delete) stored procedures for this which implies going "unbound". I > >use PowerBasic/SQLTools for these applications. > > > >A major reason for using SQL Server is user security now that MS > >have depreciated it in Access. > > > >I update the same way that I update an Access FE/BE application. A > >user runs the FE by clicking on shortcut to a batch/cmd file or small > >application which copies the latest version of the FE to a local > >drive and then opens it. Updates to the BE are made by building a > >small Updater application which modifies the backend database using > >ODBC with CREATE and ALTER statements. > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 14:51:28 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:51:28 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A938F.1070900@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> Message-ID: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> John, How are your Access apps getting/putting data to the SQL Server? Are you using ODBC/linked tables and bound forms (or have you gone over to the dark side)? If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. -- Stuart On 27 Feb 2011 at 13:10, jwcolby wrote: > I am trying to use Access to quickly get small applications up which > can hit a database over the internet. > > An MDB is notorious for corrupting if accessed by an Access FE over > the internet. AFAICT SQL Server works great. > From Darryl.Collins at iag.com.au Sun Feb 27 15:13:53 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 28 Feb 2011 08:13:53 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <201102272114.p1RLE0tJ003528@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rusty.hammond at cpiqpc.com Sun Feb 27 15:25:28 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 15:25:28 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102272114.p1RLE0tJ003528@databaseadvisors.com> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Sun Feb 27 15:30:45 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 07:30:45 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <201102272114.p1RLE0tJ003528@databaseadvisors.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AC285.26719.120E2CD8@stuart.lexacorp.com.pg> Very good point! -- Stuart On 27 Feb 2011 at 15:25, Rusty Hammond wrote: > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Sun Feb 27 15:43:49 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 15:43:49 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <004501cbd6c7$6dd32060$49796120$@comcast.net> Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Sun Feb 27 16:33:22 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:33:22 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com><49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Both. Of course you have to be careful. If someone is linked directly to a table and you add a field to the middle of the table, then their app will likely error out until you relink the table in the front end. Adding the field to the end of the table usually allows people to keep on working. Then you refresh the links in your development front end, make your programming changes, and distribute the new front end. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and SQL Server Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Sun Feb 27 16:38:15 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:38:15 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 16:41:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:41:02 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rusty.hammond at cpiqpc.com Sun Feb 27 16:58:00 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:58:00 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00F@CPIEMAIL-EVS1.CPIQPC.NET> Never, but he asked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better cheers darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop a > SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From df.waters at comcast.net Sun Feb 27 17:17:19 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 17:17:19 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Message-ID: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> The reason I asked about data changes was because I wanted to be sure I surrounded your statement, since I didn't understand it. I can make same design changes in an MDB BE as you described for SQL Server, as long as the BE is in a client-server configuration. What would prevent you from making design changes in a working MDB BE file? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 27 17:45:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 09:45:52 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg>, <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> Message-ID: <4D6AE230.23695.1289E189@stuart.lexacorp.com.pg> If a user is accessing the data in a table in an Access database, you can't modify that table - you get a dialog saying: "You can't open the table 'tblSomething' for modification. A query or form bound to the table is open...." -- Stuart On 27 Feb 2011 at 17:17, Dan Waters wrote: > The reason I asked about data changes was because I wanted to be sure > I surrounded your statement, since I didn't understand it. > > I can make same design changes in an MDB BE as you described for SQL > Server, as long as the BE is in a client-server configuration. What > would prevent you from making design changes in a working MDB BE file? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Access and SQL Server > > Design changes. If you can't make data changes without kicking > everyone out, you must be using the wrong DBMS. > > -- > Stuart > > > On 27 Feb 2011 at 15:43, Dan Waters wrote: > > > Rusty, > > > > Do you mean data changes, design changes, or both? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > I would add: Ability to make changes to the backend tables without > > kicking everyone out of the database. > > > > Rusty > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > > > ____________________________________________________________________ > > __ __ _______________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ __ _______________ > > > > > > Tony, > > > > Why I like a SQL server BE. > > > > 1: Performance. It is faster and much more stable, especially if > > set up correctly and over a WAN / LAN. 2: Security of access and the > > actual data itself. 3: Audit: It is dead easy to set up triggers to > > show who changed what, when and from where. 4: Backup and restore is > > better > > cheers > > darryl > > > > > > > > ________________________________________ > > From: accessd-bounces at databaseadvisors.com > > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > > [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: > > Access Developers discussion and problem solving Subject: [AccessD] > > Access and SQL Server > > > > Hey All > > Well I have spent a couple of weeks now fooling around with ACCESS > > and SQL Server. Using fairly complex pass through queries, ADO > > connections with stored procedures and Views, I have still to buy > > Susan's book to answer some of my under lying questions. Other than > > being prepared for a client's request to use SQL Server, I keep > > asking myself when would I need to use this. Only a few of my > > applications I have out there are dealing with records greater than > > a million. Because the apps are user specific I don't usually have > > more than 10 users on a network. I don't think any of my clients > > (including the big companies) know what SQL Server is. In fact I > > have produced only one app for a client that linked into an Oracle > > database (that is the flavour in my area not SQL). Yes I know SQL > > Server has hundreds of nifty little features that ACCESS doesn't, > > many activities use a SQL Server link (Web Pages), so it begs the > > question "Should I be learning how to develop a SQL Server app from > > the bottom up?" > > > > What I am finding is that an ACCESS/SQL Server app becomes very code > > intensive (forms, queries, etc) much more so than just using ACCESS. > > > > My question to those of you proficient in using ACCESS and SQL > > Server, how exactly are you applying it? Are you producing major > > apps dealing with millions of records? Are you producing major apps > > dealing with hundreds of users? How do you go about distributing > > changes to an ACCESS/SQL Server app? > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ____________________________________________________________________ > > __ __ _______________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ __ _______________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ******************************************************************** > > ** WARNING: All e-mail sent to and from this address will be > > received, scanned or otherwise recorded by the CPI Qualified Plan > > Consultants, Inc. corporate e-mail system and is subject to > > archival, monitoring or review by, and/or disclosure to, someone > > other than the recipient. > > ******************************************************************** > > ** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 27 18:12:48 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:12:48 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> Message-ID: <4D6AE880.2000806@colbyconsulting.com> ODBC Linked tables. > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. No, the corruption occurs any time that a write occurs to an MDB and the connection is lost. Given the massive instability of the internet... John W. Colby www.ColbyConsulting.com On 2/27/2011 3:51 PM, Stuart McLachlan wrote: > John, > > How are your Access apps getting/putting data to the SQL Server? Are you using > ODBC/linked tables and bound forms (or have you gone over to the dark side)? > > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables > were held open over slow connections. > From jwcolby at colbyconsulting.com Sun Feb 27 18:19:16 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:19:16 -0500 Subject: [AccessD] Troubleshooting a runtime Message-ID: <4D6AEA04.6090107@colbyconsulting.com> I have installed a runtime package to a VM for testing. I have a FE and a library which, when accesses from other machines with full Access installed do not error in any way. I try to run this under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open any (bound) form "there was an error executing the command". Basically it is just opening a form. Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to install Office (Access) on the machine for troubleshooting. Does anyone on the group actually use runtimes? What do you do if there is an error? -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sun Feb 27 18:49:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 10:49:36 +1000 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> What happens if you try it with a FE that doesn't open open a startup form and leaves the database exposed. Can you access the data in the tables? And no, I don't use runtimes. -- Stuart On 27 Feb 2011 at 19:19, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE > and a library which, when accesses from other machines with full > Access installed do not error in any way. I try to run this under the > runtime and the switchboard opens, but I get an immediate error as > soon as I try to open any (bound) form "there was an error executing > the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are > you supposed to troubleshoot install issues? Suppose I install this > on computer XYZ and it gives me an error. I am not going to install > Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if > there is an error? > > -- > 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 Sun Feb 27 20:18:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:18:08 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> References: <4D6AEA04.6090107@colbyconsulting.com> <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> Message-ID: <4D6B05E0.2010905@colbyconsulting.com> The runtime doesn't leave the database exposed. Or any of the database tabs for that matter. Or any built-in menu. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:49 PM, Stuart McLachlan wrote: > What happens if you try it with a FE that doesn't open open a startup form and leaves the > database exposed. Can you access the data in the tables? > > And no, I don't use runtimes. > From jwcolby at colbyconsulting.com Sun Feb 27 20:21:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:21:00 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B068C.3090000@colbyconsulting.com> The switchboard is bound to a local table in the FE and it opens just fine. The bound forms that the switchboard opens without any complaint in a full on Access install appear to complain under the runtime. I just realized that the database is A2003 and the runtime is A2007. I guess I need to open it under A2007 full install and see what it says. The point really is that if you are going to use a runtime you really need feedback. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From jwcolby at colbyconsulting.com Sun Feb 27 20:38:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:38:59 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B0AC3.3070005@colbyconsulting.com> I got it. The library was referenced at c:\Dev\PrisonMinistry but I had placed the FE and FW at c:\Runtimes\LenoirPM on the VM which has the runtime installed.. As soon as I created the same directory structure as my dev machine and moved the FE/FW to that location, and run AddPath.exe on that location - it started working. So, I am running a VM with only an Access 2007 runtime, with my FE and framework running under that runtime, hitting a SQL Server at a specific Hamachi IP address. Bound forms, linked tables. The table links have the Hamachi IP address hard coded in the connection, as well as a username / password which has db_DataReader and db_DataWriter rights on that specific database. Not optimum I know but *it works*! ATM it is on my local network but I have hope at least that it will run under a 2007 runtime on another machine across the internet. Now what I need to do is to get this VM running on my laptop, then take the laptop back to Arby's to test with their internet back into my network. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From iggy at nanaimo.ark.com Mon Feb 28 06:56:40 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 04:56:40 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6B9B88.2000405@nanaimo.ark.com> Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? From accessd at shaw.ca Mon Feb 28 09:56:43 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Feb 2011 07:56:43 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 users on at the time. Added the table and re-populated in about 5 minutes and only 1 person complained about the BE being slower and having to do a refresh. Real SQL DBs are very rugged...everything is just queued, cached and applied through background processes. The one thing is that a Real SQL DB is not just another MDB...there is little or no resemblance other than the both hold data. (Not wanting to get into a heated discussion, I must admit I cringe every time I hear of someone attempting a bound MS SQL DB.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 11:01:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:01:27 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Message-ID: <4D6BD4E7.6040106@colbyconsulting.com> Cringe away, it seems to work just fine. Until I see evidence to the contrary... John W. Colby www.ColbyConsulting.com On 2/28/2011 10:56 AM, Jim Lawrence wrote: > Years ago I dropped a table in error, on a live MS SQL DB...had about 50 > users on at the time. Added the table and re-populated in about 5 minutes > and only 1 person complained about the BE being slower and having to do a > refresh. Real SQL DBs are very rugged...everything is just queued, cached > and applied through background processes. > > The one thing is that a Real SQL DB is not just another MDB...there is > little or no resemblance other than the both hold data. (Not wanting to get > into a heated discussion, I must admit I cringe every time I hear of someone > attempting a bound MS SQL DB.) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, February 27, 2011 2:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Both? > > When did you ever have to kick users out of Access or any other multi-user > DBMS to make > data changes? > From davidmcafee at gmail.com Mon Feb 28 11:37:13 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 09:37:13 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 11:46:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:46:38 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> References: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <4D6BDF7E.7000603@colbyconsulting.com> > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? From jwcolby at colbyconsulting.com Mon Feb 28 11:59:33 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:59:33 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6BE285.7010601@colbyconsulting.com> > SQL Server will do everything on the server and return only the result set, which is much faster. And this is key. I am attempting to use bound forms, bound to a sql server table, over the internet. If I were foolish I would just bind the form to a result set which included every record in the table. Or I could open the form with a control set to a specific record ID and have SQL Server go get and return the data for that specific record ID to display in the form. For parent forms this would seem to be a no-brainer. For subforms it is less clear, and probably set up on a case by case basis. Perhaps (as an example) all of the orders for a client for a specific date range or something like that. In any event, it seems that you need to coerce SQL Server into doing the filtering back in the server and just sending a limited set of records, already sorted etc. John W. Colby www.ColbyConsulting.com On 2/28/2011 12:37 PM, David McAfee wrote: > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jimdettman at verizon.net Mon Feb 28 12:29:21 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 13:29:21 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <6C1A3B79856049B1A846FE8C08D916B8@XPS> <> Um not quite right. Jet will pull indexes and read them before it starts doing a table scan if it can. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, February 28, 2011 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 12:48:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 13:48:39 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <6C1A3B79856049B1A846FE8C08D916B8@XPS> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <6C1A3B79856049B1A846FE8C08D916B8@XPS> Message-ID: <4D6BEE07.9090405@colbyconsulting.com> Right. It will pull some of all of the indexes required for joins and filters (where clause), and then ask for specific parts of the file (if going to an MDB) or specific records (if going to SQL Server). With SQL Server it is possible to just hand the filter and join info to SQL Server and have SQL Server do all of the work, returning just the data. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:29 PM, Jim Dettman wrote: > < BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set.>> > > Um not quite right. Jet will pull indexes and read them before it starts > doing a table scan if it can. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Monday, February 28, 2011 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other > multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From rusty.hammond at cpiqpc.com Mon Feb 28 12:57:14 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Mon, 28 Feb 2011 12:57:14 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BDF7E.7000603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- 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 Mon Feb 28 13:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:01:34 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BF10E.5050603@colbyconsulting.com> As soon as you say "use macros, not vba" I stop listening. Just me of course. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:57 PM, Rusty Hammond wrote: > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From iggy at nanaimo.ark.com Mon Feb 28 12:09:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 10:09:39 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6BE4E3.8050801@nanaimo.ark.com> Hey All Thank you all again, I am quickly learning many things from your responses. I am just an old fart trying to play catch up with you guys (Oops and gals). I am trying to learn how to do things with a SQL Server back end, by trying to duplicate what I can do with an old MDB back end application. I am finding at times when doing my research on the Internet that I will read "Do it this way" and then next read "No don't do it that way do it this way". Also when I complete one task I think "Now how can I do this slighty different", this becomes quite frustrating, after 2 to 3 hours of reading other forum responses and basically finding no "hits", I will find some esoteric little example, usually not on topic, that finally simply describes how to do what I was looking for. Anyway this is my problem to solve, thank you again for your all your help. Onward and upward. This is a scary path. From jimdettman at verizon.net Mon Feb 28 13:27:47 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 14:27:47 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: Very limited (I fired it up once to date). You must develop your app as a web database and not all Access features are available. And a existing database won't always convert to a web enabled database either, so it's not as cut and dry as one would think. There are restrictions on the data types, control events, primary keys (all must be longs). There is also an off-line caching mode that can be used, which so far looks messy (here's your replication replacement). But that may be my lack of understanding. It's come a very long way over what was offered in A2007, but I think it still has another version to go before I'd want to try anything with it. This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), which introduced a host of new features (and made Access really usable for the first time), but didn't become solid until Access 2.0. And I haven't checked the licensing yet, but I've heard a couple grumble that it's pricey. Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Monday, February 28, 2011 01:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 28 13:50:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:50:11 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BFC73.9030200@colbyconsulting.com> > Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Hmm... sounds pricey as well. John W. Colby www.ColbyConsulting.com On 2/28/2011 2:27 PM, Jim Dettman wrote: > > Very limited (I fired it up once to date). > > You must develop your app as a web database and not all Access features > are available. And a existing database won't always convert to a web > enabled database either, so it's not as cut and dry as one would think. > > There are restrictions on the data types, control events, primary keys > (all must be longs). > > There is also an off-line caching mode that can be used, which so far > looks messy (here's your replication replacement). But that may be my lack > of understanding. > > It's come a very long way over what was offered in A2007, but I think it > still has another version to go before I'd want to try anything with it. > > This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), > which introduced a host of new features (and made Access really usable for > the first time), but didn't become solid until Access 2.0. > > And I haven't checked the licensing yet, but I've heard a couple grumble > that it's pricey. > > Unless I had hundreds of users, I think I would stick with a TS setup and > Citrix and just run with one version of an app. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 01:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From stuart at lexacorp.com.pg Mon Feb 28 15:13:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:13:49 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com>, <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6C100D.29834.1725090E@stuart.lexacorp.com.pg> A few small tables and limited number of users it's fine. Try over 50 concurrent operators inserting/updating records in tables with up to 7 million rows with multiple large lookup tables on that data. At the same time have a number of others users pulling summaries of that data. Not fine. :-) -- Stuart On 28 Feb 2011 at 12:01, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > > Years ago I dropped a table in error, on a live MS SQL DB...had > > about 50 users on at the time. Added the table and re-populated in > > about 5 minutes and only 1 person complained about the BE being > > slower and having to do a refresh. Real SQL DBs are very > > rugged...everything is just queued, cached and applied through > > background processes. > > > > The one thing is that a Real SQL DB is not just another MDB...there > > is little or no resemblance other than the both hold data. (Not > > wanting to get into a heated discussion, I must admit I cringe every > > time I hear of someone attempting a bound MS SQL DB.) > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > Both? > > > > When did you ever have to kick users out of Access or any other > > multi-user DBMS to make data changes? > > > -- > 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 Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BF10E.5050603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6BF10E.5050603@colbyconsulting.com> Message-ID: <4D6C1247.11063.172DBB5C@stuart.lexacorp.com.pg> No, not just you! There's quite a few of us out there :-) -- Stuart On 28 Feb 2011 at 14:01, jwcolby wrote: > As soon as you say "use macros, not vba" I stop listening. > > Just me of course. > From stuart at lexacorp.com.pg Mon Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, Message-ID: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > From jimdettman at verizon.net Mon Feb 28 16:36:49 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 17:36:49 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Message-ID: <6AE34C2DB8F044CEB01B53602E59A855@XPS> Stuart, <> Occasionally on a lookup table if a client insists on having a short code along with a description. Then I do this: LookupCode - Text - PK Description - Text as I don't see any sense in doing this: LookupID - Autonumber - PK Code - Text - CK Description - Text However I do my best to steer them to: LookupID - Autonumber - PK Description - Text - CK And usually on straight lookup tables, I cheat a bit and do this: tblLookupTypes LookupTypeID - Autonumber - PK Description - Text UserModify - Yes/No tblLookupValues LookupID - Autonumber - PK LookupTypeID - Long - FK to tblLookupTypes Description - Text and then use views to represent the different types rather then going against multiple tables. But if I need any attributes outside of a code or description, then I break things into separate tables. This means one maintenance form for all the lookups. Not great relationally, but it works fine and saves a ton of work when a lot of lookups exist in an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 28, 2011 04:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Mon Feb 28 16:41:28 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 09:41:28 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <201102282241.p1SMfaRg026442@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ "Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it?" When I was at Coles Group a year or so back I was part of a team of developers that built and maintained a whole suite of custom applications that were built on a common template. All the apps were based on a template which in turn was based on a SQL Server BE with MS Access FE (mde of course). We were starting to move any new apps to a web UI and away from MS Access. Many of these apps were critical for the day to day running of large national retail businesses. To give you some idea Coles Group is one of Australia's largest retailers with more than 2,600 stores throughout Australia and New Zealand, over 400,000 shareholders and more than 190,000 employees. My good friend Beny build a complex logistics app, which was used for scheduling all store deliveries based on availablity and type of truck (Some trucks can only fit in certain bays for example, some truck have to be in the cold store etc). Damn clever with a great UI. Some of these apps had hundreds of concurrent users 24/7, although many also lead a far less demanding life. The financial control system I build had about 50 users over a WAN. It was fast, stable and accurate. Gotta love that :) The big advantage was even though each application was build for a totally different purpose, it had a common platform and build, which meant that any of the development team could work on it if the main developer was away or busy. I miss working with SQL Server. Current role is 100% access based. Feel a bit left behind to be honest... :-/ cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Monday, 28 February 2011 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From stuart at lexacorp.com.pg Mon Feb 28 17:00:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:00:10 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <6AE34C2DB8F044CEB01B53602E59A855@XPS> References: <4D6B9B88.2000405@nanaimo.ark.com>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg>, <6AE34C2DB8F044CEB01B53602E59A855@XPS> Message-ID: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why you should not use a natural key as your PK. What happens when the Description changes and the existing Code is no longer an accurate short representation of Description? Do you change it throughout all the tables which store it or do you leave your customer with strange Codes which don't match the description (And please don't tell me that you use Relationships with "Cascade Update" turned on.) -- Stuart On 28 Feb 2011 at 17:36, Jim Dettman wrote: > Stuart, > > <> > > Occasionally on a lookup table if a client insists on having a short > code > along with a description. Then I do this: > > LookupCode - Text - PK > Description - Text > > as I don't see any sense in doing this: > > LookupID - Autonumber - PK > Code - Text - CK > Description - Text > From newsgrps at dalyn.co.nz Mon Feb 28 17:01:15 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:01:15 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102282241.p1SMfaRg026442@databaseadvisors.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> Message-ID: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> > "Are any of your developing full blown ACCESS/SQL Server > applications for clients? If so what type of an app is it?" I have done a couple of apps like this. One was a full prospecting/client management/billing/reporting system for a gas company. Access XP ade with SQL2000. The other is a stock management and reporting system for oil companies. Access XP ade with SQL2005. Both cases are multi user and have lots of business logic that was done in SQL. Both required the better security and data integrity that SQL provided over Access. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From jimdettman at verizon.net Mon Feb 28 17:17:56 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:17:56 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: It's pretty rare that a description changes in relation to the code and I can't think of the last time that was an issue. In fact it's been quite some time since I used a design like that, but if I did and it was, then yes, cascading updates would get turned on. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 28 17:21:00 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:21:00 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: One other thing: keep in mind that the description reflects the code, not the other way around. It's basically a long form of the code. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > 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 Feb 28 17:24:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:24:36 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> .ade! Yuk! The best thing that MS ever did for Access was depreciating these :-) -- Stuart On 1 Mar 2011 at 12:01, David Emerson wrote: > > > "Are any of your developing full blown ACCESS/SQL Server > > applications for clients? If so what type of an app is it?" > > I have done a couple of apps like this. > > One was a full prospecting/client management/billing/reporting system > for a gas company. Access XP ade with SQL2000. The other is a stock > management and reporting system for oil companies. Access XP ade with > SQL2005. > > Both cases are multi user and have lots of business logic that was > done in SQL. Both required the better security and data integrity > that SQL provided over Access. > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Mon Feb 28 17:40:03 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:40:03 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: Really? I work in ADP/ADEs every day and think they are the best of both worlds. D On Mon, Feb 28, 2011 at 3:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > > -- > Stuart > > On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 17:42:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 18:42:08 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <4D6C32D0.7080709@colbyconsulting.com> I assume this is a compiled adp? I never used an adp so... John W. Colby www.ColbyConsulting.com On 2/28/2011 6:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > From newsgrps at dalyn.co.nz Mon Feb 28 17:43:00 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:43:00 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Why is that? Once the concepts were learnt (thanks to Susan and Martins book, along with Chipman and Baron's Microsoft Access Developers Guide to SQL Server) I found it much easier to do all the development in the Access environment (including table, view, sproc and functions) than switching between Access and enterprise manager. David At 1/03/2011, Stuart McLachlan wrote: >.ade! Yuk! > >The best thing that MS ever did for Access was depreciating these :-) > >-- >Stuart > >On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Feb 28 17:53:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:53:11 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: The ease of populating comboboxes and listboxes: Me.lstHistory.rowsource = "EXEC stpGetMachineHistory " & nz(me.txtMachineID,0) Cascading combobox (On Enter of comboBox): Me.cboModel.rowsource "EXEC stpSelectModels " & nz(me.cboMake.Column(0),0) On Mon, Feb 28, 2011 at 3:43 PM, David Emerson wrote: > Why is that? Once the concepts were learnt (thanks to Susan and Martins > book, along with Chipman and Baron's Microsoft Access Developers Guide to > SQL Server) I found it much easier to do all the development in the Access > environment (including table, view, sproc and functions) than switching > between Access and enterprise manager. > > David > > > At 1/03/2011, Stuart McLachlan wrote: > >> .ade! Yuk! >> >> The best thing that MS ever did for Access was depreciating these :-) >> >> -- >> Stuart >> >> On 1 Mar 2011 at 12:01, David Emerson wrote: >> >> > >> > > "Are any of your developing full blown ACCESS/SQL Server >> > > applications for clients? If so what type of an app is it?" >> > >> > I have done a couple of apps like this. >> > >> > One was a full prospecting/client management/billing/reporting system >> > for a gas company. Access XP ade with SQL2000. The other is a stock >> > management and reporting system for oil companies. Access XP ade with >> > SQL2005. >> > >> > Both cases are multi user and have lots of business logic that was >> > done in SQL. Both required the better security and data integrity >> > that SQL provided over Access. >> > >> > Regards >> > >> > David Emerson >> > Dalyn Software Ltd >> > Wellington, New Zealand >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marksimms at verizon.net Mon Feb 28 18:54:02 2011 From: marksimms at verizon.net (Mark Simms) Date: Mon, 28 Feb 2011 19:54:02 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <013801cbd7ab$2979aad0$7c6d0070$@net> Nope, but heard it is the typical Microsoft roll-out....a high, high wall of undocumented "features" and surprises. Some are finding this feature quite useful, but only after climbing up that wall. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 1:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > > From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on > database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a > local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the > IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer > or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each > of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: > > Hey All > > Thanks > > I have got to try out Stuart suggestion for updating stored > procedures > in SQL Server using ACCESS. > > I am not finding any significant differences in speed when using > ACCESS tables and queries versus > > SQL Server tables and pass through queries, I assume that is because > I > am doing my testing on my > > local machine and not on a network (or Web). > > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of > > an app is it? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. > corporate e-mail system and is subject to archival, monitoring or > review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 28 18:57:06 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 18:57:06 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <4D6BE285.7010601@colbyconsulting.com> Message-ID: We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal ?error handling? set up. When we ran tests to ensure that the ?No Duplicates? on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have ?DoCmd.SetWarnings True? Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other ?Status Code? available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From rockysmolin at bchacc.com Mon Feb 28 19:11:16 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 28 Feb 2011 17:11:16 -0800 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com><4D6BE285.7010601@colbyconsulting.com> Message-ID: I think I'd try the BeforeUpdate event, check for a duplicate in the event, and if there is, update your tracking table, give a message to the user and set Cancel = True. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, February 28, 2011 4:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal "error handling" set up. When we ran tests to ensure that the "No Duplicates" on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have "DoCmd.SetWarnings True" Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other "Status Code" available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From stuart at lexacorp.com.pg Mon Feb 28 19:26:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:26:22 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, Message-ID: <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > From stuart at lexacorp.com.pg Mon Feb 28 19:27:41 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:27:41 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, , Message-ID: <4D6C4B8D.5594.180D7684@stuart.lexacorp.com.pg> No BeforeUpdate event. This is updating via SQL in code, not through a form. -- Stuart On 28 Feb 2011 at 17:11, Rocky Smolin wrote: > I think I'd try the BeforeUpdate event, check for a duplicate in the > event, and if there is, update your tracking table, give a message to > the user and set Cancel = True. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, February 28, 2011 4:57 PM To: Access Developers > discussion and problem solving Subject: [AccessD] How to Trap ?Insert > Error? (Duplicate record) caused byIndexed Field (No Duplicates) > > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Mon Feb 28 20:03:55 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 20:03:55 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from ?DoCmd.RunSQL SQL_String? to ?CurrentDb.Execute SQL_String, dbFailOnError? I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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 Darryl.Collins at iag.com.au Mon Feb 28 20:08:11 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 13:08:11 +1100 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: Message-ID: <201103010208.p2128JV2008457@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ as a rule I don't recommend using Docmd.RunSQL. Using the other method seems to work far better and gives you more control. You can also avoid any confirmation messages (assuming the user has that option enabled). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, 1 March 2011 1:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from "DoCmd.RunSQL SQL_String" to "CurrentDb.Execute SQL_String, dbFailOnError" I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the "DoCmd.RunSQL SQL_String" method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 28 20:17:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 21:17:22 -0500 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: <4D6C5732.9050103@colbyconsulting.com> You can also get NoRecsAffected from the db.Execute John W. Colby www.ColbyConsulting.com On 2/28/2011 9:03 PM, Brad Marks wrote: > Stuart, > > Yes, thanks a million for the help. > > Here is what I learned tonight... > > By switching from > > ?DoCmd.RunSQL SQL_String? > > to > > ?CurrentDb.Execute SQL_String, dbFailOnError? > > I can trap Err.Number = 3022 (duplicate record) > > > > I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. > > Brad > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan > Sent: Mon 2/28/2011 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) > > Hi Brad, > > I just answered this for you on Linked In. > > Use CurrentDB.Execute str_SQL ,dbFailOnError > instead of DoCmd.RunSQL. > > Then look for Err.Number 3022 in your error trap. > > From stuart at lexacorp.com.pg Mon Feb 28 20:53:40 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 12:53:40 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: <4D6C5732.9050103@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, , <4D6C5732.9050103@colbyconsulting.com> Message-ID: <4D6C5FB4.22433.185C2E21@stuart.lexacorp.com.pg> But note: CurrentDb.Execute strSQL Debug.Print CurrentDB.RecordsAffected will always return 0. You need to do this instead: Dim db as DAO.Database Set db = CurrentDB() ... db.Execute StrSQL Debug.Print db.RecordsAffected ... -- Stuart On 28 Feb 2011 at 21:17, jwcolby wrote: > You can also get NoRecsAffected from the db.Execute > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 9:03 PM, Brad Marks wrote: > > Stuart, > > > > Yes, thanks a million for the help. > > > > Here is what I learned tonight... > > > > By switching from > > > > "DoCmd.RunSQL SQL_String" > > > > to > > > > "CurrentDb.Execute SQL_String, dbFailOnError" > > > > I can trap Err.Number = 3022 (duplicate record) > > > > > > > > I really appreciate the help. I was pulling my hair out as I > > thought that the "DoCmd.RunSQL SQL_String" method would allow me to > > see the 3022 error. > > > > Brad > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com on behalf of Stuart > > McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] How to Trap > > ?Insert Error? (Duplicate record) causedby Indexed Field (No > > Duplicates) > > > > Hi Brad, > > > > I just answered this for you on Linked In. > > > > Use CurrentDB.Execute str_SQL ,dbFailOnError > > instead of DoCmd.RunSQL. > > > > Then look for Err.Number 3022 in your error trap. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Tue Feb 1 07:14:09 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 08:14:09 -0500 Subject: [AccessD] From a reader References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p> <58225A873021488D947CD8EBB29A382E@nant> Message-ID: Thank you Shamil -- wow... I am impressed, but then, you always do impress me. :) Susan H. > Hello Susan -- > > What is given? - MS SQL backend with billions of rows? > What is missing? - Relatively inexpensive way to implement web solutions > to > present MS SQL backend data's small subsets/summary information? > > if the answer on both of the above questions is 'Yes' then I suppose > simple > ASP.NET applications + .NET MS ReportViewer control can be used. > One example: http://shamils-19.hosting.parking.ru/nw4 (ms access backend > is > used here but using MS SQL backend doesn't differ a lot - in fact that > online MS Access backend-based solution is a port from original MS > SQL-based > backend solution) > > Some informational links on used for the above sample reporting > technolgies: > > http://www.gotreportviewer.com/ > http://technet.microsoft.com/en-us/library/dd220460.aspx > > And here MS WebMatrix - it wasn't used in the above sample but it can be > used by your reader I suppose: > http://www.asp.net/webmatrix > http://weblogs.asp.net/scottgu/archive/2010/07/06/introducing-webmatrix.aspx From jimdettman at verizon.net Tue Feb 1 07:56:58 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 01 Feb 2011 08:56:58 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Susan, There is this company: www.eqldata.com Which will let you take your Access app as is and run it over the web through a web browser. Don't know of anyone that's used them yet. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 08:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. > Well, there are a few things that come immediately to mind. Using a MS > Access FE with SQL backend will work great (fast, reliable etc) but she is > going to need to understand how you need to set up access and the > connection to the SQL Server using ADO and the connection strings. > > Using linked tables and bound forms are going to cripple performance and > probably reliablility as well. Not linked tables and no bound forms. > > Each user should have their own FE version (locked down as an MDE in the > old language). The Front end should basically be an empty shell with > unbound forms. You only pull in the data you need, when you need it and > absolutely make the stored procs on the SQL Server do all the heavy > lifting. Understand how to use pass thru queries to pull data into > Access. > > You should only push (write) back to the server anything that has been > changed and needs to be updated. Normally much of the data can be pulled > in as read only anyway, this goes for combo box data as well (again I pull > into Access from the server using a Just in Time approach). > > Sharepoint isn't going to help at this stage, although I believe that > Access 2010 is rather neat with sharepoint integration. I have no > experience of it though, just what I have read. > > If you want true web based, you really should just bite the bullet and use > a C#.net (say ASP.net) front end to SQL Server back. ok, it will take > time and money to develop, but once you have it in place it will deliver. > > This reminds me of the ol' business triangle. Choose any two options, but > lose the 3rd option. Cheap, Fast, Good. > > I hope she can go for "Good" and "Fast" and make the investment in > effort/money. Of course that is not always an option... Be good to read > what others have to say. > > cheers > Darryl. > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, 1 February 2011 12:22 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] From a reader > > I've been corresponding (lightly) with a reader who needs to upsize an > Access 2007 database to SQL Server -- ultimately, she's looking for a web > solution. It sounds like an excruciating application -- she said it takes > hours to run queries. I think she's looking for two things. First, she > wants something to analyze the Access database to make it more efficient. > (I haven't asked who built it to begin with, her or a professional > developer.) I told her to start with the utilities already there, the > performance and table analyzers. Are there any third-party products that > do more or work better? Second, she wants a plug-in GUI -- I've never > heard of such a thing, but I'll let you guys read her request and if you > have something to suggest, I'll relay it. Thanks! > > Susan H. > "What I am asking is: Is there a design solution that would make a large > sluggish access application scalable, faster, easier to distribute to > remote sites? All that I have read to date - is that SQL Server as the > best and most practiced solution. But, I still see that as "tons" of data > still being pushed between ACCESS and SQL Server - so how is that really > better. Is there a WEB or Sharepoint solution that would work as the > ACCESS GUI front-end and a backend SQL Server to crunch the billions of > rows into the summary levels of data?" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________________________________ ___________ > > The information transmitted in this message and its attachments (if any) > is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, dissemination or other use of, or taking of any action in > reliance > upon this information, by persons or entities other than the intended > recipient is > prohibited. > > If you have received this in error, please contact the sender and delete > this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute > the information contained in this e-mail and any attached files, with the > permission > of the sender. > > This message has been scanned for viruses. > ____________________________________________________________________________ ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Feb 1 08:04:58 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 09:04:58 -0500 Subject: [AccessD] From a reader References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <851BE7E57C5043D8B0433DF1356CD092@salvationomc4p> Thanks Jim -- thanks everyone. I think you guys have really helped her! Susan H. > Susan, > > There is this company: > > www.eqldata.com > > Which will let you take your Access app as is and run it over the web > through a web browser. > > Don't know of anyone that's used them yet. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Monday, January 31, 2011 08:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > Darryl -- I agree. She's looking for a canned solution and I've told her > there isn't any such thing -- but I thought I'd ask. You never know. :) > > Susan H. > > >> Well, there are a few things that come immediately to mind. Using a MS >> Access FE with SQL backend will work great (fast, reliable etc) but she >> is > >> going to need to understand how you need to set up access and the >> connection to the SQL Server using ADO and the connection strings. >> >> Using linked tables and bound forms are going to cripple performance and >> probably reliablility as well. Not linked tables and no bound forms. >> >> Each user should have their own FE version (locked down as an MDE in the >> old language). The Front end should basically be an empty shell with >> unbound forms. You only pull in the data you need, when you need it and >> absolutely make the stored procs on the SQL Server do all the heavy >> lifting. Understand how to use pass thru queries to pull data into >> Access. >> >> You should only push (write) back to the server anything that has been >> changed and needs to be updated. Normally much of the data can be pulled >> in as read only anyway, this goes for combo box data as well (again I >> pull > >> into Access from the server using a Just in Time approach). >> >> Sharepoint isn't going to help at this stage, although I believe that >> Access 2010 is rather neat with sharepoint integration. I have no >> experience of it though, just what I have read. >> >> If you want true web based, you really should just bite the bullet and >> use > >> a C#.net (say ASP.net) front end to SQL Server back. ok, it will take >> time and money to develop, but once you have it in place it will deliver. >> >> This reminds me of the ol' business triangle. Choose any two options, >> but > >> lose the 3rd option. Cheap, Fast, Good. >> >> I hope she can go for "Good" and "Fast" and make the investment in >> effort/money. Of course that is not always an option... Be good to read >> what others have to say. >> >> cheers >> Darryl. >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> Sent: Tuesday, 1 February 2011 12:22 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] From a reader >> >> I've been corresponding (lightly) with a reader who needs to upsize an >> Access 2007 database to SQL Server -- ultimately, she's looking for a web >> solution. It sounds like an excruciating application -- she said it takes >> hours to run queries. I think she's looking for two things. First, she >> wants something to analyze the Access database to make it more efficient. >> (I haven't asked who built it to begin with, her or a professional >> developer.) I told her to start with the utilities already there, the >> performance and table analyzers. Are there any third-party products that >> do more or work better? Second, she wants a plug-in GUI -- I've never >> heard of such a thing, but I'll let you guys read her request and if you >> have something to suggest, I'll relay it. Thanks! >> >> Susan H. >> "What I am asking is: Is there a design solution that would make a large >> sluggish access application scalable, faster, easier to distribute to >> remote sites? All that I have read to date - is that SQL Server as the >> best and most practiced solution. But, I still see that as "tons" of data >> still being pushed between ACCESS and SQL Server - so how is that really >> better. Is there a WEB or Sharepoint solution that would work as the >> ACCESS GUI front-end and a backend SQL Server to crunch the billions of >> rows into the summary levels of data?" >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ____________________________________________________________________________ > ___________ >> >> The information transmitted in this message and its attachments (if any) >> is intended >> only for the person or entity to which it is addressed. >> The message may contain confidential and/or privileged material. Any >> review, >> retransmission, dissemination or other use of, or taking of any action in >> reliance >> upon this information, by persons or entities other than the intended >> recipient is >> prohibited. >> >> If you have received this in error, please contact the sender and delete >> this e-mail >> and associated material from any computer. >> >> The intended recipient of this e-mail may only use, reproduce, disclose >> or > >> distribute >> the information contained in this e-mail and any attached files, with the >> permission >> of the sender. >> >> This message has been scanned for viruses. >> > ____________________________________________________________________________ > ___________ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Feb 1 13:01:40 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:01:40 -0800 Subject: [AccessD] OT Yuma In-Reply-To: <001901cbbf11$9d3d7170$5bdea8c0@edz1> References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: My cousin lives in El Centro. She always wants us to come visit her. We're like, um, why don't you come out to us, by the beach. :) On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > > Yikes. > > I had an assignment in El Centro, not far > from Yuma, for a couple of months. > > The area brought a whole new meaning to > the word "hot". > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, January 27, 2011 1:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dual Monitors > > > > The 110 sounds like Phoenix. Did I guess correctly ? > > Even worse. Yuma. > > John W. Colby > www.ColbyConsulting.com > > > On 1/27/2011 3:05 PM, Edward Zuris wrote: > > > > When the Salmon come in to spawn, they > > would gather just a few miles from Everett > > near the San Juan area before heading to > > Canada or USA rivers. > > > > Great fishing, and very few people take > > advantage of it. > > > > I am in Albuquerque, NM. > > > > Starting in late May, or early June, the > > temperatures start climb up to the 100's. > > > > At the moment it is high dry cold winds > > with a few dust storms. Sometime maybe a > > half inch of snow every so often. After > > May it is total bake mode. But the desert > > and dry climate grows on you after awhile. > > > > I grew up in NM, so I know a number of good > > fishing holes. I go up into the mountains > > to fish for trout during the summer. But > > catching a ten pound king salmon really makes > > your day and puts any quarter pound mountain > > trout to shame. > > > > The 110 sounds like Phoenix. Did I guess > > correctly ? > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, January 27, 2011 10:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dual Monitors > > > > > > I grew up in the American southwest desert. > > 110 degrees F every day. I lived with my > > father for about 6 months in Everett > > Washington when I was a freshman in High School. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 1/27/2011 11:38 AM, Edward Zuris wrote: > >> > >> From what I hear from my friends overseas > >> a lot of computer related products in the > >> USA are rather inexpensive compared their > >> local markets. However, I am sure there > >> are places outside the USA has even cheaper > >> prices. > >> > >> Every Nation has its issues. Russian might, > >> or might not, be going back it's old USSR > >> ways. And in the USA we have more than our > >> fair share of crazy people. And we elect > >> a number of our crazies into high positions > >> into the government. > >> > >> Of the two, I'll think we are better off > >> with the cheaper computer monitors and some > >> crazies, in Congress. We also get to watch > >> them on CSPAN TV. It is like watching a > >> circus in slow motion. > >> > >> The USA has many cultures and climates. > >> > >> I live in the American Southwest desert. > >> One place I really liked was the American > >> Northwest. Fished for salmon around Everett. > >> Where John lives it can get hot and humid > >> in the summer, but there is good fishing > >> near by. I spent a summer near Asheville, > >> and the weekends at the Outer Banks. > >> > >> As far as I am concerned, Shamil, you are > >> welcome. > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > >> Salakhetdinov > >> Sent: Wednesday, January 26, 2011 12:56 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Dual Monitors > >> > >> > >> Hi John -- > >> > >> <<< > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >>>>> > >> That's a ridiculous price for St.Petersburg, Russia. > >> I should start thinking seriously how to get moved there in your > >> country... Especially taking into that Mr. Putin seems to be planning > > >> to get here at power on year 2012 for another 12 (or 14!?) years... > >> > >> Thank you. > >> > >> -- > >> Shamil > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: 26 ?????? 2011 ?. 21:26 > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Dual Monitors > >> > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> On 1/26/2011 7:43 AM, Dan Waters wrote: > >>> Yowser!! :-) You must have to swivel in your chair to look from one > > >>> side to the other! > >>> > >>> What brand of monitors did you get? Any thoughts on those? I have > a > >>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - > >> still > >> great). > >>> These have 1600 X 1200 resolution, and the screens are non-glare. > >>> > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >>> Sent: Tuesday, January 25, 2011 9:25 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: Re: [AccessD] From Lake Woebegone > >>> > >>> LOL, yep those big monitors are great for that kind of stuff. > >>> > >>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 > >>> native resolution. Pretty darned awesome. > >>> > >>> John W. Colby > >>> www.ColbyConsulting.com > >>> > >>> On 1/25/2011 10:05 PM, Mark Simms wrote: > >>>> I LOVE that site. I joined !! > >>>> I'm also now posting from my new Hanns-G 28" monitor....pretty > >> impressive. > >>>> One must stay 2 FEET away from this "big boy". > >>>> > >>>> It's also funny, because Access 2007's tabbed interface almost > >>>> seems > > > >>>> to mandate a large format monitor. I can have 50 columns showing in > > >>>> datasheet view now ! > >>>> > >>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan > >>>>> wrote: > >>>>>> So common that there's a programmers' website out there - > >>>>> http:/www.thedailywtf.com > >>>> > >>>> > >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 1 13:08:45 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:08:45 -0800 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: Can you make an ADP? On Mon, Jan 31, 2011 at 4:31 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, 1 February 2011 2:15 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] SQL constant harassment > > I am doing a demo Access database against a SQL Server BE. Access is > constantly "harassing" me with pop-ups to provide log in information. At > odd times, not always. But when it happens it is for each (bound) form > getting data. So a main form with subforms, and apparently even combo > boxes, it will pop up the box to select the user authorized to do this. > > What do I do to make this go away? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 1 13:59:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 01 Feb 2011 14:59:34 -0500 Subject: [AccessD] OT Yuma In-Reply-To: References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: <4D486626.9040605@colbyconsulting.com> LOL. Yup, El Centro, the hotbed of things to do. John W. Colby www.ColbyConsulting.com On 2/1/2011 2:01 PM, David McAfee wrote: > My cousin lives in El Centro. She always wants us to come visit her. > > We're like, um, why don't you come out to us, by the beach. :) > > > On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > >> >> Yikes. >> >> I had an assignment in El Centro, not far >> from Yuma, for a couple of months. >> >> The area brought a whole new meaning to >> the word "hot". >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, January 27, 2011 1:47 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Dual Monitors >> >> >> > The 110 sounds like Phoenix. Did I guess correctly ? >> >> Even worse. Yuma. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> On 1/27/2011 3:05 PM, Edward Zuris wrote: >>> >>> When the Salmon come in to spawn, they >>> would gather just a few miles from Everett >>> near the San Juan area before heading to >>> Canada or USA rivers. >>> >>> Great fishing, and very few people take >>> advantage of it. >>> >>> I am in Albuquerque, NM. >>> >>> Starting in late May, or early June, the >>> temperatures start climb up to the 100's. >>> >>> At the moment it is high dry cold winds >>> with a few dust storms. Sometime maybe a >>> half inch of snow every so often. After >>> May it is total bake mode. But the desert >>> and dry climate grows on you after awhile. >>> >>> I grew up in NM, so I know a number of good >>> fishing holes. I go up into the mountains >>> to fish for trout during the summer. But >>> catching a ten pound king salmon really makes >>> your day and puts any quarter pound mountain >>> trout to shame. >>> >>> The 110 sounds like Phoenix. Did I guess >>> correctly ? >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, January 27, 2011 10:06 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Dual Monitors >>> >>> >>> I grew up in the American southwest desert. >>> 110 degrees F every day. I lived with my >>> father for about 6 months in Everett >>> Washington when I was a freshman in High School. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 1/27/2011 11:38 AM, Edward Zuris wrote: >>>> >>>> From what I hear from my friends overseas >>>> a lot of computer related products in the >>>> USA are rather inexpensive compared their >>>> local markets. However, I am sure there >>>> are places outside the USA has even cheaper >>>> prices. >>>> >>>> Every Nation has its issues. Russian might, >>>> or might not, be going back it's old USSR >>>> ways. And in the USA we have more than our >>>> fair share of crazy people. And we elect >>>> a number of our crazies into high positions >>>> into the government. >>>> >>>> Of the two, I'll think we are better off >>>> with the cheaper computer monitors and some >>>> crazies, in Congress. We also get to watch >>>> them on CSPAN TV. It is like watching a >>>> circus in slow motion. >>>> >>>> The USA has many cultures and climates. >>>> >>>> I live in the American Southwest desert. >>>> One place I really liked was the American >>>> Northwest. Fished for salmon around Everett. >>>> Where John lives it can get hot and humid >>>> in the summer, but there is good fishing >>>> near by. I spent a summer near Asheville, >>>> and the weekends at the Outer Banks. >>>> >>>> As far as I am concerned, Shamil, you are >>>> welcome. >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Wednesday, January 26, 2011 12:56 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> >>>> Hi John -- >>>> >>>> <<< >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>>>>> >>>> That's a ridiculous price for St.Petersburg, Russia. >>>> I should start thinking seriously how to get moved there in your >>>> country... Especially taking into that Mr. Putin seems to be planning >> >>>> to get here at power on year 2012 for another 12 (or 14!?) years... >>>> >>>> Thank you. >>>> >>>> -- >>>> Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: 26 ?????? 2011 ?. 21:26 >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> On 1/26/2011 7:43 AM, Dan Waters wrote: >>>>> Yowser!! :-) You must have to swivel in your chair to look from one >> >>>>> side to the other! >>>>> >>>>> What brand of monitors did you get? Any thoughts on those? I have >> a >>>>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - >>>> still >>>> great). >>>>> These have 1600 X 1200 resolution, and the screens are non-glare. >>>>> >>>>> Dan >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Tuesday, January 25, 2011 9:25 PM >>>>> To: Access Developers discussion and problem solving >>>>> Subject: Re: [AccessD] From Lake Woebegone >>>>> >>>>> LOL, yep those big monitors are great for that kind of stuff. >>>>> >>>>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 >>>>> native resolution. Pretty darned awesome. >>>>> >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> >>>>> On 1/25/2011 10:05 PM, Mark Simms wrote: >>>>>> I LOVE that site. I joined !! >>>>>> I'm also now posting from my new Hanns-G 28" monitor....pretty >>>> impressive. >>>>>> One must stay 2 FEET away from this "big boy". >>>>>> >>>>>> It's also funny, because Access 2007's tabbed interface almost >>>>>> seems >>> >>>>>> to mandate a large format monitor. I can have 50 columns showing in >> >>>>>> datasheet view now ! >>>>>> >>>>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan >>>>>>> wrote: >>>>>>>> So common that there's a programmers' website out there - >>>>>>> http:/www.thedailywtf.com >>>>>> >>>>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Thu Feb 3 10:19:37 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 08:19:37 -0800 Subject: [AccessD] OT: Access and SQL server Message-ID: <4D4AD599.4020606@nanaimo.ark.com> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From Gustav at cactus.dk Thu Feb 3 10:45:25 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Feb 2011 17:45:25 +0100 Subject: [AccessD] OT: Access and SQL server Message-ID: Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From jwcolby at colbyconsulting.com Thu Feb 3 10:51:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 11:51:25 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <4D4ADD0D.8000207@colbyconsulting.com> >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks From ssharkins at gmail.com Thu Feb 3 11:01:04 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:01:04 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: > >I'll find a book with great reviews and the next review they basically > >say it is not so good and > so on and so on. > > What I have found is that is true for any product anywhere. There are > some people who just don't like *anything* and they are the biggest > complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I > try and get 85% to be 5, 4, and 3 star. ==========Sometimes -- I've run into this myself, at least twice -- they're not even reviewing the right book. :( You get trashed, and it's not even your book. Susan H. From jm.hwsn at gmail.com Thu Feb 3 11:04:11 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 3 Feb 2011 11:04:11 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4ADD0D.8000207@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> I agree, but I also take into consideration who recommends a book. If I recognize someone on this list that reviews a book, I'd give them more weight than anyone else. On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." by Phil Mitchell? Reviews are good on Amazon. Although it might be a little dated (2006). Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Feb 3 11:14:10 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:14:10 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4AE262.7030001@nanaimo.ark.com> Hey All That is why I am asking the list, I value their expert opinions. Rather than relying on someone who is either having a good or bad day. Also I don't want to be spending $50 or $60 on the wrong book. Susan and Martin I think I have heard those names before, they sound familiar. Just kidding. jm.hwsn wrote: >I agree, but I also take into consideration who recommends a book. >If I recognize someone on this list that reviews a book, I'd give them more >weight than anyone else. >On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." >by Phil Mitchell? Reviews are good on Amazon. Although it might be a little >dated (2006). >Thanks, >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Thursday, February 03, 2011 10:51 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say >it is not so good and so on and so on. > >What I have found is that is true for any product anywhere. There are some >people who just don't like *anything* and they are the biggest complainers. > >I look for the highest average, and simultaneously not a huge 1 star. I try >and get 85% to be 5, 4, and 3 star. > > >John W. Colby >www.ColbyConsulting.com > >On 2/3/2011 11:19 AM, Tony Septav wrote: > > >>Hey All >>Can anyone recommend a good book for learning "how to". I have googled and >> >> >a I'll find a book with > > >>great reviews and the next review they basically say it is not so good and >> >> >so on and so on. Any > > >>suggestions. >> >>Thanks >> >> From ssharkins at gmail.com Thu Feb 3 11:22:13 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:22:13 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> Message-ID: <20D251F9002D438789F292A4EB233918@salvationomc4p> > That is why I am asking the list, I value their expert opinions. Rather > than relying on someone who is either having a good or bad day. Also I > don't want to be spending $50 or $60 on the wrong book. > Susan and Martin I think I have heard those names before, they sound > familiar. > Just kidding. ========I don't think either one of us spend as much time here as we use to! ;) The book that Martin and I wrote is my best one -- I am very proud of it. The SQL sections are timeless -- not much is going to change there. A lot of the upsizing and using information is going to be different of course. It just depends on why you need the book -- if you need a SQL companion and comparison for Jet and T-SQL, it's a good choice. Martin can chime in if he sees this. I haven't done anything with Access 2007/1010 to SQL Server 8, but I would assume that the general process/preparations is still very similar, even though, the actual step-by-step instructions aren't going to be the same. We wrote that book in 2001! Susan H. From iggy at nanaimo.ark.com Thu Feb 3 11:31:07 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:31:07 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <20D251F9002D438789F292A4EB233918@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> <20D251F9002D438789F292A4EB233918@salvationomc4p> Message-ID: <4D4AE65B.8000805@nanaimo.ark.com> Hey Susan I am leaning towards your and Martin's book (I like to buy locally). The 3 books I have focused in on are all dated and that is kind of the conundrum. Yes I kind of want a SQL companion that I can learn from with the book sitting on my lap. Susan Harkins wrote: >> That is why I am asking the list, I value their expert opinions. >> Rather than relying on someone who is either having a good or bad >> day. Also I don't want to be spending $50 or $60 on the wrong book. >> Susan and Martin I think I have heard those names before, they sound >> familiar. >> Just kidding. > > > ========I don't think either one of us spend as much time here as we > use to! ;) The book that Martin and I wrote is my best one -- I am > very proud of it. The SQL sections are timeless -- not much is going > to change there. A lot of the upsizing and using information is going > to be different of course. It just depends on why you need the book -- > if you need a SQL companion and comparison for Jet and T-SQL, it's a > good choice. Martin can chime in if he sees this. I haven't done > anything with Access 2007/1010 to SQL Server 8, but I would assume > that the general process/preparations is still very similar, even > though, the actual step-by-step instructions aren't going to be the > same. We wrote that book in 2001! > > Susan H. > > From df.waters at comcast.net Thu Feb 3 11:33:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 11:33:24 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <075701507B7443FBB72A9B2003835317@DanWaters> Hi Tony, 1) Microsoft Access Developer's Guide to SQL Server Available new or used - 5-stars on Amazon. http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 /ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 2) Access 2002 Enterprise Developer's Guide + Access 2002 Desktop Developer's Guide Available new or used - 5-stars on Amazon. http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 Both of these cover mdb's and adp's. My thoughts - if you're going to use an mdb, then all you really need to learn is how to set up the table links between the mdb application file and the SQL Server database. If you're going to go the extra mile and set up an adp, then you may want to consider going a mile and a half and use a .Net language and SQL Server. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 10:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Feb 3 11:45:17 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:45:17 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> Message-ID: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Check for a used one -- if I had any author copies left, I'd send it to you myself! Susan H. > Hey Susan > I am leaning towards your and Martin's book (I like to buy locally). The 3 > books I have focused in on are all dated and that is kind of the > conundrum. Yes I kind of want a SQL companion that I can learn from with > the book sitting on my lap. > From iggy at nanaimo.ark.com Thu Feb 3 12:08:25 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:08:25 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <075701507B7443FBB72A9B2003835317@DanWaters> References: <4D4AD599.4020606@nanaimo.ark.com> <075701507B7443FBB72A9B2003835317@DanWaters> Message-ID: <4D4AEF19.6040501@nanaimo.ark.com> Hey Dan Thanks for the mdb and adp advice. Dan Waters wrote: >Hi Tony, > >1) Microsoft Access Developer's Guide to SQL Server > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 >/ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 > > >2) Access 2002 Enterprise Developer's Guide + > Access 2002 Desktop Developer's Guide > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 >06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 > >http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ >ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 > > >Both of these cover mdb's and adp's. > >My thoughts - if you're going to use an mdb, then all you really need to >learn is how to set up the table links between the mdb application file and >the SQL Server database. If you're going to go the extra mile and set up an >adp, then you may want to consider going a mile and a half and use a .Net >language and SQL Server. > >Good Luck! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Thursday, February 03, 2011 10:20 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Access and SQL server > >Hey All >Can anyone recommend a good book for learning "how to". I have googled >and a I'll find a book with great reviews and the next review they >basically say it is not so good and so on and so on. Any suggestions. > >Thanks > > From iggy at nanaimo.ark.com Thu Feb 3 12:09:49 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:09:49 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Message-ID: <4D4AEF6D.5020808@nanaimo.ark.com> Hey Susan I am kind of disappointed I was hoping for an autographed edition. Thanks for the thought though. Susan Harkins wrote: > Check for a used one -- if I had any author copies left, I'd send it > to you myself! > > Susan H. > >> Hey Susan >> I am leaning towards your and Martin's book (I like to buy locally). >> The 3 books I have focused in on are all dated and that is kind of >> the conundrum. Yes I kind of want a SQL companion that I can learn >> from with the book sitting on my lap. >> > From jimdettman at verizon.net Thu Feb 3 12:19:53 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 03 Feb 2011 13:19:53 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <3556A738030B4920ADB3B0052805FFA8@XPS> Tony, Check out "The Best of Both Worlds: Access-SQL Server Optimization" here: http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp Has some invaluable tips and insights on using Access as a FE with a SQL Server backend. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 11:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 3 12:39:39 2011 From: john at winhaven.net (John Bartow) Date: Thu, 3 Feb 2011 12:39:39 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: References: Message-ID: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Hey Tony, I've been reviewing the book (that Gustav recommends below) over the last couple of months. I have an older Access 97 FE/BE system that I have to upgrade to Access 2003 and (unbelievably) then have to upgrade again next year to 2010/SQLServer. I'd prefer to do it in one but not my decision. I'm reviewing this so the second upgrade goes smooth as ice :o) The book is dated (of course, its early century material) but there's good, timeless advice in it. And Susan's writing style always makes technical materials easier to read. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 03, 2011 10:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Access and SQL server Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 13:05:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:05:11 -0500 Subject: [AccessD] Opening an Access application multiple times Message-ID: <4D4AFC67.7070902@colbyconsulting.com> I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:09:46 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:09:46 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:13:19 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:13:19 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4AFC67.7070902@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 2:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Opening an Access application multiple times I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:23:35 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:23:35 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From ssharkins at gmail.com Thu Feb 3 13:30:43 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 14:30:43 -0500 Subject: [AccessD] OT: Access and SQL server References: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Message-ID: And Susan's writing style always makes technical > materials easier to read. ======Thank you John -- that was very nice of you to say. I appreciate it a great deal! Susan H. From jwcolby at colbyconsulting.com Thu Feb 3 13:37:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:37:27 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4B03F7.9050409@colbyconsulting.com> I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks From jwcolby at colbyconsulting.com Thu Feb 3 13:40:52 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:40:52 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: <4D4B04C4.2080602@colbyconsulting.com> >I usually just open another instance of Access and then.. Yea. These are end users so... batch file it is. John W. Colby www.ColbyConsulting.com On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 2:05 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Opening an Access application multiple times > > I am trying to open an access application more than once - two instances open at the same time. > When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? > > When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. > > I can live with having to open it from a batch file but I am just wondering why this is happening. > > -- > 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 davidmcafee at gmail.com Thu Feb 3 14:01:23 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 3 Feb 2011 12:01:23 -0800 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B04C4.2080602@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: John, I do it as Lambert described. Quick question. Why do the users need to open two copies of the database? On Thu, Feb 3, 2011 at 11:40 AM, jwcolby wrote: > >I usually just open another instance of Access and then.. > > Yea. These are end users so... batch file it is. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > >> Don't know why but I see the same thing happening. I usually just open >> another instance of Access and then have it open the second instance of the >> MDB file via the File menu. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto: >> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 03, 2011 2:05 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Opening an Access application multiple times >> >> I am trying to open an access application more than once - two instances >> open at the same time. >> When I double click the FE (in explorer) it opens. When I go back to >> explorer and double click it again, it just switches me back to the open >> instance. Shouldn't it open the application a second time? >> >> When, from a batch file, I so something like "SomePath\Access.exe" >> SomeAccessFe.mdb it in fact opens the application a second time. >> >> I can live with having to open it from a batch file but I am just >> wondering why this is happening. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 14:35:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 15:35:37 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: <4D4B1199.7060605@colbyconsulting.com> LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just open >>> another instance of Access and then have it open the second instance of the >>> MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two instances >>> open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back to >>> explorer and double click it again, it just switches me back to the open >>> instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 14:42:49 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 15:42:49 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B1199.7060605@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: One other thing: I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Opening an Access application multiple times LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just >>> open another instance of Access and then have it open the second >>> instance of the MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two >>> instances open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back >>> to explorer and double click it again, it just switches me back to >>> the open instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 15:02:47 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:02:47 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: <4D4B17F7.4020505@colbyconsulting.com> >*At their instance* (I need to stress that) It is pretty bad when I am stressing my own mis-spellings. ;) *At their insistance* (I need to stress that) John W. Colby www.ColbyConsulting.com On 2/3/2011 3:42 PM, Heenan, Lambert wrote: > One other thing: > > I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 3:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Opening an Access application multiple times > > LOL. Because they do. Not uncommon really. > > In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. > > Can you say *busy*? > > The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. > > Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... > > Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 3:01 PM, David McAfee wrote: >> John, I do it as Lambert described. >> >> Quick question. Why do the users need to open two copies of the database? >> >> >> >> On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: >> >>>> I usually just open another instance of Access and then.. >>> >>> Yea. These are end users so... batch file it is. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >>> >>>> Don't know why but I see the same thing happening. I usually just >>>> open another instance of Access and then have it open the second >>>> instance of the MDB file via the File menu. >>>> >>>> Lambert >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com [mailto: >>>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Thursday, February 03, 2011 2:05 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Opening an Access application multiple times >>>> >>>> I am trying to open an access application more than once - two >>>> instances open at the same time. >>>> When I double click the FE (in explorer) it opens. When I go back >>>> to explorer and double click it again, it just switches me back to >>>> the open instance. Shouldn't it open the application a second time? >>>> >>>> When, from a batch file, I so something like "SomePath\Access.exe" >>>> SomeAccessFe.mdb it in fact opens the application a second time. >>>> >>>> I can live with having to open it from a batch file but I am just >>>> wondering why this is happening. >>>> >>>> -- >>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 15:13:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:13:26 -0500 Subject: [AccessD] I need an archive / copy widget Message-ID: <4D4B1A76.5010507@colbyconsulting.com> I use library (MDA) files. I use nested library files, the FE references one lib which references another lib. For whatever reason, if I don't do a full decompile / compile / compact etc on all libs / FE starting at the deepest referenced lib, and then use all the freshly DCCRed parts, the FE will hand (refuse to close). Do a full DCCR on all the parts, *in order* and then use all the parts and voila, no more hang. Which means that I now have a matched set of files where the FE only works with the libs that it was DCCRed with. So I need something that allows me to zip up all the files in the set in a (production or test) directory, then transfer into that (production or test) directory the freshly DCCRed files from my dev directory. Make sense? Has anyone got such a widget? -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Feb 3 16:34:57 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 3 Feb 2011 16:34:57 -0600 Subject: [AccessD] Modifying Charts with VBA References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad From Darryl.Collins at iag.com.au Thu Feb 3 16:38:51 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:38:51 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: References: Message-ID: <201102032242.p13MgRnk010389@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Thu Feb 3 16:43:08 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:43:08 +1100 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4B03F7.9050409@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com>, <4D4B03F7.9050409@colbyconsulting.com> Message-ID: <201102032243.p13MhLhA015541@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ HAHAHAHAHA! nice one John. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: Friday, 4 February 2011 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From df.waters at comcast.net Thu Feb 3 16:56:28 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 16:56:28 -0600 Subject: [AccessD] Modifying Charts with VBA In-Reply-To: References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> This is a link to the MS Graph 10 Object Model. http://msdn.microsoft.com/en-us/library/aa141052(office.10).aspx Could be a different version for Access 2007. Per this you should have a file on your PC name VBAGR10.chm if you've installed Access XP. I've got it and it's in C:\Program Files(x86)\Microsoft Office\Office11\vbagr10.chm. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 03, 2011 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Modifying Charts with VBA All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 3 17:01:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 3 Feb 2011 17:01:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Not to mention that if she is running into problems with the current system, a 'canned' solution would most likely carry those same issues along with it. A long time ago, I built a 'canned' solution that would display reports from an access database across the web (and any 'UI' prompts, like [Enter Product Number] that were in the query would be read, recreated into a web format to be displayed to the user, and then the user's response sent back to the actual .mdb). It worked great. Toyed with the idea of doing the same for forms, and ran into a huge brick wall with how Access subclasses the windows in its forms. So I never took it any further. But to take an Access mdb, and just 'dump it' into a web application loses the benefit of some of the great features a web application can incorporate. For instance, if you were to just create a Dropdown box, that 'populated' some fields in an ASP.NET application, ASP.Net would let you make it 'look' like an access combobox, and act like it, but what's happening in the background is clunky. First, .Net is creating javascript on the client side that is reacting to the 'OnClick' of the combobox (or index changed event), then it's sending all the current web form info back to the server (as a PostBack), where the web server then does what your .Net (VB or C#) code wants to do, in filling in the fields, and sends all that back to the user. UGLY. Works, but ugly. If it's a huge form, or a very slow connection, that creates noticeable pauses and reloads on the web page. There is another solution: You can create a generic handler, that uses JQuery (AJAX) on the client side to just 'ask' the web server for the applicable data. Here's a generic handler (.ashx file) <%@ WebHandler Language="VB" Class="LoadDoctorInfo" %> Imports System Imports System.Web Public Class LoadDoctorInfo : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim intID As String = context.Request.QueryString("DoctorID") Dim strDocInfo As New StringBuilder Dim dr As New Doctor(intID) strDocInfo.Append("[{""DoctorName"":""" & dr.Name & """,") strDocInfo.Append("""Address1"":""" & dr.Address1 & """,") strDocInfo.Append("""Address2"":""" & dr.Address2 & """,") strDocInfo.Append("""City"":""" & dr.City & """,") strDocInfo.Append("""State"":""" & dr.State & """,") strDocInfo.Append("""Zip"":""" & dr.ZipCode & """,") strDocInfo.Append("""Phone"":""" & dr.Phone & """}]") context.Response.ContentType = "application/json" context.Response.ContentEncoding = Encoding.UTF8 context.Response.Write(strDocInfo.ToString()) context.Response.End() End Sub Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class The above file is stored on the web server, and is called using the follow javascript on the client end: The drop down list is filled with doctors and their IDs, the jquery-1.2.6.js file (which you can download from the web) has all the code necessary to make the above code work. It takes the ID of the combo, queries the webserver's generic handler ('LoadDoctorInfo.ashx') and then populates controls on the end user's form using data from what's returned by the handler. The user's form doesn't have to 'reload' against the webserver, and that interaction 'appears' to work just like a combo box on an Access form would work. There are several other tricks you can do with .asp pages which will help increase the performance of an application. While there may be 'canned' apps out there, which can stuff an application into a .Net solution, I doubt it will be very finely tuned or optimized. Heck, one of the features of ASP.Net that I fell in love with, is how easy it is to create a 'downloaded file' on the fly. (Say on a data form, you want to give the user the ability to download a .csv file of the data they are working on, with .asp, I would create the .csv file in a temp file, and then redirect them to that file... with ASP.Net, it's extremely easy to just interrupt the outbound feed, and just send the file on the fly. Probably could have done that in classic asp, but the tutorial to do that in asp.Net was quick and easy to find). No more temp files. Very slick. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 7:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 newsgrps at dalyn.co.nz Thu Feb 3 17:39:01 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 12:39:01 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade Message-ID: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From bill_patten at embarqmail.com Thu Feb 3 19:54:59 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 3 Feb 2011 17:54:59 -0800 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: ?David, I don't know if this will help as I do not have Access XP any more, I do however have an adp Access2003 and did the following tests. Created and ADE restored a Sql Server 2000 backup into a 2008 Sql Server Opened a Win7 32 bit VM with Office 2010 installed in it Opened the 2003 ADE with 2010 and used my built in change SQL Server routine to connect to the 2008 Server. My program then prompted me for the database update to the latest version. I pointed my update routine to the correct .Sql file and it updated the server correctly, this is good that means some things are working OK. I opened a few forms and made a few entries and everything seemed to work with one exception. My automatic throw away the ribbon and use the old Office menus did not work. I suspect this is because it is an ADE and can't make the changes to the program. Selecting Add-ins does show the Office Menus but on top of the ribbon. I don't use ADE's any more, but lock down the ADP as much as possible to keep users out. If they get in and screw it up then they can pay me to fix it. The good news is 2010 did open a 2003 ade and didn't complain, obviously more testing is needed but at least on the surface it appears to work. By the way, there are some free Office 2010 downloads available, I think good for 30 days or so and if you have any Virtual machines or spare tests machines you can easily do some testing without screwing up you development system. HTH Bill -------------------------------------------------- From: "David Emerson" Sent: Thursday, February 03, 2011 3:39 PM To: "Access Developers discussion and problem solving" ; Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Feb 3 20:25:16 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 15:25:16 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20110204022539.UKGH3726.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Bill, That looks very promising. Much appreciated. Regards David At 4/02/2011, Bill Patten wrote: >?David, >I don't know if this will help as I do not have Access XP any more, I do >however have an adp Access2003 and did the following tests. >Created and ADE >restored a Sql Server 2000 backup into a 2008 Sql Server >Opened a Win7 32 bit VM with Office 2010 installed in it >Opened the 2003 ADE with 2010 and used my built in change SQL Server routine >to connect to the 2008 Server. My program then prompted me for the database >update to the latest version. >I pointed my update routine to the correct .Sql file and it updated the >server correctly, this is good that means some things are working OK. >I opened a few forms and made a few entries and everything seemed to work >with one exception. >My automatic throw away the ribbon and use the old Office menus did not >work. I suspect this is because it is an ADE and can't make the changes to >the program. Selecting Add-ins does show the Office Menus but on top of the >ribbon. > >I don't use ADE's any more, but lock down the ADP as much as possible to >keep users out. If they get in and screw it up then they can pay me to fix >it. > > >The good news is 2010 did open a 2003 ade and didn't complain, obviously >more testing is needed but at least on the surface it appears to work. > >By the way, there are some free Office 2010 downloads available, I think >good for 30 days or so and if you have any Virtual machines or spare tests >machines you can easily do some testing without screwing up you development >system. > >HTH > >Bill > >-------------------------------------------------- >From: "David Emerson" >Sent: Thursday, February 03, 2011 3:39 PM >To: "Access Developers discussion and problem solving" >; >Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade > >I have a client who is looking at upgrading their SQL2005 to SQL2008. > >Currently we are running an Access XP ade connected to SQL2005. > >Does anyone have any experience or know if an Access XP ade will >connect to an SQL2008 database > >Will an Access XP ade run in Access 2010? > >Can Access 2010 be used to create an ade? > >Are there any issues I should be aware of in upgrading an SQL2005 >database to SQL2008? > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Feb 3 20:29:55 2011 From: marksimms at verizon.net (Mark Simms) Date: Thu, 03 Feb 2011 21:29:55 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <013601cbc413$698b9850$3ca2c8f0$@net> I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From jwcolby at colbyconsulting.com Thu Feb 3 21:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 22:21:46 -0500 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <4D4B70CA.1070107@colbyconsulting.com> And that is exactly why I am going to C# apps. I *hate* clunky web apps and I don't want to be the author of one. Eventually I will do C# and services. Maybe. If I can ever figure it out. ;) There's just too much to know. I think I'll turn it all over to Robbie and let him figure it all out. He can already tell me how to do all the stuff on the Windows 7 HTPC that I can't figure out. John W. Colby www.ColbyConsulting.com On 2/3/2011 9:29 PM, Mark Simms wrote: > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From Lambert.Heenan at chartisinsurance.com Fri Feb 4 08:15:56 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 4 Feb 2011 09:15:56 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: <201102032242.p13MgRnk010389@databaseadvisors.com> References: <201102032242.p13MgRnk010389@databaseadvisors.com> Message-ID: Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Feb 4 09:42:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 04 Feb 2011 07:42:39 -0800 Subject: [AccessD] OT: Hey Susan Message-ID: <4D4C1E6F.9080701@nanaimo.ark.com> Hey Susan Thought this may give you a laugh. Just checked out the price of your book at amazon.ca List price $54.95 CDN Amazon price $34.62 CDN Checked out the other sellers new and used price. Vary's from $28.72 to $147.00 CDN Look's like it is becoming a collector's item. From ssharkins at gmail.com Fri Feb 4 10:16:31 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 4 Feb 2011 11:16:31 -0500 Subject: [AccessD] OT: Hey Susan References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <3B1F14CD1ABB42CEB708EED0AA569DE3@salvationomc4p> Well, if you send me $147.00, I'll send you MY copy! ;) AHAHAHAHHAAH Susan H. > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From jwcolby at colbyconsulting.com Fri Feb 4 10:26:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 04 Feb 2011 11:26:03 -0500 Subject: [AccessD] OT: Hey Susan In-Reply-To: <4D4C1E6F.9080701@nanaimo.ark.com> References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <4D4C289B.2050504@colbyconsulting.com> LOL. I've seen that with other books. I think some people put a book up for sale at an outrageous price and just hope for the occasional dunce to click buy. John W. Colby www.ColbyConsulting.com On 2/4/2011 10:42 AM, Tony Septav wrote: > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From pcs.accessd at gmail.com Sat Feb 5 02:14:52 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 18:14:52 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server Message-ID: Hi all, I have created both a view and a SP based on tables in another Db (call it Db1) on the same instance of the SQL Server (2008). I created the view and SP in say Db2. A simple Select ... When I want to use either the View or the SP in a join with other tables in Db2 I am stuck. The SP containing the join to either view or SP based on Db1 tables and saved in Db2 will save Ok but not execute. Both the view and the SP that I am trying to join up will execute ok when running on their own. Funny thing is that in the Access FE I can create a pass through query based on the view and join the pass through query to an odbc linked table from Db2. Any one who can shed light on this? borge From paul.hartland at googlemail.com Sat Feb 5 02:56:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 5 Feb 2011 08:56:51 +0000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Have you got an example of the view and SP, if you want to run a view or SP in DB2 that uses tables/views in DB1 then you have to reference the database (which I am assuming that you are doing), but if not example is below: in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 Paul On 5 February 2011 08:14, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From pcs.accessd at gmail.com Sat Feb 5 03:22:06 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 19:22:06 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Yes, I am referencing the Db. I have created viewDb1 in Db2. The view executes ok in Db2 When I try and use viewDb1 in a join in another select SP in Db2 I can create and save the SP but it will not execute. It does not recognize the viwDb1. ?? I will now create the ViewDb1 in Db1 and on the SP in question in Db2 try and join up the Db1.viewDb1 ... We'll see. Thanks for the input. borge On Saturday, February 5, 2011, Paul Hartland wrote: > Have you got an example of the view and SP, if you want to run a view or SP > in DB2 that uses tables/views in DB1 then you have to reference the database > (which I am assuming that you are doing), but if not example is below: > > in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > Paul > > On 5 February 2011 08:14, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at roadrunner.com Sat Feb 5 08:02:40 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 5 Feb 2011 09:02:40 -0500 Subject: [AccessD] Archives In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <374E68B7D75E4258B8C2AE40475D03A8@DCYN3T81> Are the archives down? I am unable to search ... http://databaseadvisors.com/mailman/mmsearch/accessd "The webpage cannot be found" Thanks Bob Gajewski From pcs.accessd at gmail.com Sat Feb 5 18:58:43 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sun, 6 Feb 2011 10:58:43 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Follow up to this issue: I have these DBs: RMS_ADMIN and RMS_DATA I have created a view call vAppUsers in both RMS_ADMIN and RMS_DATA based on tables in RMS_ADMIN. The view created in RMS_DATA references the RMS_ADMIN. In RMS_DATA I can create a SP that joins the vAppUsers view; I can use the local vAppUsers created in RMS_DATA or I can use the RMS_ADMIN.dbo.vAppUsers. However, in both SPs whenever I hover over the vAppUsers object, the intellisense responds with: Invalid Object Name 'RMS_ADMIN.dbo.vAppUsers' or Invalid Object Name 'dbo.vAppUsers' (when using the local RMS_DATA.dbo.vAppUsers) and when hovering over a column: The Multi-part identifier "RMS_ADMIN.dbo.vAppUsers.User_ID" could not be bound or The Multi-part identifier "dbo.vAppUsers.User_ID" could not be bound (when using the local RMS_DATA.dbo.vAppUsers) The SPs executes OK Is it just a limitation on the part of the intellisense that I can just disregard. Or do I need to do something here? One of the SPs looks like that references the view in RMS_ADMIN looks like this: SELECT dbo.tlkpRS_CCAreas.*, dbo.tlkpAreaGroup.AreaGroupDescription, dbo. tlkpAreaGroup.DesignatedUserID, RMS_ADMIN.dbo.vAppUsers.User_LoginName FROM dbo.tlkpRS_CCAreas INNER JOIN dbo.tlkpAreaGroup ON dbo.tlkpRS_CCAreas.AreaGroup = dbo.tlkpAreaGroup.AreaGroupID INNER JOIN RMS_ADMIN.dbo.vAppUsers ON dbo.tlkpAreaGroup.DesignatedUserID = RMS_ADMIN. dbo.vAppUsers.User_ID --- regards borge On Sat, Feb 5, 2011 at 7:22 PM, Borge Hansen wrote: > Yes, I am referencing the Db. > I have created viewDb1 in Db2. > The view executes ok in Db2 > When I try and use viewDb1 in a join in another select SP in Db2 I > can create and save the SP but it will not execute. It does not > recognize the viwDb1. > ?? > I will now create the ViewDb1 in Db1 and on the SP in question in Db2 > try and join up the Db1.viewDb1 ... We'll see. > Thanks for the input. > borge > > On Saturday, February 5, 2011, Paul Hartland > wrote: > > Have you got an example of the view and SP, if you want to run a view or > SP > > in DB2 that uses tables/views in DB1 then you have to reference the > database > > (which I am assuming that you are doing), but if not example is below: > > > > in DB1 you have a view call it say ViewInDB1, to reference the view in > DB1 > > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > > > Paul > > > > On 5 February 2011 08:14, Borge Hansen wrote: > > > >> Hi all, > >> I have created both a view and a SP based on tables in another Db > >> (call it Db1) on the same instance of the SQL Server (2008). I created > >> the view and SP in say Db2. A simple Select ... > >> When I want to use either the View or the SP in a join with other > >> tables in Db2 I am stuck. The SP containing the join to either view or > >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. > >> Both the view and the SP that I am trying to join up will execute ok > >> when running on their own. > >> Funny thing is that in the Access FE I can create a pass through query > >> based on the view and join the pass through query to an odbc linked > >> table from Db2. > >> Any one who can shed light on this? > >> borge > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > -- > > Paul Hartland > > paul.hartland at googlemail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > From Darryl.Collins at iag.com.au Sun Feb 6 17:29:13 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 7 Feb 2011 10:29:13 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: Message-ID: <201102062329.p16NTG9m003348@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hey Lambert, If you want, send me a copy of the target XL file and the Access code modules used to call it, I will see if I can replicate the problem here, or see if there is anything funky with the XL file. Always interested in these sort of issues. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Saturday, 5 February 2011 1:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 7 07:15:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 08:15:23 -0500 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: <4D4FF06B.9010304@colbyconsulting.com> It feels like a security issue. At my office I am the owner of all the databases. I have many (hundreds) of databases and I have always used the db.dbo.table.view addressing to create views, dynamic SQL etc. most of which references other databases. I have a handful of (a dozen) databases which are what I call "data" databases, which hold name / address lists. In the past I used SPs heavily which operated on data from each other. I also use C# to execute code updating or appending records from one database to another. the key to me is the dbname.dbo. syntax, as long as I have that the queries work fine. Again though, all of the databases are owned by the same owner so rights are not an issue. John W. Colby www.ColbyConsulting.com On 2/5/2011 3:14 AM, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge From jwcolby at colbyconsulting.com Mon Feb 7 11:05:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 12:05:04 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: <4D502640.50309@colbyconsulting.com> > I sent a demo SQL dB to you off-list. Did you get it? AFAICT I did not get that offline. I am trying to build an access application which installs on a user's system somewhere out in the world. 1) They are not local to my machine, they come in to my SQL Server instance over Hamachi. 1a) They have no means to login directly to the server instance with a username / password. 2) They are going to run on a 2007 run-time. 3) The runtime is intentionally unhelpful. 4) In testing it just gives me a "there was an error executing the command" when I try to open a form. When I try to open the same thing under the full version Access it is asking for a logon as it attempts to open the first form. My guess is that the runtime is attempting to open this SQl Server login form and isn't allowed to by the runtime. Thus I have to set up the linked tables to just use a correct username / password. I think I can embed this directly into the sql connect string that is part of the tabledef.connect but was attempting to avoid that. That will be my next test just to ensure that it is in fact the issue here. John W. Colby www.ColbyConsulting.com On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren From markamatte at hotmail.com Mon Feb 7 13:27:19 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:27:19 +0000 Subject: [AccessD] Access Limits In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com> Message-ID: Hello All, Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. What is the limitation on linking a text/csv file? Thanks, Mark A. Matte From garykjos at gmail.com Mon Feb 7 13:34:58 2011 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 7 Feb 2011 13:34:58 -0600 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: I don't usually link to CSV files, but I often import them and get a similar error if the file is not formatted correctly with end of record CTRL/LF combinations. Here are Access 2007 limits. http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx No mention of a limit for linked files. GK On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Feb 7 13:41:17 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:41:17 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte > Date: Mon, 7 Feb 2011 13:34:58 -0600 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > I don't usually link to CSV files, but I often import them and get a > similar error if the file is not formatted correctly with end of > record CTRL/LF combinations. > > Here are Access 2007 limits. > > http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx > > No mention of a limit for linked files. > > GK > > On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > 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 gustav at cactus.dk Mon Feb 7 15:01:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 07 Feb 2011 22:01:26 +0100 Subject: [AccessD] Access Limits Message-ID: Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte From Lambert.Heenan at chartisinsurance.com Mon Feb 7 15:31:15 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 7 Feb 2011 16:31:15 -0500 Subject: [AccessD] Access Limits In-Reply-To: References: Message-ID: And for a text file editor with which to do the split you could do a lot worse that Notepad++ http://notepad-plus-plus.org/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 07, 2011 4:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access Limits Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 7 16:37:54 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 7 Feb 2011 16:37:54 -0600 Subject: [AccessD] Order of Data on Access 2007 Chart References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> Message-ID: All, I am just starting to experiment with charts in Access 2007. I have a really dumb question. How can I make the order of a chart the same as the order of its underlying query? I have set up a small test table, query, and report. The table only has two fields, Customer_Name and Customer_Amount The query sorts the data on Customer_Amount. The report is based on the query and shows the data sorted on Customer_Amount I added a chart with the "Insert Chart" button on the Access 2007 ribbon. I stepped through the chart wizard and picked the underlying query. I was expecting to see the generated chart to be sorted the same as the query and the report. Instead, it is sorted on Customer_Name. I can't seem to figure out what I am missing here. Thanks, Brad From pcs.accessd at gmail.com Mon Feb 7 18:25:02 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 10:25:02 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: <4D4FF06B.9010304@colbyconsulting.com> References: <4D4FF06B.9010304@colbyconsulting.com> Message-ID: SOLVED The same situation here. I am the owner of the databases.... I use SQL Server Authentication and am logged in using sa .... I don't think it is a security issue.... I replicated the issue. It turns out the intellisense only kicks in after you have exited the Management Studio and then logged in again 1. Create a view in Db2 using tables from Db1 - save as view1Db2 and run 2. Create a new view based on view1Db2 and copy the sql string 3. into a new SP in Db2 - sp1Db2 - save it. Execute. 4. Close the sp and open again as alter sp - You should see the intellisense is not working. 5. Close and reopen Management Studio. Open the sp as alter sp - You should now see the intellisense working ok. regards, borge On Mon, Feb 7, 2011 at 11:15 PM, jwcolby wrote: > It feels like a security issue. > > At my office I am the owner of all the databases. I have many (hundreds) > of databases and I have always used the db.dbo.table.view addressing to > create views, dynamic SQL etc. most of which references other databases. I > have a handful of (a dozen) databases which are what I call "data" > databases, which hold name / address lists. In the past I used SPs heavily > which operated on data from each other. > > I also use C# to execute code updating or appending records from one > database to another. the key to me is the dbname.dbo. syntax, as long as I > have that the queries work fine. Again though, all of the databases are > owned by the same owner so rights are not an issue. > > John W. Colby > www.ColbyConsulting.com > > > On 2/5/2011 3:14 AM, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs.accessd at gmail.com Mon Feb 7 19:35:51 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 11:35:51 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: John, We use a system / machine ODBC dsn with SQL Server Authentication Login ID and password We drop and relink tables on opening of the runtime using hardcoded Login ID and password Even if user can access properties of linked table, the Login ID and password will not be shown, see sample below: ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest I am curious about the hamachi, please provide link for more information and instrucitons for how to set up regards, borge On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > > I sent a demo SQL dB to you off-list. Did you get it? > > AFAICT I did not get that offline. > > I am trying to build an access application which installs on a user's > system somewhere out in the world. > > 1) They are not local to my machine, they come in to my SQL Server instance > over Hamachi. > 1a) They have no means to login directly to the server instance with a > username / password. > 2) They are going to run on a 2007 run-time. > 3) The runtime is intentionally unhelpful. > 4) In testing it just gives me a "there was an error executing the command" > when I try to open a form. When I try to open the same thing under the full > version Access it is asking for a logon as it attempts to open the first > form. > > My guess is that the runtime is attempting to open this SQl Server login > form and isn't allowed to by the runtime. Thus I have to set up the linked > tables to just use a correct username / password. I think I can embed this > directly into the sql connect string that is part of the tabledef.connect > but was attempting to avoid that. That will be my next test just to ensure > that it is in fact the issue here. > > > John W. Colby > www.ColbyConsulting.com > > On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > >> Hi JC >> >> I sent a demo SQL dB to you off-list. Did you get it? >> It shows how to use Pass through queries >> It has a sample to store your username and password and pass it in your >> SQL >> connection requests >> There is also the option to set the "Trusted Connection" to yes in the SQL >> connections strings >> >> Many thanks >> >> Darren >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 8 07:00:54 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 08:00:54 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: <4D513E86.5000401@colbyconsulting.com> Borge, I need your help. I will open my system to you, I will teach you about Hamachi and you can teach me about authentication in a run time world. I cannot give you the keys in AccessD though so contact me off line. Anyone else too who knows any part of this and wants to learn any part. We will keep all discussions other than actual user name / passwords on this list. Thanks, John W. Colby www.ColbyConsulting.com On 2/7/2011 8:35 PM, Borge Hansen wrote: > John, > > We use a system / machine ODBC dsn with SQL Server Authentication Login > ID and password > > We drop and relink tables on opening of the runtime using hardcoded Login ID > and password > > Even if user can access properties of linked table, the Login ID and > password will not be shown, see sample below: > > ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office > 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest > I am curious about the hamachi, please provide link for more information and > instrucitons for how to set up > > regards, > borge > > > > On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > >>> I sent a demo SQL dB to you off-list. Did you get it? >> >> AFAICT I did not get that offline. >> >> I am trying to build an access application which installs on a user's >> system somewhere out in the world. >> >> 1) They are not local to my machine, they come in to my SQL Server instance >> over Hamachi. >> 1a) They have no means to login directly to the server instance with a >> username / password. >> 2) They are going to run on a 2007 run-time. >> 3) The runtime is intentionally unhelpful. >> 4) In testing it just gives me a "there was an error executing the command" >> when I try to open a form. When I try to open the same thing under the full >> version Access it is asking for a logon as it attempts to open the first >> form. >> >> My guess is that the runtime is attempting to open this SQl Server login >> form and isn't allowed to by the runtime. Thus I have to set up the linked >> tables to just use a correct username / password. I think I can embed this >> directly into the sql connect string that is part of the tabledef.connect >> but was attempting to avoid that. That will be my next test just to ensure >> that it is in fact the issue here. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >> >>> Hi JC >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>> It shows how to use Pass through queries >>> It has a sample to store your username and password and pass it in your >>> SQL >>> connection requests >>> There is also the option to set the "Trusted Connection" to yes in the SQL >>> connections strings >>> >>> Many thanks >>> >>> Darren >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From charlotte.foust at gmail.com Tue Feb 8 10:27:42 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 8 Feb 2011 08:27:42 -0800 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: This is just a SWAG, but would assume that the limit on a linked file would be the same as on a linked table or database. It may also depend on the database format you're using, mdb or acdb. Charlotte Foust On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Feb 8 11:12:30 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 8 Feb 2011 17:12:30 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: I have, in the past, linked to 5 gig txt files using Access 03. This however is a CSV...not sure if that is the difference. I have not tried using an acdb. > Date: Tue, 8 Feb 2011 08:27:42 -0800 > From: charlotte.foust at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > This is just a SWAG, but would assume that the limit on a linked file > would be the same as on a linked table or database. It may also > depend on the database format you're using, mdb or acdb. > > Charlotte Foust > > On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 13:30:10 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 13:30:10 -0600 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 accessd at shaw.ca Tue Feb 8 14:45:24 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 12:45:24 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 jwcolby at colbyconsulting.com Tue Feb 8 15:12:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 16:12:15 -0500 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <4D51B1AF.6050204@colbyconsulting.com> > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From accessd at shaw.ca Tue Feb 8 15:42:16 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 13:42:16 -0800 Subject: [AccessD] From a reader In-Reply-To: <4D51B1AF.6050204@colbyconsulting.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <4D51B1AF.6050204@colbyconsulting.com> Message-ID: <3B6F14CED7D7428DBCC6E90F3A8DDD78@creativesystemdesigns.com> Now you are talking... that should thin out the ranks considerable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, February 08, 2011 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 18:21:06 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 18:21:06 -0600 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 marksimms at verizon.net Tue Feb 8 20:48:26 2011 From: marksimms at verizon.net (Mark Simms) Date: Tue, 08 Feb 2011 21:48:26 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <004d01cbc803$d3fe0c10$7bfa2430$@net> > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. From accessd at shaw.ca Wed Feb 9 01:17:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 23:17:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 9 04:23:09 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 11:23:09 +0100 Subject: [AccessD] From a reader Message-ID: Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. From shamil at smsconsulting.spb.ru Wed Feb 9 05:24:20 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 14:24:20 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From pcs.accessd at gmail.com Wed Feb 9 06:48:35 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Wed, 9 Feb 2011 22:48:35 +1000 Subject: [AccessD] [dba-SQLServer] index-defrag-script-v4-0 Message-ID: Hi all, I thought I'd share this link to a very interesting script for defragmenting indexes in one table, one Db or all non system databases: http://sqlfool.com/2010/04/index-defrag-script-v4-0/ regards borge From DWUTKA at Marlow.com Wed Feb 9 09:27:42 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 09:27:42 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: What are you talking about Jim, there is such an app, I think you already mentioned it... it's called Notepad.... ;) I actually really like ASP.Net. It has some wonderful features. But someone coming from a non-web GUI, may not realize how ASP.Net is actually 'mimicking' the interface interactions they are used too, and it just gets ugly then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 09, 2011 1:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim 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 Wed Feb 9 11:12:01 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:12:01 -0600 Subject: [AccessD] From a reader In-Reply-To: <004d01cbc803$d3fe0c10$7bfa2430$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <004d01cbc803$d3fe0c10$7bfa2430$@net> Message-ID: I've gotten pretty familiar with ASP.Net, and I must say, for smaller sites, I would probably still just use classic asp. I can already hear a future me grumbling about it a decade from now... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, February 08, 2011 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. -- 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 Wed Feb 9 11:17:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:17:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Yes, exactly, although, that is a mixed post. A developer that doesn't optimize right (though he is using Access 2007, how many pros would use that version if they had a choice? ;) ), and a customer that doesn't want to listen to reason. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 4:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. -- 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 accessd at shaw.ca Wed Feb 9 12:12:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 10:12:12 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Feb 9 12:25:01 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 21:25:01 +0300 Subject: [AccessD] From a reader In-Reply-To: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Message-ID: Hi Jim -- Yes, I also wanted to give a try to Razor + jQuery. Have a look they say: <<< Razor is already part of DNN5.6.1. The engine itself can be hosted even in Non Web Applications. >>> http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/118/postid/4070 62/scope/posts/Default.aspx#407062 Hosting the Razor Engine for Templating in Non-Web Applications http://www.west-wind.com/weblog/posts/864461.aspx <<< Microsoft SQL Server Migration Assistant 2005 for Access" >>> I'm not sure which version of MS SQL Server Migration Assitant I used last time - that could have been Microsoft SQL Server Migration Assistant 2005 for Access as I used it for MS Access 2003 database somewhere year 2004 or later. And it worked smoothly AFAIKR. As for queries - simple ones get converted OK but something more complicated and especially with VBA functions - all that needed additional manual work. And Migration Assitant does try to export a lot of MS Access tables and their fields properties' as Extended properties of MS SQL tables and their columns - I'd better switch off that feature as it creates a lot of unneeded "garbage" extended properties - just IMO. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 21:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From Gustav at cactus.dk Wed Feb 9 12:37:14 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 19:37:14 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Feb 9 13:16:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 22:16:27 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From iggy at nanaimo.ark.com Wed Feb 9 11:42:59 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 09 Feb 2011 09:42:59 -0800 Subject: [AccessD] Hey Susan Message-ID: <4D52D223.6060108@nanaimo.ark.com> Hey Susan Can you give me an EMail off-line that I can use to discuss with you somethings about your book. I am down to about 4 choices, like to go with yours and Martin's but just have a couple of questions. Thanks Tony From gustav at cactus.dk Wed Feb 9 15:51:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 22:51:26 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil OK, that's a good point. Slow response can kill you. But one trick around this is to have a fast main page and fast landing pages - then you have caught the attention and can go from there. That said, I think I'll go and download the Razor beta and have a closer look ... Could we ever settle at some level? You gave the answer: Yes, when we retire. Thanks for the links by the way. /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 20:16 >>> Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From accessd at shaw.ca Wed Feb 9 18:21:07 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 16:21:07 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs.accessd at gmail.com Thu Feb 10 01:01:00 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Thu, 10 Feb 2011 17:01:00 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D513E86.5000401@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Thu Feb 10 07:00:08 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 08:00:08 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Borge, <> On a 64 bit machine, there are two ODBC managers; one for 64 bit data sources and one for 32 bit. Your probably creating it as a 64 bit data source, which your 32 bit Office install will not be able to see. The 32 bit version is located in the %systemdrive%\Windows\SysWoW64 folder and must be directly invoked. Here's a MSKB article on it with some details: http://support.microsoft.com/kb/942976 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, February 10, 2011 02:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL constant harassment Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=db o.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 07:57:40 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 07:57:40 -0600 Subject: [AccessD] Access 2007 FE/BE speed Message-ID: <4d53eed6.0431640a.4399.01f5@mx.google.com> Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim From jimdettman at verizon.net Thu Feb 10 08:52:01 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 09:52:01 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53eed6.0431640a.4399.01f5@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 09:01:55 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 09:01:55 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: <4d53fde5.841dec0a.2285.05a6@mx.google.com> Good points Jim, thanks. I have turned off the sub-datasheets... I usually do that regardless of the version. I don't have any control over the servers, but I can ask them to make some changes. I never thought about the virus scan... I'll check into that. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 10, 2011 8:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 10:13:55 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:13:55 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53fde5.841dec0a.2285.05a6@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> Message-ID: <4D540EC3.2020605@colbyconsulting.com> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless of the > version. > I don't have any control over the servers, but I can ask them to make some > changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which each > user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and again, > this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. It > appears that the SMB 2.0 specification is giving some apps headaches, > although this is not fully clear yet. Some report the app works better when > the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage > may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if A2007 > can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned in > passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be found on > the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations and Show > Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an integrated > file. I know it's running little slower, but I can barely see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't think > there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 10 10:21:07 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:21:07 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D541073.1040809@colbyconsulting.com> Borge, Wow, thanks! I am right in the middle of rush work but this is my immediate need for my unpaid work so I will work on it in the next day or so, probably after work tonight and the next few days. In the meantime, to start boning up on Hamachi we are going to make you your own network just for you to learn how Hamachi works. 1) Go to https://secure.logmein.com/login.asp 2) Click the "New user? Create an account" link *under* the login button. 3) Create yourself an account and log in to that account 4) Once logged in, click the "NETWORK" link in the left hand margin 5) Click the "Add Network" under the big bold My Networks in the center of the page 6) Fill in the network name and description. I suggest that you use a prefix such as BHNetworkName (BH for Borge Hansen) for your own personal networks. Not necessary but it may help you organize. 7) Fill in the network type radio button. You can come back here later to change the network type. for now select mesh. 8) Click the Continue button at the bottom of the page 9) On the next page you set up how new users can be added to the network and a password for joining the network. For now click "Accept automatically" and create a password. You can change these parameters later if you wish by revisiting this page. 10) Click continue. I believe that you will end up in a "finish dialog". I created a hub and spoke network for this discussion to get in to my machine so I am on a different path through the page now. So you should now have your first personal mesh network. A mesh network allows every computer to see every other computer, much like a router / switch does on a normal network on your system. At this instant you do not have any computer with Hamachi installed so you need to get Hamachi installed on at least two machines so that they can join this new network of yours and can talk to each other. There are two ways to do this. The first is to email an invitation to join your network from this HAMACHI web page you are on. This will send an email to an email address with a hotlink which when clicked will apply to join your network. Whether or not it is instantly allowed in to the network depends on whether you selected "immediate acceptance" as you were setting up the network. Let us use this method now so that you can see how it works and what the recipient will experience. 1) On the left hand side of the web page, click the "NETWORK" hotlink. You will be back at the page showing "MY NETWORKS" and you will now have a network, named whatever you chose as your name. 2) Click the "Add client" hot link next to the green +. Click Deploy LogMeIn Hamachi to a remote computer. Click continue. 3) The next page will be used to send an email. It allows you to send a hotlink which can be used N times within a time period to join the network. Select 1 time if it is just going to be used once, select N times if it is going to be shared by several individuals which are all in an office but you may not have all of their emails. 4) Select the network(s) that you want them to be allowed to join. 5) Click continue LogmeIn's web page apparently has a bug. For me it did *not* take me to the page I am about to describe I had to poke around and find the page. It is *supposed* to take to this next page where... 6) You will see a big bold "ADD CLIENT" in the middle of the page and three buttons - Copy, Send and test. Click the SEND button and (in my case) Thunderbird opens with a hotlink in the body for your user to click on. 7) Fill in the person that you want to join your network and the subject (join my network!) and send the email. I'll send more later. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jm.hwsn at gmail.com Thu Feb 10 10:32:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 10:32:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D540EC3.2020605@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> Message-ID: <4d541317.02f2960a.41cf.0c8e@mx.google.com> That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 df.waters at comcast.net Thu Feb 10 10:51:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 10 Feb 2011 10:51:25 -0600 Subject: [AccessD] Turn Off Sub Datasheets Message-ID: <599935DC8C564030B2932B984D19468A@utc.com> To quickly turn off the subdatasheets in tables, run this code in a module in your database where the actual tables are located. '--------------------------------------------------------------------------- -------- Private Sub TurnOffSubDataSheets() On Error GoTo EH '-- Before running this module, set Error Trapping to 'Break on Unhandled Errors' Dim dbs As DAO.Database Dim prop3270 As DAO.Property Dim propName As String, propVal As String, rplpropValue As String Dim propType As Integer, i As Integer Dim intCount As Integer Set dbs = CurrentDb propName = "SubDataSheetName" propType = 10 propVal = "[None]" rplpropValue = "[Auto]" intCount = 0 For i = 0 To dbs.TableDefs.Count - 1 If (dbs.TableDefs(i).Attributes And dbSystemObject) = 0 Then If dbs.TableDefs(i).Properties(propName).Value = rplpropValue Then dbs.TableDefs(i).Properties(propName).Value = propVal intCount = intCount + 1 End If End If XH: Next i dbs.Close MsgBox "The " & propName & " value for " & intCount & " non-system tables has been updated to " & propVal & "." Exit Sub EH: If Err.Number = 3270 Then Set prop3270 = dbs.TableDefs(i).CreateProperty(propName) prop3270.Type = propType prop3270.Value = propVal dbs.TableDefs(i).Properties.Append prop3270 intCount = intCount + 1 Resume XH Else MsgBox Err.Description & vbCrLf & vbCrLf & " in TurnOffSubDataSheets routine." End If End Sub From Lambert.Heenan at chartisinsurance.com Thu Feb 10 11:25:18 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 12:25:18 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d541317.02f2960a.41cf.0c8e@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 jm.hwsn at gmail.com Thu Feb 10 12:21:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 12:21:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4d542ca3.0348960a.0f48.1437@mx.google.com> Essentially, I'm doing this, I just didn't realize I was keeping the connection open. When the FE opens, the user fills in their credentials in the log in form. Once verified, the user's Personal ID populates a couple of fields in the bound log in form. When the next button is clicked the log in form is hidden throughout the entire session. The fields are used for various processes during the session. The fields are tied to all the forms and results that the database represents to the user. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 10, 2011 11:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 12:59:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 13:59:31 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4D543593.1050307@colbyconsulting.com> But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, which >> each user should have their own copy of, so opening exclusive would be >> appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). Not >> specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, others >> 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and 3 >> above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> 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 shamil at smsconsulting.spb.ru Thu Feb 10 13:01:10 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 10 Feb 2011 22:01:10 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From Lambert.Heenan at chartisinsurance.com Thu Feb 10 13:23:27 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 14:23:27 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D543593.1050307@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: Ya got me there John. What do you mean by "for the FE that is the application"? I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. So again, what did you mean by "for the FE that is the application"? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, >> which each user should have their own copy of, so opening exclusive >> would be appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). >> Not specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, >> others 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and >> 3 above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 10 14:43:40 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 Feb 2011 12:43:40 -0800 Subject: [AccessD] From a reader In-Reply-To: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Feb 10 15:40:37 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 00:40:37 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From davidmcafee at gmail.com Thu Feb 10 17:49:16 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 15:49:16 -0800 Subject: [AccessD] Forgot old Access 2.0 password Message-ID: A coworker needs to open an old A2.0 database. They don't have the password. Anyway to bypass the mdw? From rlister at actuarial-files.com Thu Feb 10 18:42:19 2011 From: rlister at actuarial-files.com (Ralf Lister) Date: Thu, 10 Feb 2011 20:42:19 -0400 Subject: [AccessD] Recordset Movements Message-ID: <002701cbc984$8b3edd10$a1bc9730$@com> Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From davidmcafee at gmail.com Thu Feb 10 18:51:48 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 16:51:48 -0800 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg> <4D548323.80805@emilia-maxim.de> Message-ID: Sorry Emilia, I forgot Access-L replies directly to the person replying rather than the list. ---------- Forwarded message ---------- They got it. They found some pw cracker that unlocked the first few characters, which was enough for one of the old timers to remember. Thanks. :) 2011/2/10 Emilia Maxim David, > > > A coworker needs to open an old A2.0 database. >> >> They don't have the password. >> >> Anyway to bypass the mdw? >> > > If A2007 or A2010 "understand" A2.0, then they might have a chance. At > least I could import data from a secured A97 DB in A2007 without the mdw. > > -- > Regards > Emilia, TWIG > > Emilia Maxim > PC-SoftwareService > Stuttgart, Germany > From rockysmolin at bchacc.com Thu Feb 10 18:58:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 10 Feb 2011 16:58:47 -0800 Subject: [AccessD] Recordset Movements In-Reply-To: <002701cbc984$8b3edd10$a1bc9730$@com> References: <002701cbc984$8b3edd10$a1bc9730$@com> Message-ID: <4BFC9413470B4F6C82A793044BE2369A@HAL9005> I'd look at the record source for the report. But if you want to print a report of just that record, I would pass the PK of the record you want to print and in the _Open event set the report filter to just that record's PK. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Thursday, February 10, 2011 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Recordset Movements Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From stuart at lexacorp.com.pg Thu Feb 10 19:07:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 11 Feb 2011 11:07:56 +1000 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg>, , Message-ID: <4D548BEC.9197.49664D2@stuart.lexacorp.com.pg> No it doesn't. You email program does. :-) Obviously it is not honouring the "Reply-To" header in the message: Reply-To: Access Developers discussion and problem solving -- Stuart On 10 Feb 2011 at 16:51, David McAfee wrote: > Sorry Emilia, I forgot Access-L replies directly to the person > replying rather than the list. > > ---------- Forwarded message ---------- From Gustav at cactus.dk Fri Feb 11 02:03:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Feb 2011 09:03:48 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim From paul.hartland at googlemail.com Fri Feb 11 04:03:56 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 11 Feb 2011 10:03:56 +0000 Subject: [AccessD] Upgrading SSRS 2005 To SSRS 2008 On Different Server Message-ID: To all, I am getting an error when reports have been migrated from SSRS 2005 to SSRS 2008 which is 'The data source 'Connection_To_AL_SQL_Genesis' cannot be found. The data source name in SSRS 2005 is actually 'Connection To AL-SQL Genesis', I looked around on the internet and apparently when migrating to SSRS 2008 any spaces and hyphens in the connection name get replaced by underscores. So I went back to the data sources on SSRS 2005 and renamed my connection to 'ConnectionToALSQLGenesis' and relinked all the reports to the new name. So then went through the process of backing up the reportserver and reportservertempdb databases, and the reporting services encryption keys, copied the files to the new server, restored the databases and the reporting services encryption keys. However I am still getting the same error message when trying to open the reports, if I go to the properties of the report and re-connect to the data source I still get the same error. However if I reload the report and connect to the data source then it works !!!!! Can anyone shed any light as to what I am doing wrong or what I need to do to resolve this, as I dont really want to reload all the reports and re-connect the data sources. -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Feb 11 08:35:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 17:35:00 +0300 Subject: [AccessD] "Next Big Technology Things" - Was:RE: From a reader In-Reply-To: References: Message-ID: <94457126BED34D7FB1D867E8CEBE6F25@nant> Hi Gustav -- Thank you for your note. Shouldn't we move this discussion thread to dba-vb? No, I'm not fiddling with semi-boiled frameworks (I hope) - I'm mainly trying to find and "keep my eyes open" on the "next big" technology things I should be aware of. And Jim has already found them AFAIS. And that "next big technologies things" I'm (mainly) watching not yet using in my everyday real work or test projects should be generally accepted not only by MS shops... Then I will wait as much as possible until MS will make this "next big technology things" mature enough to use in real life applications. And that "next big technology things" for me currently are: - JavaScript (+jQuery) (yes, it's an "old thing" but MS started to support jQuery not that long ago); - RESTFul services + JSON (WCF + .NET Framework support them naturally); - HTML5 (IE9 and FireFox7(?)); - ADO.NET EF; - Silverlight and Windows Phone 7; - Azure. Did I miss some? <<< For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. >>> Yes, I'm "more than busy" here too... ...if I've had time to learn PERL (or Python or Ruby) I'd probably leave just: - 1) VS20xx + C# + MS Access + MS SQL - for desktop development; - 2) PERL (Python(?)/Ruby(?))+ HTML(5) + CSS + JavaScrip(jQuery)t + mySQL/MS SQL + a partnership with advanced web designer - for "classical" web development. - 3) Silverlight for Windows Pnone 7 development Thank you. -- Shamil P.S. BTW here is QCon short announcement for this year London conference - you can find that my "next big technology things" list is mainly covered by QCon list. And I will have to skip all the other subjects or just glance them - no time at all: - Enterprise Agile Transformation - Teams, Learning, Contracts & Collaboration; - Lean and Kanban: Learning Through Systems Thinking - Kanban at BBC, Design Thinking, Complexity vs. Lean, System Design; - Building Systems with REST - REST at BestBuy, Hypermedia-driven apps & integration, REST in .NET; - Architectures You've Always Wondered About - Facebook, Twitter, Netflix, OnLive, Visa; - When Things Break - "Let it crash", operating during Failure, Continuous Deployment, Unreliable Components; - Software Architecture Improvements - Architecture Refactoring, Re-engingeering, Erosion, Arch Assessment; - Design and Objects 2011 - OO at Facebook, OO at Government, Onion Design, OO in Java, Event-driven design; - Next-Generation Financial Technology- Futures Trade Flow, Millisecond latencies @ Linear Scale, CEP, and more; - NoSQL: Where and How - HBase at Facebook, MongoDB at Guardian.co.uk, and more NoSQL; - Software Craftsmanship - Craftsmanship & Engineering, Deliberate Practice, Leadership, Quality, Learning; - Functional Web - Node.JS, Haskell, Webmachine, Clojure, Conversational Web; - HTML5, the Platform - HTML5 at Facebook, WebSockets, Mobile, Secure browser OO; - Future of Java- JVM Languages, Java EE, Spring, OSGi, Virtualization & Cloud, GC; - .NET State of the Art - Azure, Rx Async Programming, Code Contracts, Reflection; - iOS4 and Android - Advanced iOS4 and Android stuff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 11 ??????? 2011 ?. 11:04 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 08:39:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 09:39:01 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D554A05.6000002@colbyconsulting.com> Borg, I have the database restored and available. If you were to attach to the Hamachi network that you received the invite to join, you would see the SQL Server database at 5.203.167.79. If you were to use the Access Fe that you sent to me, and edit the DSN to use that IP as the server name, you would be connecting directly into the server on my VM. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From accessd at shaw.ca Fri Feb 11 08:57:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 06:57:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav: In my type of business my clients are not necessarily Microsoft...in fact the largest clients are totally Linux/Unix based and their web systems and BE are build with PHP/Java, Oracle etc. I have my feet firmly in both worlds.? Many require mixed support with MS desktops and Linux/Unix Servers. In addition, clients are moving away from desktop?dependency?and are starting to request all web-based solutions. OTOH that does not mean I will not always be required to support MS products, it is just that they are far from the entire world in computing. Having limited time I have to guess at which products have staying power, work on the widest range of platforms, support who's paying the bills and devote?attention?to their application requirements first and foremost. ? Jim ?? ----- Original Message ----- From: Gustav Brock Date: Thursday, February 10, 2011 11:54 pm Subject: Re: [AccessD] From a reader To: accessd at databaseadvisors.com > Hi Shamil and Jim > > Of course, as a developer, you have to be curious and look > around searching to keep up and be familiar with the trends ... > but aren't you two constantly beating yourself by fiddling with > semi-boiled frameworks and techniques? For my part, just trying > to get up to speed with Visual Studio 2010 and Silverlight and > EF and (still) some Access and ... can keep me more than busy. > > /gustav > > > >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> > Hi Jim -- > > Thank you for your reply. > > AFAIK MS is one of the leaders in this area: WCF Data Services > (OData - > http://msdn.microsoft.com/en-us/data/bb931106) naturally support > RESTFul web > service concept and WCF Data Services can implement full CRUD > set of > operations for a given entity datamodel/database using ... yes, > ADO.NETEntity Framework (http://msdn.microsoft.com/en- > us/library/bb399572.aspx) - > all that stuff can be generated within VS2010 AFAIU... > > And as I have just found there already exists "New JavaScript > library for > OData and beyond" > (http://www.odata.org/blog/2011/2/9/new-javascript-library-for- > odata-and-bey > ond). > > The part which is missing is HTML forms generator for the HTML > forms to be > used together with jQuery and RESTFul Data Services (for the > same entity > datamodel/database) - I guess IronSpeed > (http://www.ironspeed.com/) will > make something like that soon... > > Then all the raw stuff can be generated for custom applications? > And here > you are with your advanced skills to customize raw stuff > produced by code > generators?... > > As for security - HTTPS doesn't solve this issue? I mean if a > user gets > authenticated by entering their user name/password (or use > LiveID or ...) to > setup an HTTPS session between browser and web server what could > malicioususers do here? Why VPN is considered more secure there? > > > Thank you. > > -- > Shamil > ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: 10 ??????? 2011 ?. 23:44 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > Hi Shamil: > > That is a series of good question. I am basically unfamiliar > with the > RESTful concept as, interesting enough; it only caught my eye a > couple of > days ago. There are a number of people working a GNU JQuery > RESTful API but > there are not finished products out there yet, that I am aware > of. For > example: > > http://mike-hostetler.com/representational-state-transfer-rest- > client-testin > g > > JAVA and PHP programmers seem to be a little ahead in this right > now. All > the major site have FEs build: Facebook, Amazon, EBay etc. > > As for a full database interface with all the bells and > whistles, a complete > CRUD type thing; again no complete interface. I have my own > ASP.Net/JQueryhybrids. Here is one of my sources for the initial > base code but I have > removed much of the BE direct processing and replaced that > connection with > JQuery AJAX calls: > > http://www.dotnetfunda.com/articles/article970-aspnet-gridview-- > jquery-tips- > and-tricks--part-1-.aspx > > There are many other ones out there again using PHP/JAVA. For example: > (watch the wrap..) > > http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud- > interface/?u > tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro > DevTips+-+dev+related+notes+and+tutorials) > ...and... > http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter- > iii/ > > Connecting to the database can always be a danger as if some > outside and > unauthorized individual gets access to your UI they may find a > way to hack > in. To that end most of my clients run their sites as only > Intranet or > through their company VPNs. Recently, I was shown an excellent > open source > GNU product at: http://openvpn.net/ (You do have to pay for > multiple remote > connections as it is needed to cover the company's hardware > costs but it is > really cheap.) > > This functions similar to Hamachi/Logmein and allows you as the > senior tech > to encompass a fixed set of users and offices anywhere in the world. > > I am currently working on a JQuery POS (header/detail/footer), > in my spare > time but it is turning out to be a huge time-consuming project, > with many > re-writes, as I continue to learn more, with hundreds > (thousands?) of lines > of code...all the heavy lifting, like the data management will > be done at > the back end. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Feb 11 10:11:51 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 11 Feb 2011 08:11:51 -0800 Subject: [AccessD] CDO Message-ID: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jimdettman at verizon.net Fri Feb 11 10:33:33 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 11 Feb 2011 11:33:33 -0500 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <25B63CE25E444FB3B740A456DF3A93AC@XPS> Rocky, CDO is the "middle of the road" approach. It still relies on software being installed on the machine, but gives you support for things outside of simply sending mail. I don't believe it's dead yet. If all your doing is sending mail with attachments, then the simplest thing I've ever found is BLAT.EXE. It's a command line utility for sending mail directly via a SMTP server. You simply need the server address and possibly a login. Outside of that, that's it. However it also gives you the least amount of control over the process (you need to shell() to use it). The only thing you can run afoul of is a firewall that blocks the program the first time you use it (and the user needs to click allow or block). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 11 12:30:11 2011 From: john at winhaven.net (John Bartow) Date: Fri, 11 Feb 2011 12:30:11 -0600 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <001201cbca19$b8506220$28f12660$@winhaven.net> It's not dead yet but from all I've read it's going to be. They haven't updated it for 2007/2010. I'm doing a bunch of stuff with Outlook directly now and will send you some stuff when I get it finished. What I like to do is check if Outlook is being used and if so I use that otherwise I use DoCmd.SendObject (which has somewhat basic capabilities) Outlook Redemption has been updated for 2010. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 12:58:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 13:58:49 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: <4D5586E9.8090409@colbyconsulting.com> It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > But that opens a persistent connection *for that fe* but not for the FE that is the application. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 12:25 PM, Heenan, Lambert wrote: >> I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. >> >> That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 11:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> That sounds more elegant than the code I found. >> Would you mind sharing the code? >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 10, 2011 10:14 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. >> >> I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. >> >> I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. >> >> Voila, persistent connections. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/10/2011 10:01 AM, jm.hwsn wrote: >>> Good points Jim, thanks. >>> I have turned off the sub-datasheets... I usually do that regardless >>> of the version. >>> I don't have any control over the servers, but I can ask them to make >>> some changes. >>> I never thought about the virus scan... I'll check into that. >>> Thanks, >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Dettman >>> Sent: Thursday, February 10, 2011 8:52 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] Access 2007 FE/BE speed >>> >>> Jim, >>> >>> The exclusive point is in regards to the FE in a split design, >>> which each user should have their own copy of, so opening exclusive >>> would be appropriate. >>> >>> Some other items: >>> >>> 1. Make sure the new ACE DB's are not being virus scanned. Since the >>> extension has changed, anti-virus sometimes kicks in. >>> >>> 2. Turn off the sub datasheets feature on all tables (FE and BE). >>> Not specific to A2007, but often overlooked. >>> >>> 3. Turning off OPLOCKs on the server, but that impacts all apps and >>> again, this applies to all versions (not A2007 specifically). >>> >>> 4. Often, A2007 is used in conjunction with a new server like 2008. >>> It appears that the SMB 2.0 specification is giving some apps >>> headaches, although this is not fully clear yet. Some report the app >>> works better when the server is forced to use SMB 1.0 protocol, >>> others 2.0, so your mileage may vary. >>> >>> Jim. >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >>> Sent: Thursday, February 10, 2011 08:58 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] Access 2007 FE/BE speed >>> >>> Access 2007 is inherently slow on a network configured using FE/BE >> scenario. >>> >>> I have scoured several websites and spent a lot of hours, to see if >>> A2007 can be modified to speed it up. >>> >>> Several "tips" were obscure on the sites and might only be mentioned >>> in passing. >>> >>> Here is what I've found: >>> >>> 1) ensure there is a persistent connection to the BE. Code can be >>> found on the FMS, Inc. site. >>> >>> 2) Ensure the BE location is in a "Trusted Location" in the FE. >>> >>> 3) Change record-level locking. I set the following: >>> >>> OLE/DDE timeout: 30 >>> >>> Refresh interval: 30 >>> >>> Number of update retries: 2 >>> >>> ODBC refresh interval: 120 >>> >>> Update retry interval: 250 >>> >>> 4) Turn off unused user interface features such as: Show animations >>> and Show Smart Tags on Datasheets >>> >>> >>> >>> In my somewhat limited test, my FE runs almost as fast as an >>> integrated file. I know it's running little slower, but I can barely >>> see the difference >>> - I can live with it. The biggest improvement came when I did 2 and >>> 3 above. I still haven't done or tested number 1 above. >>> >>> >>> >>> Other items that are recommended are: >>> >>> change the default open mode: Exclusive >>> >>> default record locking: Edited Record. >>> >>> However, I don't think these would work with a shared BE. I don't >>> think there is a way to make these different for two separate files. >>> >>> >>> >>> Do you have any other ideas or words of wisdom or comments? >>> >>> Thanks, >>> >>> Jim >>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Feb 11 13:37:15 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 11 Feb 2011 13:37:15 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at chartisinsurance.com Fri Feb 11 13:48:16 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 11 Feb 2011 14:48:16 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D5586E9.8090409@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Ah. I see. Another example of how email is amongst the poorest forms of communication homo sapiens has come up with so far. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, February 11, 2011 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > From steve at datamanagementsolutions.biz Fri Feb 11 13:53:23 2011 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sat, 12 Feb 2011 08:53:23 +1300 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA From df.waters at comcast.net Fri Feb 11 15:43:10 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 11 Feb 2011 15:43:10 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <071A30A392964280AF4AC02A6FA9F97B@DanWaters> Hi Rocky, Another good choice is Outlook Security Evader from www.everythingaccess.com. It's $79 for a single developer. It consists of 4 classes that are added to your access file - no external .dll. I've two experiences with customer support - both resulted in an update in less than a day. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 11, 2011 1:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 11 18:07:58 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:07:58 +1000 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Ambiguous question :-) Does "which would need to be registered" relate to "dlls or activex controls" or just to "activex controls" I generally go with Blat. A proper native code DLL which doesn't require registering. -- Stuart On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without > using dlls or activex controls which would need to be registered? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:09:13 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:09:13 +1000 Subject: [AccessD] CDO In-Reply-To: <25B63CE25E444FB3B740A456DF3A93AC@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> Message-ID: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). From stuart at lexacorp.com.pg Fri Feb 11 18:11:21 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:11:21 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > From accessd at shaw.ca Fri Feb 11 18:15:58 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:15:58 -0800 Subject: [AccessD] CDO In-Reply-To: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: I will back you up on that one. BLAT is so simple that if it does not work the last place you look is at BLAT. Start checking to see if your ports are open or whether you can actually see the web. It resided all in one directory, runs of a client or server without issues. The only trouble you may have is working at the CMD prompt and for some of you new boys it may be a real problem. ;-) Jim ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:08 pm Subject: Re: [AccessD] CDO To: Access Developers discussion and problem solving > Ambiguous question :-) > > Does "which would need to be registered" relate to "dlls or > activex controls" or just to > "activex controls" > > I generally? go with Blat.? A proper native code DLL > which doesn't require registering. > > -- > Stuart > > On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > > > Is CDO dead or alive?? Use it or lose it?? > > > > What's the best way to automatically send emails from an app without > > using dlls or activex controls which would need to be > registered?? > > > > MTIA > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > Skype: rocky.smolin > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 11 18:19:44 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:19:44 -0800 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Hi Brad: If you ever have a problem with BLAT just ask Stuart for a sample piece of code or in a real pinch ask me. ;-) Jim ? ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:11 pm Subject: Re: [AccessD] CDO - RE: What's the best way to automatically send emails from an app To: Access Developers discussion and problem solving > What "install"???? Just stick the EXE or DLL > anywhere appropriate and call it.? There is no > need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a > reply.? I thought > > that it was worth a little money to have good product support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:22:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:22:56 +1000 Subject: [AccessD] Sparkline like graphs in Acces Reports In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <4D55D2E0.28767.52276E@stuart.lexacorp.com.pg> A neat demo database with simple code for adding mini-graphs to each row of a report. http://blogs.office.com/b/microsoft-access/archive/2011/02/10/power-tip-add-sparkline-like- graphs-to-access-reports.aspx or http://goo.gl/Wd8lE -- Stuart From accessd at shaw.ca Fri Feb 11 18:34:52 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:34:52 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? From jwcolby at colbyconsulting.com Fri Feb 11 20:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 21:21:46 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <4D55EEBA.9090206@colbyconsulting.com> Unfortunately the tied up my billions in Egyptian gas shares while they were at it. John W. Colby www.ColbyConsulting.com On 2/11/2011 7:34 PM, Jim Lawrence wrote: > Switzerland has frozen all Hosni Mubarak's accounts as of today. Actually they frozen all of the Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. > > He was little more than history as soon as that was done. > > Jim From pcs.accessd at gmail.com Sat Feb 12 00:09:15 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 12 Feb 2011 16:09:15 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: John, sending this a second time, as the first email was above the 20Kb limit ?!!? If keeping this conversation on Accessd, please continue under a new Subject Heading Borge > Alright ... done that ... assuming using SQL Server Authentication, so I > need user name and pword for your connection / ODBC systems DSN .... I tried > with same user name and password as I had kept in my configuration .... > didn't work .... > > I can ping your network... > I can chat to your network... > I can't connect to your sql server .... > Back to the drawing board... > > Regards > Borge > > > > On Sat, Feb 12, 2011 at 12:39 AM, jwcolby wrote: > >> Borg, >> >> I have the database restored and available. If you were to attach to the >> Hamachi network that you received the invite to join, you would see the SQL >> Server database at 5.203.167.79. >> >> If you were to use the Access Fe that you sent to me, and edit the DSN to >> use that IP as the server name, you would be connecting directly into the >> server on my VM. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> From accessd at shaw.ca Sat Feb 12 00:36:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 22:36:02 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <4D55EEBA.9090206@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: I sorry to hear to hear that John. Jim ? ----- Original Message ----- From: jwcolby Date: Friday, February 11, 2011 6:22 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > Unfortunately the tied up my billions in Egyptian gas shares > while they were at it. > > John W. Colby > www.ColbyConsulting.com > > On 2/11/2011 7:34 PM, Jim Lawrence wrote: > >Switzerland has frozen all Hosni Mubarak's accounts as of > today. Actually they frozen all of the Egyptian accounts and > they are in excess of 3 billion dollars of the government's or > people's money. It always seems that these dictators keep huge > off-shore stashes of cash in case they ever have to make a run > for it. > > > >He was little more than history as soon as that was done. > > > >Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Feb 12 04:39:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:39:26 -0500 Subject: [AccessD] Hamachi progress In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D56635E.3010407@colbyconsulting.com> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... Sounds like progress though. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From jwcolby at colbyconsulting.com Sat Feb 12 04:40:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:40:22 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: <4D566396.3090001@colbyconsulting.com> That's what happens when ya hobnob with dictators. Luckily I don't need the money right now. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:36 AM, Jim Lawrence wrote: > I sorry to hear to hear that John. > > Jim > > > > ----- Original Message ----- > From: jwcolby > Date: Friday, February 11, 2011 6:22 pm > Subject: Re: [AccessD] Frozen accounts > To: Access Developers discussion and problem solving > >> Unfortunately the tied up my billions in Egyptian gas shares >> while they were at it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/11/2011 7:34 PM, Jim Lawrence wrote: >>> Switzerland has frozen all Hosni Mubarak's accounts as of >> today. Actually they frozen all of the Egyptian accounts and >> they are in excess of 3 billion dollars of the government's or >> people's money. It always seems that these dictators keep huge >> off-shore stashes of cash in case they ever have to make a run >> for it. >>> >>> He was little more than history as soon as that was done. >>> >>> Jim >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From kost36 at otenet.gr Sat Feb 12 08:30:17 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 12 Feb 2011 16:30:17 +0200 Subject: [AccessD] Passing query "Between" date values into a form Message-ID: <0421405D459E470B8565306DFAE9289F@kost36> Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas From ab-mi at post3.tele.dk Sat Feb 12 13:14:58 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 12 Feb 2011 20:14:58 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0421405D459E470B8565306DFAE9289F@kost36> References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Feb 12 14:27:21 2011 From: john at winhaven.net (John Bartow) Date: Sat, 12 Feb 2011 14:27:21 -0600 Subject: [AccessD] CDO In-Reply-To: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Message-ID: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> One of the issues I've run into using third party email apps/activex/dll in one Microsoft (government) network is that the security staff install spam blockers and such that do not allow anything to access the smtp server. They basically broke my application that had been installed there for 10 years and refused to adapt their security to allow it to work. Ignorance makes for paranoia and there's no getting around ignorant security staff. They are like gods to the unwitting administrative staff that have to make the final decisions. So I was basically forced into recoding an old iron horse app to utilize Outlook/Exchange and the user just has to click the irritating "allow for one hour" prompt when the first email is sent. It is no big deal to them just an item that needs to be explained. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, February 11, 2011 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Sat Feb 12 17:40:52 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Sat, 12 Feb 2011 17:40:52 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Stuart, I probably should have said "getting Blat to work with Access" instead of just the word "install". This work was done almost a year ago and I don't remember all of the details (plus I have some brain damage from 32 years of COBOL, CICS, and DB2 :-) Anyway, as I recall, I spent several hours trying to get Blat to work with Access but ran into problems. I then did some research of other products and ended up buying Febooti. The two things that first sold me on Febooti were their very good online documentation and the fact that I was able to get it to work with Access very quickly. I may take another look at Blat for future projects. I have seen it mentioned by many people so I might experiment with it again, down the road. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Fri 2/11/2011 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- 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 jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <7E7BA0B951514023A3D06606F6C0C91F@XPS> Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO In-Reply-To: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> Message-ID: <10132A1CB2B04D1892BBF1255F4A3620@XPS> Stuart, Yes, but the DLL (unless something has changed) is no where near as up to date as the command line EXE or as feature rich. But I still should have mentioned it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:37:29 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:37:29 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <25F48DD1AA344148944DCC21BA26B24D@XPS> um...should this not be on the OT list? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 11, 2011 07:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Frozen accounts Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 13 06:51:07 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:51:07 +1000 Subject: [AccessD] CDO In-Reply-To: <10132A1CB2B04D1892BBF1255F4A3620@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> Message-ID: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 13 06:52:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:52:56 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg>, <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <4D57D428.20786.598D18E@stuart.lexacorp.com.pg> That was always an option, not a requirement. All it did was store some standard switches such as server name in the Windows Registry so that you didn't need to include them in the command line each time. -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > I think he's talking about the little "install" that must be done > with > Blat itself the first time you use it. If memory serves though, I > believe their was a change with that where it was no longer required. > Been 4 or 5 years since I last used BLAT. > > I stick to vbSendMail now. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO - > RE: What's the best way to automatically sendemails from an app > > What "install"? Just stick the EXE or DLL anywhere appropriate and > call it. There is no need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a reply. I > > thought that it was worth a little money to have good product > > support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Feb 13 08:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 06:37:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <25F48DD1AA344148944DCC21BA26B24D@XPS> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: Yes, it should have. Power outage fried my email server and I was still getting use to the web interface, :-) Jim ----- Original Message ----- From: Jim Dettman Date: Sunday, February 13, 2011 3:37 am Subject: Re: [AccessD] Frozen accounts To: 'Access Developers discussion and problem solving' > > ? um...should this not be on the OT list? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: Friday, February 11, 2011 07:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Frozen accounts > > Switzerland has frozen all?Hosni Mubarak's accounts as of today. > Actuallythey frozen all of the?Egyptian accounts and they are in > excess of 3 billion > dollars of the government's or people's money. It always seems > that these > dictators keep huge off-shore stashes of cash in case they ever > have to make > a run for it. > > He was little more than history as soon as that was done. > > 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 df.waters at comcast.net Sun Feb 13 09:38:02 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 09:38:02 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automatically sendemails from an app) In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:16:48 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:16:48 -0500 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:18:39 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:18:39 -0500 Subject: [AccessD] CDO In-Reply-To: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> Message-ID: <906488E01DC842EABF7450742C2F4F50@XPS> Stuart, <> Very nice to know, thanks. The DLL is native correct? Doesn't need to be registered? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 13:00:34 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 13:00:34 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg><7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <3B7E0BE15AA74052B488AFA84DD7F51B@DanWaters> No problem - saves me all kinds of grief! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Sun Feb 13 14:02:04 2011 From: delam at zyterra.com (Debbie) Date: Sun, 13 Feb 2011 14:02:04 -0600 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> It did send on Friday after all. Debbie Sent from my iPhone On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > Yes, it should have. Power outage fried my email server and I was > still getting use to the web interface, :-) > > Jim > > > > ----- Original Message ----- > From: Jim Dettman > Date: Sunday, February 13, 2011 3:37 am > Subject: Re: [AccessD] Frozen accounts > To: 'Access Developers discussion and problem solving' > > >> >> um...should this not be on the OT list? >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> LawrenceSent: Friday, February 11, 2011 07:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Frozen accounts >> >> Switzerland has frozen all Hosni Mubarak's accounts as of today. >> Actuallythey frozen all of the Egyptian accounts and they are in >> excess of 3 billion >> dollars of the government's or people's money. It always seems >> that these >> dictators keep huge off-shore stashes of cash in case they ever >> have to make >> a run for it. >> >> He was little more than history as soon as that was done. >> >> 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 accessd at shaw.ca Sun Feb 13 16:06:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 14:06:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> Message-ID: Thank you Debbie ;-) Jim ? ----- Original Message ----- From: Debbie Date: Sunday, February 13, 2011 12:02 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > It did send on Friday after all. > > Debbie > > Sent from my iPhone > > On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > > >Yes, it should have. Power outage fried my email server and I > was still getting use to the web interface, :-) > > > >Jim > > > > > > > >----- Original Message ----- > >From: Jim Dettman > >Date: Sunday, February 13, 2011 3:37 am > >Subject: Re: [AccessD] Frozen accounts > >To: 'Access Developers discussion and problem solving' > > > >> > >>? um...should this not be on the OT list? > >> > >>Jim. > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >>LawrenceSent: Friday, February 11, 2011 07:35 PM > >>To: Access Developers discussion and problem solving > >>Subject: [AccessD] Frozen accounts > >> > >>Switzerland has frozen all Hosni Mubarak's accounts as of today. > >>Actuallythey frozen all of the Egyptian accounts and they are in > >>excess of 3 billion > >>dollars of the government's or people's money. It always seems > >>that these > >>dictators keep huge off-shore stashes of cash in case they ever > >>have to make > >>a run for it. > >> > >>He was little more than history as soon as that was done. > >> > >>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 stuart at lexacorp.com.pg Sun Feb 13 16:57:53 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 14 Feb 2011 08:57:53 +1000 Subject: [AccessD] CDO In-Reply-To: <906488E01DC842EABF7450742C2F4F50@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> Message-ID: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Sun Feb 13 17:19:17 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:19:17 +0100 Subject: [AccessD] List politeness - responding to answers Message-ID: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger From ab-mi at post3.tele.dk Sun Feb 13 17:21:59 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:21:59 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: <0608D47FEF8E463095A0A9281128D242@abpc> Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Sun Feb 13 17:27:14 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 14 Feb 2011 10:27:14 +1100 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> References: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <201102132328.p1DNSUE5007261@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ agreed, and there is value for all other list members as then we know if the provided solution was suitable or not. and it is also good manners. regards Darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond [ab-mi at post3.tele.dk] Sent: Monday, 14 February 2011 10:19 AM To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rockysmolin at bchacc.com Sun Feb 13 17:45:13 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 15:45:13 -0800 Subject: [AccessD] CDO In-Reply-To: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 20:11:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 20:11:41 -0600 Subject: [AccessD] CDO In-Reply-To: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Message-ID: <7B20395DF450419295B8AB132547D842@DanWaters> Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 13 22:03:23 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 20:03:23 -0800 Subject: [AccessD] CDO In-Reply-To: <7B20395DF450419295B8AB132547D842@DanWaters> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg><97730524ECCC4F12B97A52F009DC6CF6@HAL9005> <7B20395DF450419295B8AB132547D842@DanWaters> Message-ID: <3FAC692F0DA243D5B773D32C140A525C@HAL9005> Thanks. Will forward and get and answer. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 6:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 14 01:18:41 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 14 Feb 2011 07:18:41 -0000 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <393E113EBEE44CD0AA0C36FF5C0A5047@MINSTER> Fair point Asger. I hope everyone takes heed. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: 13 February 2011 23:19 To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I've seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn't getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Feb 14 01:27:23 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 14 Feb 2011 09:27:23 +0200 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0608D47FEF8E463095A0A9281128D242@abpc> References: <0421405D459E470B8565306DFAE9289F@kost36> <0608D47FEF8E463095A0A9281128D242@abpc> Message-ID: <80B8AC08C4BC48ED980667CB0BA6AC4F@kost36> Yes Asger it works perfect thank's a lot /kostas -----Original Message----- From: Asger Blond Sent: Monday, February 14, 2011 1:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Passing query "Between" date values into a form Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 5871 (20110213) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com From Gustav at cactus.dk Mon Feb 14 05:07:06 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 12:07:06 +0100 Subject: [AccessD] Cleaning data by an Open Source tool Message-ID: Hi all Sometimes it has been discussed how to clean data. Here is an Open Source offer with a reputation of high quality: DataCleaner 2.0 http://datacleaner.eobjects.org/newsitem/datacleaner-2.0-released I haven't used it myself so I cannot give any further advice. /gustav From jm.hwsn at gmail.com Mon Feb 14 10:18:59 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 10:18:59 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem Message-ID: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim From Gustav at cactus.dk Mon Feb 14 10:31:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 17:31:48 +0100 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Message-ID: Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav From rockysmolin at bchacc.com Mon Feb 14 10:54:59 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 08:54:59 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <440D6D582182440E9ADD781199DD31B0@HAL9005> For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 11:23:34 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 11:23:34 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <4d596519.0120970a.351c.7690@mx.google.com> Thanks, Rocky. I'll try it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jengross at gte.net Mon Feb 14 11:58:29 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 09:58:29 -0800 Subject: [AccessD] Force Closing the FE Message-ID: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross From charlotte.foust at gmail.com Mon Feb 14 12:14:09 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 10:14:09 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in an > attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, delete or > modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale (1-10 or > 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as well as > change the text of the question. > > We are currently going through usability testing. ?The entire "class" is > around 500 students. ?The class has a 3 digit identifier that is used in the > questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The question > form has a sub form that shows an example of the question as it would look > on the questionnaire. ?When a search is done using a list box for combo box > the sub form changes to reflect the text and ?type of question. ?When the > question type changes the sub form updates the sample. For example a > question might change from a fill-in question to combo box self-lookup > question OR a question might change from a 4 pt multiple choice to a 4 pt > Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in some > questions. ?The researcher puts this identifier within the question to > personalize it for the students. ?I have a button on the question form that > is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need > to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after the > "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while the > dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys to > ensure that "Match" is set to "Any Part of Field" and that the cursor goes > to "Find What" field. ?That works, however, occasionally the Num Lock key is > turned off. ?I understand that I could use: Application.SetOption "Default > Find/Replace Behavior",1 - but that would set it for all users. ?Is there > some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Mon Feb 14 12:18:04 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:18:04 -0600 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <4d5971de.8772ec0a.699a.295a@mx.google.com> I did this once! The user's were not happy. Some opened the database and kept it open all day. Sometimes it would be idle for hours. Instead, what I did was to force close the FE's whenever I needed to do maintenance. I placed a small text file in the directory where the BE resided. To force everyone out, I changed the extension from txt to something else. Code in the frontend would periodically look for the file and if the extension was changed the user would get a pop-up form indicating the database would shut down in 1 minute for maintenance. I found the code and method here: http://support.microsoft.com/kb/304408 It worked for me. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 11:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 14 12:23:25 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 10:23:25 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 12:25:39 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:25:39 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> I do not use acCmdFindNext at all. But yes, the user can modify any instance of the value being searched. When the button is clicked, the Find Dialog appears. The user has the option to search for any text they need to find. They also have the option to do a global change (e.g. 68W to 92C) within all the question texts. Anytime the "Find Next" button in the Find Dialog box is pressed the sub form does not update. The user can use the dialog box for anything within the question text. Thanks, Charlotte Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. ?The entire "class" > is around 500 students. ?The class has a 3 digit identifier that is > used in the questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. ?When a search is done using a > list box for combo box the sub form changes to reflect the text and ? > type of question. ?When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. ?The researcher puts this identifier within the > question to personalize it for the students. ?I have a button on the > question form that is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will > need to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. ?That works, however, occasionally > the Num Lock key is turned off. ?I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. ?Is there some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > 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 jengross at gte.net Mon Feb 14 12:35:13 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 10:35:13 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> Message-ID: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 13:22:09 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 19:22:09 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:08:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:08:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:20:04 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:20:04 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:28:19 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:28:19 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Message-ID: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:44:02 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:44:02 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:52:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:52:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Message-ID: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 16:09:58 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 17:09:58 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <000301cbcc93$ece41320$c6ac3960$@com> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 16:10:22 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 22:10:22 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From stuart at lexacorp.com.pg Mon Feb 14 16:21:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 08:21:23 +1000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106>, <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > From jengross at gte.net Mon Feb 14 16:25:21 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:25:21 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> Message-ID: <004701cbcc96$1253e5c0$1201a8c0@Schroeder> Would you be willing to share the database log table and code? If so, please send to jennifer at yourdatabasics.com. I know I have stuff that I've been using since the mid-90's that I can't do without and use in every database as well. I don't even think about their existence or how they work - they just do what I need them to do. Thanks again, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 14 16:26:43 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:26:43 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <004801cbcc96$42d4bcb0$1201a8c0@Schroeder> Great idea Stuart. I am going to work this into the code that Bruce sent. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Feb 14 16:40:44 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 23:40:44 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jengross at gte.net Mon Feb 14 16:48:45 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:48:45 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: Message-ID: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 14 17:20:12 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 14 Feb 2011 18:20:12 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <125E4D47A358498F9B5FF73038C34406@XPS> FYI, the code Rocky has is from here: http://support.microsoft.com/?id=210297 also, there may be interest in passive shutdown which is a middle of the road approach between doing nothing and forcing users out (it prevents new users from connecting to the DB but doesn't kick existing users out): http://msdn.microsoft.com/en-us/library/aa164890(v=office.10).aspx You may want to combine that with a idle timeout and/or forced exit. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 02:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE <> From charlotte.foust at gmail.com Mon Feb 14 17:53:47 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 15:53:47 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the option > to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the sub > form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and allow > the researcher to modify that instance? ?Then use acCmdFindNext and it > doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students in >> an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form updates >> the sample. For example a question might change from a fill-in >> question to combo box self-lookup question OR a question might change >> from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) while >> the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use SendKeys >> to ensure that "Match" is set to "Any Part of Field" and that the >> cursor goes to "Find What" field. ?That works, however, occasionally >> the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 darren at activebilling.com.au Mon Feb 14 17:55:59 2011 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 15 Feb 2011 10:55:59 +1100 Subject: [AccessD] Force Closing the FE Message-ID: <014401cbcca2$bb920bb0$32b62310$@activebilling.com.au> Hi Jennifer Further to what has been said here - I also keep a track of what users have logged in and from what machine and when It has allowed me to prove or dis-prove a lot of things said by clients I also capture the logout/logoff times too and am able to do a simple average time logged in once I have these details Good for reports and again - for proving or dis-proving some claims If for whatever reason there was an ungraceful shutdown of the app or the local machine the log off times and machines are not recorded So this then allows me to see all the orphaned logons without a corresponding logoff. This info is useful as well My approach to this 'Everybody Out!' issue was to give an admin person a special admin form/s. This admin form allowed them to type messages (as well as 'canned' messages) and set statuses that the app responded to accordingly I had a routine that periodically checked this special Massages table in the BE and then behave accordingly. E.g. the Admin person could send a generic message to all users and the users would see this message. They could see it as a message box that required a click from the user, or as Stuart mentioned, in a timed/modal form It depended on the 'type' of message the admin person wanted to send The admin person could also set up a timed shut down - Users were alerted to that and they saw on screen countdowns for say 5mins down to closing time Or the admin person could set a forced immediate shutdown as well - again depending on the need The code had many messaged it could react to - I had about 6 or 7 that were code driven - but these could be categorised and made into a growing table driven list A bit like a Message Bus Of course for your needs it sounds like you need to get the time from a server and if a set time (Say 7:00pm) has passed then shut the front end. That's not too tricky either - but of course this mucks up the logon logoff times and average logged on times - but that's not a big deal if you aren't doing that already Lots of fun with these back end administrator screens See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, 15 February 2011 4:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 18:41:33 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 19:41:33 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: Message-ID: <000c01cbcca9$19f950e0$4debf2a0$@com> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djdros at derrickcorp.com Mon Feb 14 21:18:53 2011 From: djdros at derrickcorp.com (Dros, David J.) Date: Tue, 15 Feb 2011 06:18:53 +0300 Subject: [AccessD] Access 2003 on win server 2008 SLOW Message-ID: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Urgent help!! Has anyone encountered this? Acc 2003 FE/BE on brand new network. Clients running xp. Top of the line hardware etc. Cat 6 gig drops /nics etc. File transfer speed lightning fast. BE sitting on a brand new $25k nas running windows storage server 2008 64bit. Queries that write to the database take minutes vs seconds on old 10/100mb network of xp clients against single 10yr old sever 2003 fileserver. We are handcuffed in the middle of an overseas deployment. Any help or referals would be greatly appreciated. Thank you. David J Dros Derrick Corporation Sent from mobile device LEGAL & CONFIDENTIALITY NOTICE: This message, including any attachments, is intended for the addressee(s) only and contains confidential information. Access to the message by anyone else is unauthorized. If the reader of this message is not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any review, retransmission, disclosure, copying, or distribution of this message, or the taking of any action in reliance on its contents, by persons or entities other than the intended recipient is strictly prohibited. If you have received this email in error, we ask you to contact the sender immediately, delete this message from your computer system, and destroy all paper copies. From stuart at lexacorp.com.pg Mon Feb 14 21:27:08 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 13:27:08 +1000 Subject: [AccessD] Access 2003 on win server 2008 SLOW In-Reply-To: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Message-ID: <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Could it be something to do SMB2. I've just come across this in another context and was pointed to http://www.alaska-software.com/fixes/smb2/overview.shtm "With the advent of Windows Vista and Windows 7, Microsoft introduced a new network protocol (SMB2) to optimize file sharing for WAN and low bandwidth and high latency scenarios. To optimize these types of file access scenarios, Microsoft performed design decisions which lead to the inability of the new SMB2 protocol to handle cache coherency of file meta information such as the file size, the last update time and whether the file actually exists on the server ("file not found" status). As a result of this design decision made by Microsoft, the SMB2 protocol with its default configuration breaks any application relying on shared, concurrent data access. It is therefore absolutely required to reconfigure the SMB2 cache of the local workstation to not cache file meta information. Alaska Software provides to its customers and their end-users an MSI installation package which reconfigures the SMB2 cache accordingly. This MSI package needs to be executed on any Vista and Windows 7 workstation in a network to ensure that no data loss or data corruption occurs when accessing files concurrently." -- Stuart On 15 Feb 2011 at 6:18, Dros, David J. wrote: > Urgent help!! > Has anyone encountered this? Acc 2003 FE/BE on brand new network. > Clients running xp. Top of the line hardware etc. Cat 6 gig drops > /nics etc. File transfer speed lightning fast. BE sitting on a brand > new $25k nas running windows storage server 2008 64bit. Queries that > write to the database take minutes vs seconds on old 10/100mb network > of xp clients against single 10yr old sever 2003 fileserver. We are > handcuffed in the middle of an overseas deployment. Any help or > referals would be greatly appreciated. Thank you. > From rockysmolin at bchacc.com Mon Feb 14 23:58:40 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 21:58:40 -0800 Subject: [AccessD] Error 3709 The search key was not found in any record Message-ID: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Dear List: Client gets this error: "Error 3709 The search key was not found in any record" and the line of code triggering it is Me.Filter = strWhere. strWhere has some valid filtering criteria. It seems to be random or at least not replicatable. Big variable is that he's running an A2K3 mdb on A2K7 (boo!) and W7. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Gustav at cactus.dk Tue Feb 15 03:57:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Feb 2011 10:57:46 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert You are most likely right. I had to give up on this after some bad experiences with "lost" data - an issue that never had happened before of "no apparent reason" and never happened again after the automatic shutdown was removed. /gustav >>> robert at servicexp.com 15-02-2011 01:41 >>> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jackandpat.d at gmail.com Tue Feb 15 07:27:15 2011 From: jackandpat.d at gmail.com (jack drawbridge) Date: Tue, 15 Feb 2011 08:27:15 -0500 Subject: [AccessD] Error 3709 The search key was not found in any record In-Reply-To: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> References: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Message-ID: Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in any > record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is that > he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Tue Feb 15 08:09:28 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 08:09:28 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 robert at servicexp.com Tue Feb 15 08:46:45 2011 From: robert at servicexp.com (Robert) Date: Tue, 15 Feb 2011 09:46:45 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <002901cbcd1f$2c3a0030$84ae0090$@com> Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 09:05:37 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 09:05:37 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <002901cbcd1f$2c3a0030$84ae0090$@com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <002901cbcd1f$2c3a0030$84ae0090$@com> Message-ID: <4d5a9643.1f44960a.3b51.07f8@mx.google.com> Thanks, Robert. I tried that. I also tried to use a function (private and public) to no avail. The acCmdFind dialog box is the same one seen when Ctr+F is pressed. I would like to put something on the button "Find Next" but it seems that's not possible. I didn't want to create my own dialog box, but I might have to. Thanks for all the suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, February 15, 2011 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I >> could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 10:34:09 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 08:34:09 -0800 Subject: [AccessD] FW: Error 3709 The search key was not found in any record Message-ID: <2AB45B24A4304C9EBF470DF4AB232489@HAL9005> -----Original Message----- From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Tuesday, February 15, 2011 6:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error 3709 The search key was not found in any record Jack: There is a memo field in that bound form. I'll forward to the client. If we can figure out how to duplicate the problem reliably (it's seemingly random at the moment) then I could delete all of the data in the memo fields and see if that solves it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Tuesday, February 15, 2011 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3709 The search key was not found in any record Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in > any record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is > that he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 13:49:38 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 11:49:38 -0800 Subject: [AccessD] Convert To PDF Problem Message-ID: Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rusty.hammond at cpiqpc.com Tue Feb 15 13:55:05 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 15 Feb 2011 13:55:05 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Tue Feb 15 14:20:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 06:20:10 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Tue Feb 15 14:20:43 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 15 Feb 2011 14:20:43 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 14:26:05 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 14:26:05 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Message-ID: <4d5ae160.6a3fec0a.2e90.ffffb98a@mx.google.com> That's correct. Thanks for the clarification. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 15, 2011 2:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 14:33:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 12:33:12 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <63463EA44AC249B49075058DBAB40786@HAL9005> Same report. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Tuesday, February 15, 2011 11:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert To PDF Problem Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Feb 15 15:01:18 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 13:01:18 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <8E759E1C63BE4A9AA390D5B4FABE93C8@HAL9005> Dan: I changed Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) To Set db = CurrentDb Set rstQ = db.OpenRecordset("Select * FROM tblUser") Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) rstQ.Close Set rstQ = Nothing But to no avail. I do get the flash on the screen that says the snp is being created, then...nothing. It should create the PDF and then fall through to a message box that says "Rental Agreements exported." bit it doesn't. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 15, 2011 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert To PDF Problem Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Tue Feb 15 21:20:08 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 21:20:08 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: I sent someone a database with a compiled front end / back end last June. Now he has emailed me because the the forms and reports can be viewed in Design view. The file he sent back (with .mde extension) does not run the startup form, and it does allow me to open forms and reports in Design view. The modules are all gone however. This was an Access2000 database. I don't know what version of Access his co-workers were using (he's just the messenger), but I do know that the OS is Windows7. I had also heard from them last June that they were having trouble opening the file -- getting a message that Windows was blocking it. It sounds like they found something to handle the problem of the database being blocked by Windows 7 that ended up allowing design view? Does anyone know what they might have done? The person I'm dealing with doesn't seem to know. Thanks Carolyn Johnson St Louis, MO From stuart at lexacorp.com.pg Tue Feb 15 21:46:34 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:46:34 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> The only way that I can think of for that to happen is that someone has used a tool to recreate the forms and reports from the original MDE into another file which they have given the same name. That would explain the absence of any code modules. I seem to remember one of our list members creating such a thing a few years ago. Hang on a minute while I search my archives...... Yep, Shamil came up with concept back in 2002. Last reference on the list was: "Shamil Salakhetdinov" Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, Issue 23 Tue,16 Feb 2010 23:12:03 +0300 -- Stuart On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > I sent someone a database with a compiled front end / back end last > June. Now he has emailed me because the the forms and reports can be > viewed in Design view. > > The file he sent back (with .mde extension) does not run the startup > form, and it does allow me to open forms and reports in Design view. > The modules are all gone however. > > > This was an Access2000 database. I don't know what version of Access > his co-workers were using (he's just the messenger), but I do know > that the OS is Windows7. I had also heard from them last June that > they were having trouble opening the file -- getting a message that > Windows was blocking it. > > > It sounds like they found something to handle the problem of the > database being blocked by Windows 7 that ended up allowing design > view? Does anyone know what they might have done? The person I'm > dealing with doesn't seem to know. > > > > Thanks > Carolyn Johnson > St Louis, MO > -- > 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 Feb 15 21:55:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:55:02 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> Message-ID: <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Tue Feb 15 22:32:05 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 22:32:05 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Message-ID: <931C03D1C41D479D8A387793840B07A5@Dell> Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . And I still don't know what the issue is with it being blocked by Windows 7. None of this makes sense, although that may be asking for too much. Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Tuesday, February 15, 2011 9:55 PM Subject: Re: [AccessD] compiled .mde file allowing design view Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 16 05:11:21 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 16 Feb 2011 06:11:21 -0500 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <931C03D1C41D479D8A387793840B07A5@Dell> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> <931C03D1C41D479D8A387793840B07A5@Dell> Message-ID: <4D5BB0D9.7000902@colbyconsulting.com> In a true MDE the code is there, it is just in a PCode state, i.e. the source has been removed. John W. Colby www.ColbyConsulting.com On 2/15/2011 11:32 PM, Carolyn Johnson wrote: > Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . > > And I still don't know what the issue is with it being blocked by Windows 7. > > None of this makes sense, although that may be asking for too much. > > > Carolyn > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Tuesday, February 15, 2011 9:55 PM > Subject: Re: [AccessD] compiled .mde file allowing design view > > > Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of > the forms and reports in the MDE. > > -- > Stuart > > On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > > > The only way that I can think of for that to happen is that someone > > has used a tool to recreate the forms and reports from the original > > MDE into another file which they have given the same name. That would > > explain the absence of any code modules. > > > > I seem to remember one of our list members creating such a thing a few > > years ago. Hang on a minute while I search my archives...... > > > > Yep, Shamil came up with concept back in 2002. Last reference on the > > list was: > > > > "Shamil Salakhetdinov" > > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > > > > -- > > Stuart > > > > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > > > I sent someone a database with a compiled front end / back end last > > > June. Now he has emailed me because the the forms and reports can > > > be viewed in Design view. > > > > > > The file he sent back (with .mde extension) does not run the startup > > > form, and it does allow me to open forms and reports in Design view. > > > The modules are all gone however. > > > > > > > > > This was an Access2000 database. I don't know what version of > > > Access his co-workers were using (he's just the messenger), but I do > > > know that the OS is Windows7. I had also heard from them last June > > > that they were having trouble opening the file -- getting a message > > > that Windows was blocking it. > > > > > > > > > It sounds like they found something to handle the problem of the > > > database being blocked by Windows 7 that ended up allowing design > > > view? Does anyone know what they might have done? The person I'm > > > dealing with doesn't seem to know. > > > > > > > > > > > > Thanks > > > Carolyn Johnson > > > St Louis, MO > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 21:51:27 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 19:51:27 -0800 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) In-Reply-To: References: Message-ID: ...and here is another JavaScipt fast-loader that I have been playing with: http://labjs.com/ Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 22:05:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 20:05:02 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 16 22:39:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 20:39:47 -0800 Subject: [AccessD] FW: Convert To PDF Problem Message-ID: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Feb 16 23:00:17 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 00:00:17 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> Message-ID: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 17 00:58:31 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 22:58:31 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Message-ID: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 07:02:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 08:02:23 -0500 Subject: [AccessD] CDO In-Reply-To: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> Message-ID: <4D5D1C5F.3070304@colbyconsulting.com> in C# I am actually using a gmail account to send and receive email. John W. Colby www.ColbyConsulting.com On 2/12/2011 3:27 PM, John Bartow wrote: > One of the issues I've run into using third party email apps/activex/dll in > one Microsoft (government) network is that the security staff install spam > blockers and such that do not allow anything to access the smtp server. They > basically broke my application that had been installed there for 10 years > and refused to adapt their security to allow it to work. Ignorance makes for > paranoia and there's no getting around ignorant security staff. They are > like gods to the unwitting administrative staff that have to make the final > decisions. So I was basically forced into recoding an old iron horse app to > utilize Outlook/Exchange and the user just has to click the irritating > "allow for one hour" prompt when the first email is sent. It is no big deal > to them just an item that needs to be explained. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, February 11, 2011 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CDO > > Ricky, > > You might consider Total Access Email from FMS > http://www.fmsinc.com/MicrosoftAccess/Emails.asp > > For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but > then that doesn't meet your "avoid ActiveX" criteria. > > Regards > Steve > > -----Original Message----- > From: Rocky Smolin > Sent: Saturday, February 12, 2011 5:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] CDO > > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without using > dlls or activex controls which would need to be registered? > > MTIA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From michael at mattysconsulting.com Thu Feb 17 11:22:07 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 12:22:07 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, Yes, that's what I would've expected to find. I have made a program based on Leban's work also, seems like it should be an easy to find needle in the haystack. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Feb 17 14:09:38 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 17 Feb 2011 14:09:38 -0600 Subject: [AccessD] Using Access to Back-up Remote SQL-Server Tables - Looking for a better approach References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Message-ID: Background Small Firm Currently no Microsoft SQL-Server in house (Only Microsoft Access) Website Hosting is outsourced. Website orders are stored in SQL-Server at the hosting firm. We have reason to believe that adequate SQL-Server backups are not being done by the hosting firm. (We are in the process of finding a new website hosting firm.) I have a little Access application that pulls the data (with ODBC) from the 24 SQL-Server tables at the hosting firm and imports these tables into Access tables. This takes about 5 minutes to run. I view these tables as a "last resort" short-term backup. With this as background, here is my question... I am thinking about installing SQL-Server 2008 Express. How difficult would it be to import these 24 remote SQL-Server tables into a local copy of SQL-Server. This was easy to do with Access, but I am not familiar with SQL-Server utilities. I know that this is more of a SQL-Server question than an Access question. I just thought that many of you have a lot of experience with SQL-Server and could possibly point me in the right direction. Perhaps my current approach of using Access is good enough. Thanks, Brad From jengross at gte.net Thu Feb 17 14:52:58 2011 From: jengross at gte.net (Jennifer Gross) Date: Thu, 17 Feb 2011 12:52:58 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> Message-ID: <00ce01cbcee4$a9cb00f0$1201a8c0@Schroeder> Thanks for the caution Jim. The collective knowledge of this group always blows my mind. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 16, 2011 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 21:42:32 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 22:42:32 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D5DEAA8.2090501@colbyconsulting.com> Borge, I haven't forgotten you. I will create a username / password for you but I need to know more. What group to add you to, what rights to assign that group etc. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From pcs.accessd at gmail.com Fri Feb 18 06:24:13 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Fri, 18 Feb 2011 22:24:13 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D5DEAA8.2090501@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> <4D5DEAA8.2090501@colbyconsulting.com> Message-ID: John, Thanks for the update. No hurry... I am in Koh Samui for a wedding and will be back in Australia early next week. I guess the group and rights issues are being worked out by you, and not questions for me. Regards borge On Fri, Feb 18, 2011 at 1:42 PM, jwcolby wrote: > Borge, > > I haven't forgotten you. I will create a username / password for you but I > need to know more. What group to add you to, what rights to assign that > group etc. > > > John W. Colby > www.ColbyConsulting.com > > On 2/12/2011 1:09 AM, Borge Hansen wrote: > >> John, sending this a second time, as the first email was above the 20Kb >> limit ?!!? >> If keeping this conversation on Accessd, please continue under a new >> Subject >> Heading >> Borge >> >> >> >> Alright ... done that ... assuming using SQL Server Authentication, so I >>> need user name and pword for your connection / ODBC systems DSN .... I >>> tried >>> with same user name and password as I had kept in my configuration .... >>> didn't work .... >>> >>> I can ping your network... >>> I can chat to your network... >>> I can't connect to your sql server .... >>> Back to the drawing board... >>> >>> Regards >>> Borge >>> >>> >>> >>> On Sat, Feb 12, 2011 at 12:39 AM, jwcolby>> >wrote: >>> >>> Borg, >>>> >>>> I have the database restored and available. If you were to attach to >>>> the >>>> Hamachi network that you received the invite to join, you would see the >>>> SQL >>>> Server database at 5.203.167.79. >>>> >>>> If you were to use the Access Fe that you sent to me, and edit the DSN >>>> to >>>> use that IP as the server name, you would be connecting directly into >>>> the >>>> server on my VM. >>>> >>>> >>>> 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 Lambert.Heenan at chartisinsurance.com Fri Feb 18 09:07:13 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 18 Feb 2011 10:07:13 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 10:46:17 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 08:46:17 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Feb 18 12:19:14 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 18 Feb 2011 12:19:14 -0600 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <30D57E25E3164C6F80178CB681220BCC@DanWaters> Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 18 12:53:04 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Feb 2011 10:53:04 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 13:06:34 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 11:06:34 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Message-ID: <2E6999F5433E42AC8DD9B1F81816230B@HAL9005> Problem here is that the whole routine is encapsulated in a module which I call from the CBF. In the one form it works perfectly. In the other it fails unless I run it one time from the first form. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 18, 2011 10:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 18 19:49:54 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 17:49:54 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <30D57E25E3164C6F80178CB681220BCC@DanWaters> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: Dan: No soap. The code us in a module and is a Public Function. And works perfectly when it is called from the form where I first implemented it. But when I call it from the second form it doesn't work. However, if I call it from the first form, the call it from the second form then it DOES work in the second form. So the call in the first form is apparently creating some condition that the second form doesn't. But danged if I can spot it. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 18, 2011 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lawrence.robinr at gmail.com Sat Feb 19 04:03:35 2011 From: lawrence.robinr at gmail.com (Robin Lawrence) Date: Sat, 19 Feb 2011 10:03:35 -0000 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-solution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Sat Feb 19 08:13:18 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 19 Feb 2011 09:13:18 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <65F58CC636624923B89498173CAE7D35@DCYN3T81> Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 19 08:58:48 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 19 Feb 2011 06:58:48 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <65F58CC636624923B89498173CAE7D35@DCYN3T81> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com><440D6D582182440E9ADD781199DD31B0@HAL9005> <65F58CC636624923B89498173CAE7D35@DCYN3T81> Message-ID: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> I think so. But I tend to write more verbose code out of self defense because 6 months later it's much easier to figure out what I was trying to do. So my code reads: "If the user's preference is to have the num lock on and it's off then toggle the num lock off. Of the user's preference is to have the num lock on and it's off, then toggle the num lock on." A bit redundant, I know, but just easier for me. Old guy, you know.... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jwcolby at colbyconsulting.com Sat Feb 19 13:53:30 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 14:53:30 -0500 Subject: [AccessD] I'm getting nowhere Message-ID: <4D601FBA.5020302@colbyconsulting.com> I am getting nowhere on understanding SQL Server security. Microsoft provides us with SQL Server Express which implies that joe blow (me) is going to install / maintain it. I am not a SQL Server Admin and I cannot afford to spend the time to be one. Google is my friend. BOL is not. Except that Google is taking me to these places where I am expected to already know how this stuff works, and then wants to make me a *better* administrator. Which of course is useless because I am not an administrator at all. OTOH I am not stupid. If I could find something that started at the "This is SQL Server security" basics I could learn this stuff. Before anyone says "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it simply sucks for my level of expertise (my opinion of course). If that is your advice, simply stay out of this thread. Thanks! So... my needs: I need to set up several SQL Server databases for use by different, very small groups (5-20 people) of entirely unrelated people. What I mean by that is that each DB is for a different "company" if you will. I need to access these databases from C#. I understand the group / user paradigm. I would like to create groups and users. Specific groups can do specific things in the database, some can see data but not modify it. Some can add records in specific tables but not others. Some can run reports (view). I do *NOT* want to create windows level groups and users if I can avoid it. These are people that I do not necessarily know and I do not want to give them any rights at the machine level, and I prefer to not maintain such lists at the machine level. Unfortunately SQL Server does not seem to model Groups / users. I go into SQL Server and see a security tab. It has "logins". Is that a user? A specific ability to log in with a password? To what? The server itself? A specific database? Groups of databases? I see "roles" but these appear to be aimed at the server and none of these people are going to be doing anything at the server level. Can I safely ignore everything under the server security tab? I go to a database and I see a security tab. It has users and roles. Hmm... better (I would think). I would like to add users "under" the specific database that the user will access. So I try to add a new user but I do not see anywhere to require a password. Hmmm... I go into roles and I do not see any predefined role that looks like it would be useful to me in meeting my needs described above. If I look at "add new role" it asks for a password. The User / group model does nto assign passwords at the group level which implies that a role is not a group at the user / group paradigm. Is it just me, or is SQL Server security just... different? Am I correct in assuming that it doesn't implement a user / group paradigm? And more importantly, where can I go to get a plain, simple, English description of how this mess works? And please excuse the tone that results from my frustration. The only help documents that I have found (and I have extensive lists of bookmarked web pages) so far assume that I am an administrator. I am not, and cannot afford to become one. And yet MS pushes SQL Express as if I (non-admin) should be able to use this as a data store pool. Help! -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sat Feb 19 17:06:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 09:06:52 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, <65F58CC636624923B89498173CAE7D35@DCYN3T81>, <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> Message-ID: <4D604D0C.5787.1EB6CF22@stuart.lexacorp.com.pg> If I had to pick up your code from scratch and maintain it in the future: I actually find "If the user's Numlock preference doesn't match the current Numlock state, then toggle it" easier to follow :-). -- Stuart On 19 Feb 2011 at 6:58, Rocky Smolin wrote: > I think so. But I tend to write more verbose code out of self defense > because 6 months later it's much easier to figure out what I was > trying to do. > > So my code reads: > > "If the user's preference is to have the num lock on and it's off then > toggle the num lock off. Of the user's preference is to have the num > lock on and it's off, then toggle the num lock on." > > A bit redundant, I know, but just easier for me. Old guy, you > know.... > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob > Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > Hi Rocky > > This has nothing to do with solving your problem - sorry - but I just > had a question about part of your code ... > > Would this work the same? > > Private Sub NumLockChecker() > If Not (DLookup("NumLockPreference", "LocalOptions") = > IsNumLockOn) Then > ToggleNumLock End Sub > > Thanks > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > For #2 I use the following - except for the first module it's not my > code - I cribbed it from somewhere else. I store the user's > preference for num lock on or off in a local options table. > > > Private Sub NumLockChecker() > If DLookup("NumLockPreference", "LocalOptions") = True And > IsNumLockOn = > False Then ToggleNumLock > If DLookup("NumLockPreference", "LocalOptions") = False And > IsNumLockOn > = True Then ToggleNumLock End Sub > > Function IsNumLockOn() As Boolean > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > IsNumLockOn = keys(VK_NUMLOCK) > > End Function > > Sub ToggleNumLock() > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > > If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then > '=====Win95 > keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) > SetKeyboardState keys(0) > ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then > '=====WinNT 'Simulate Key Press > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, > 0 > 'Simulate Key Release > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ > Or KEYEVENTF_KEYUP, 0 > End If > > End Sub > > Where the Type statement is > > ' Declare Type for API call: > Private Type OSVERSIONINFO > dwOSVersionInfoSize As Long > dwMajorVersion As Long > dwMinorVersion As Long > dwBuildNumber As Long > dwPlatformId As Long > szCSDVersion As String * 128 ' Maintenance string for PSS > usage > End Type > > And the constants: > > ' Constant declarations: > Const VK_NUMLOCK = &H90 > Const VK_SCROLL = &H91 > Const VK_CAPITAL = &H14 > Const KEYEVENTF_EXTENDEDKEY = &H1 > Const KEYEVENTF_KEYUP = &H2 > Const VER_PLATFORM_WIN32_NT = 2 > Const VER_PLATFORM_WIN32_WINDOWS = 1 > > I think that's everything. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] Access 2007 - > acCmdFind problem > > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more > researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. The entire "class" > is around 500 students. The class has a 3 digit identifier that is > used in the questions. There are about 350 questions in the current > questionnaire. > > > > The researcher uses a Question form to modify the questions. The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. When a search is done using a > list box for combo box the sub form changes to reflect the text and > type of question. When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. The researcher puts this identifier within the > question to personalize it for the students. I have a button on the > question form that is used to search for questions with the 3 digit > class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 > digit class identifier will need to change periodically and this > allows the researcher to do a "replace all" after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function (update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. That works, however, occasionally > the Num Lock key is turned off. I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. Is there some way to achieve the same > functionality without using SendKeys? > > > > Thanks in advance, > > 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 jwcolby at colbyconsulting.com Sat Feb 19 18:18:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 19:18:04 -0500 Subject: [AccessD] [dba-SQLServer] I'm getting nowhere In-Reply-To: References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605DBC.3080006@colbyconsulting.com> > The hierarchy goes like this: > > Roles > -- Users But why does the user have no (apparent) password but the role does? I found a vague (to me) reference to schemas and assigning schemas to users... Now that makes sense. I assume in all this that if a user goes away I just delete the user? I don't see any way to enable / disable the user. This whole thing just seems real hokey. John W. Colby www.ColbyConsulting.com On 2/19/2011 4:38 PM, Arthur Fuller wrote: > The hierarchy goes like this: > > Roles > -- Users > > What is not obvious from the docs is that you can add a role to a role. The > reason you would want to do this is to "include" lower-level capabilities > within a higher-level group (without bothering to have to re-define these). > > You can grant select, update, delete and inserts on any combination of > tables, views and sprocs. The approach I typically use is to deny table > access to everyone but me, and then to grant various levels of access to > views and sprocs to various roles. That way, no one but you can directly hit > a table. > > So, your bottom level might define Select capability and nothing else (to > one or more views and sprocs). The next level up might permit Updates, and > the next Inserts and Deletes. Actually I mean granting this privileges on > the sprocs/views created for those purposes. > > As you move up the hierarchy, you can "stack" the abilities (i.e. add the > lowest level role to the next up, and so on, until you reach the top, where > the only member of that role is you. > > HTH, and if not feel free to ask. > Arthur > > On Sat, Feb 19, 2011 at 2:53 PM, jwcolbywrote: > >> I am getting nowhere on understanding SQL Server security. Microsoft >> provides us with SQL Server Express which implies that joe blow (me) is >> going to install / maintain it. >> >> I am not a SQL Server Admin and I cannot afford to spend the time to be >> one. >> >> Google is my friend. BOL is not. >> >> Except that Google is taking me to these places where I am expected to >> already know how this stuff works, and then wants to make me a *better* >> administrator. Which of course is useless because I am not an administrator >> at all. >> >> OTOH I am not stupid. If I could find something that started at the "This >> is SQL Server security" basics I could learn this stuff. Before anyone says >> "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it >> simply sucks for my level of expertise (my opinion of course). If that is >> your advice, simply stay out of this thread. Thanks! >> >> So... my needs: >> >> I need to set up several SQL Server databases for use by different, very >> small groups (5-20 people) of entirely unrelated people. What I mean by >> that is that each DB is for a different "company" if you will. I need to >> access these databases from C#. I understand the group / user paradigm. I >> would like to create groups and users. Specific groups can do specific >> things in the database, some can see data but not modify it. Some can add >> records in specific tables but not others. Some can run reports (view). >> >> I do *NOT* want to create windows level groups and users if I can avoid it. >> These are people that I do not necessarily know and I do not want to give >> them any rights at the machine level, and I prefer to not maintain such >> lists at the machine level. >> >> Unfortunately SQL Server does not seem to model Groups / users. I go into >> SQL Server and see a security tab. It has "logins". Is that a user? A >> specific ability to log in with a password? To what? The server itself? A >> specific database? Groups of databases? >> >> I see "roles" but these appear to be aimed at the server and none of these >> people are going to be doing anything at the server level. >> >> Can I safely ignore everything under the server security tab? >> >> I go to a database and I see a security tab. It has users and roles. >> Hmm... better (I would think). I would like to add users "under" the >> specific database that the user will access. >> >> So I try to add a new user but I do not see anywhere to require a password. >> Hmmm... >> >> I go into roles and I do not see any predefined role that looks like it >> would be useful to me in meeting my needs described above. If I look at >> "add new role" it asks for a password. The User / group model does nto >> assign passwords at the group level which implies that a role is not a group >> at the user / group paradigm. >> >> Is it just me, or is SQL Server security just... different? Am I correct >> in assuming that it doesn't implement a user / group paradigm? >> >> And more importantly, where can I go to get a plain, simple, English >> description of how this mess works? >> >> And please excuse the tone that results from my frustration. The only help >> documents that I have found (and I have extensive lists of bookmarked web >> pages) so far assume that I am an administrator. I am not, and cannot >> afford to become one. And yet MS pushes SQL Express as if I (non-admin) >> should be able to use this as a data store pool. >> >> Help! >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Sat Feb 19 18:22:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 10:22:49 +1000 Subject: [AccessD] I'm getting nowhere In-Reply-To: <4D601FBA.5020302@colbyconsulting.com> References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605ED9.11823.1EFC5774@stuart.lexacorp.com.pg> On 19 Feb 2011 at 14:53, jwcolby wrote: > If I could find something that started at the > "This is SQL Server security" basics I could learn this stuff. Maybe this will help. (This is "my" understanding of it - corrections from others welcome .) There are two levels of "Security" in SQL Server: 1. SQL Server Instance (Server name) level 2. Database level At the Instance Level, you have: 1. Server Roles 2. Logins At the Database level you have: 1. Database Roles 2. Users INSTANCE LEVEL ============== SERVER ROLES These are generic sets of "rights" which apply to the entire Instance. "Server role is used to grant server-wide privileges to a user" . Generally, use Public for all logins unless you need admin rights on the server. LOGIN To allow anyone to access SQL Server, you need to create a login at instance level for them and then define what that login can do in terms of individual databases Login = an entity that can log in to SQL Server. In your situation, you are using SQL Secruity so a Login needs a Username and Password. If using Windows/Mixed security, it could also be an Active Drectory user. Note the use of the word "entity" - not person. With SQL Security, an entity is entirely identified by the username/password pair. If you embed a standard username/password in a connection string for an application that connects to SQL Server, then that application itself is the logged in entity. Alternatively, if you collect the username/password from the person using that application and put that the in the connection string, the individual user is the entity. On creation, you can define the "Default Database" for the login - this is the one they automatically access (so your don't need to specify it in your connection string.) DATABASE LEVEL =============== DATABASE ROLE Role = a definition a what entities with that role can do in the database.. There are a number of predefined roles, which are useful for things like "read only" users but you frequently need to create your own and assign rights to specific database objects for that role. i.e. allow read only on some tables and write access on others. You can also do things like prevent users from directly writing to any tables and only allow them to run specfic stored prcedures to update data. Once you have defined a new role within the database, you can assign that role to specific users within that database. You can think of a role as similar to a Group, it defines a set of rights and you can assign roles to users in the same way you assign "group membership" to Windows users. USER Once you have created a Login, you go the relevant database ( or databases) and assign rights to that login in that database. You do that by adding the Login as a User in that database. User = The definition of what a particular login entity can do in the database. To make a specific login a user in the database, you create a new user and select the existing Login name. Note that you can give that user the same name as the Login name or use a completely different one. Unless you have a good reason, I'd use the same as the login name. You then assign Databse Roles to the User to control what the user can do in the database. -- Stuart From rockysmolin at bchacc.com Mon Feb 21 10:10:33 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:10:33 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: Robin: No images in the report. Pretty plain vanilla stuff. And it works when called from the form for which I originally implemented Lebans' code. But it doesn't work from the second form unless I run it once from the first form. Then the second form works. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robin Lawrence Sent: Saturday, February 19, 2011 2:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-sol ution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Mon Feb 21 10:40:33 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Mon, 21 Feb 2011 10:40:33 -0600 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: <6577705DE870458B8A84B96BBC0EA0FF@Dell> I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > From rockysmolin at bchacc.com Mon Feb 21 10:55:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:55:12 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <6577705DE870458B8A84B96BBC0EA0FF@Dell> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> <6577705DE870458B8A84B96BBC0EA0FF@Dell> Message-ID: <1C2CEB538F7C4EAB86D2E97BF6D71D9C@HAL9005> Carolyn: Could I impose on you to send me those updated dlls off line (those are dynapdf.dll and strStorage.dll, yes?). Mine are dated 2006. Maybe that will clear up the problem. Thanks and regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, February 21, 2011 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Feb 21 11:58:06 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 09:58:06 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 13:23:40 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 Feb 2011 14:23:40 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <4D62BBBC.2040408@colbyconsulting.com> > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order to do > maintenance or make data structure changes to an evolving database. I am > open to any suggestions including learning more sophisticated coding than I > am used to . . . > > I don't have any long running processes that would take more than a minute > or two, so checking for inactivity every 30 minutes, with shut down after 60 > minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you are > used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected result > with other code procedures. For some reason Access (at least with the > programs I use to build (large complex)) has never liked timers, internal > (form) or external (API).. I think it has something to do with running them > in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a user > down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in the > past. Was always able to get around it because of my network permissions - > with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - that's > a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 13:29:44 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 11:29:44 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: It uses a dll not form timer as far as I can see. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Feb 21 14:34:53 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 21 Feb 2011 14:34:53 -0600 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <000601cbd206$cca0d440$65e27cc0$@comcast.net> I downloaded and looked at this. It does use a form timer, and it looks to see if the current active control is the same active control as the last time it looked. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, February 21, 2011 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 14:54:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 22 Feb 2011 06:54:01 +1000 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: , <004a01cbcc99$57261fd0$1201a8c0@Schroeder>, Message-ID: <4D62D0E9.4286.2889E9F5@stuart.lexacorp.com.pg> Yes it does. In frmInactiveShutDown Private Sub Form_Timer() '********************************************************************** '* This timer event procedure will shut down the application '* after a specified number of minutes of inactivity. Inactivity '* is measured based on how long a control remains the ActiveControl. '********************************************************************** And it doesn't allow remote control or shut down at a specific time. Very limited compared to previous posted solutions. -- Stuart On 21 Feb 2011 at 9:58, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock Sent: Monday, February 14, 2011 2:41 PM To: > accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > > >>> robert at servicexp.com 14-02-2011 23:09 >>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal (form) or external (API).. I think it has something > to do with running them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Force Closing > the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 17:28:09 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 15:28:09 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: <090CDAD44D744C36B0502A547965F956@murphy3234aaf1> My Error. I just downloaded the zip file and looked in to see the exe. Actually installed it and opened the example. It does use a hidden form and timer. Not what I thought it was. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gweedensmith at iowatelecom.net Wed Feb 23 21:43:56 2011 From: gweedensmith at iowatelecom.net (Greg Smith) Date: Wed, 23 Feb 2011 21:43:56 -0600 Subject: [AccessD] Emails not working? Message-ID: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Where has everyone gone? Greg From rockysmolin at bchacc.com Wed Feb 23 23:55:05 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 23 Feb 2011 21:55:05 -0800 Subject: [AccessD] Emails not working? In-Reply-To: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Message-ID: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> The last possible Access question was answered on Monday. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Wednesday, February 23, 2011 7:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails not working? Where has everyone gone? Greg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 24 00:08:40 2011 From: john at winhaven.net (John Bartow) Date: Thu, 24 Feb 2011 00:08:40 -0600 Subject: [AccessD] Emails not working? In-Reply-To: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: <000b01cbd3e9$487cf2e0$d976d8a0$@winhaven.net> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 23, 2011 11:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Emails not working? The last possible Access question was answered on Monday. Rocky From jwcolby at colbyconsulting.com Thu Feb 24 05:31:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 06:31:37 -0500 Subject: [AccessD] Just quiet? Message-ID: <4D664199.3090801@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com From garykjos at gmail.com Thu Feb 24 06:16:57 2011 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Feb 2011 06:16:57 -0600 Subject: [AccessD] Just quiet? In-Reply-To: <4D664199.3090801@colbyconsulting.com> References: <4D664199.3090801@colbyconsulting.com> Message-ID: It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 df.waters at comcast.net Thu Feb 24 07:40:12 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 07:40:12 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass Message-ID: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ From jwcolby at colbyconsulting.com Thu Feb 24 08:25:06 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 09:25:06 -0500 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D666A42.7020703@colbyconsulting.com> Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked myself > out of an Access file by mistakenly running code to change its properties, > including setting the AllowShiftBypass property to False. The normal way to > fix this is to open a new Access file and import all the objects, then reset > references, startup properties, and options. It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I could > make a utility to reset an Access file?s properties where that file had its > properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run the > first procedure ? this will ask you to select an Access file, and it will > then reset several properties to true so that you can open it normally > again. > > Hope someone can use this! > Dan > > ?------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the > _ > user picked at least one file. If the .Show method returns > _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > ?------------------------ > > > > From andy at minstersystems.co.uk Thu Feb 24 11:31:56 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Feb 2011 17:31:56 -0000 Subject: [AccessD] Just quiet? In-Reply-To: Message-ID: Hush -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 February 2011 12:17 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Just quiet? It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 davidmcafee at gmail.com Thu Feb 24 12:32:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 Feb 2011 10:32:11 -0800 Subject: [AccessD] Just quiet? In-Reply-To: References: Message-ID: shhh, you guys keep waking me up! On Thu, Feb 24, 2011 at 9:31 AM, Andy Lacey wrote: > Hush > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 24 February 2011 12:17 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Just quiet? > > > It would seem so. > > GK > From df.waters at comcast.net Thu Feb 24 12:37:30 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 12:37:30 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D666A42.7020703@colbyconsulting.com> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> <4D666A42.7020703@colbyconsulting.com> Message-ID: <000c01cbd451$e5e54b00$b1afe100$@comcast.net> Thanks John! Of course now that I have this I'll probably remember not to lock myself out anymore. ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 24, 2011 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How To Undo Disabled Shift Bypass Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False. > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options. It's a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file's properties where that > file had its properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again. > > Hope someone can use this! > Dan > > '------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns > True, the _ > user picked at least one file. If the .Show method > returns _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > '------------------------ > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 24 14:19:00 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 24 Feb 2011 12:19:00 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <007301cbd460$126db640$374922c0$@cox.net> Thanks for sharing Dan, I built a little utility to do this several years ago. It is a great way to keep the casual Access user out of your database internals. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 24, 2011 5:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How To Undo Disabled Shift Bypass Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 24 15:14:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:14:27 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> "The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options." Not for everyone. :-) I think you will find that quite a few of us have a similar module in little MDB that we keep in our toolboxes. Still, it's good to remind people occassionally -- Stuart On 24 Feb 2011 at 7:40, Dan Waters wrote: > Sure been quiet for a few days!? So this is something I finished > yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False.? > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options.? > It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file?s properties where that > file had its properties set to False.? And it worked! > > Below is code that you can copy into a standard module in a new Access > file.? Name that new file AllowBypass.mdb, or something similar.? Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again.? > > Hope someone can use this! > Dan > From stuart at lexacorp.com.pg Thu Feb 24 15:47:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:47:23 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net>, <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> Message-ID: <4D66D1EB.25156.2AA4508@stuart.lexacorp.com.pg> Incidentally, I often leave a trapdoor inside the applications. I use a function to toggle the security state ( comment out particular properties depending on the requirement of the application) Function Lockdown(state As Boolean) SetProperty "AllowBypassKey", dbBoolean, Not state SetProperty "AllowFullMenus", dbBoolean, Not state SetProperty "AllowSpecialKeys", dbBoolean, Not state SetProperty "AllowToolbarChanges", dbBoolean, Not state SetProperty "AllowBuiltInToolbars", dbBoolean, Not state SetProperty "AllowBreakIntoCode", dbBoolean, Not state 'SetProperty "AllowSHortcutMenus", dbBoolean, Not state End Function Public Function SetProperty(strPropName As String, _ varPropType As Variant, varPropValue As Variant) As Boolean On Error GoTo Err_SetProperty Dim db As DAO.Database, prp As DAO.Property Set db = CurrentDb db.Properties(strPropName) = varPropValue SetProperty = True Set db = Nothing Exit_SetProperty: Exit Function Err_SetProperty: If Err = 3270 Then 'Property not found Set prp = db.CreateProperty(strPropName, varPropType, varPropValue) db.Properties.Append prp Resume Next Else SetProperty = False MsgBox "SetProperty", Err.Number, Err.Description Resume Exit_SetProperty End If End Function If I am using my own user level security, in my login process I use something like: If AccessLevel = 5 Then MsgBox "Developer Mode! - Close and Reopen Using the Bypass key" Lockdown False DoCmd.Quit You can also do something similar with a commandline switch and a Startup() function called from an AutoExec macro or your startup form. Note that similar code to the above is used in the tollbox MDB, the only difference is that "db" is passed as a parameter to SetProperty, rather than being hard coded to CurrentDB. Note also that Setproperty() can also be used to set other things such as built in Copyright notices, Version Numbers etc in the same or a different database and a similar GetProperty() function can be used to read them. -- Stuart On 25 Feb 2011 at 7:14, Stuart McLachlan wrote: > "The normal way to fix this is to open a new Access file and import > all the objects, then reset references, startup properties, and > options." > > Not for everyone. :-) > > I think you will find that quite a few of us have a similar module in > little MDB that we keep in our toolboxes. Still, it's good to remind > people occassionally > > > -- > Stuart > > On 24 Feb 2011 at 7:40, Dan Waters wrote: > > > Sure been quiet for a few days!? So this is something I finished > > yesterday. > > > > A few days ago, for about the hundredth time, I accidentally locked > > myself out of an Access file by mistakenly running code to change > > its properties, including setting the AllowShiftBypass property to > > False.? The normal way to fix this is to open a new Access file and > > import all the objects, then reset references, startup properties, > > and options.? It?s a pain. > > > > I recently did some work with OpenCurrentDatabase, and wondered if I > > could make a utility to reset an Access file?s properties where that > > file had its properties set to False.? And it worked! > > > > Below is code that you can copy into a standard module in a new > > Access file.? Name that new file AllowBypass.mdb, or something > > similar.? Run the first procedure - this will ask you to select an > > Access file, and it will then reset several properties to true so > > that you can open it normally again.? > > > > Hope someone can use this! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Feb 24 17:04:31 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 24 Feb 2011 17:04:31 -0600 Subject: [AccessD] Access 2007 Runtime on Windows Server 2003 ??? References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: All, We are thinking about putting a small application, built for Access 2007 (Runtime) on a Windows Server 2003 - Standard Edition - Service Pack 2. This application will run unattended. Will Access 2007 Runtime work on Windows Server 2003 Standard Edition - SP2? Are others doing this? Are we headed for trouble? Thanks, Brad From iggy at nanaimo.ark.com Fri Feb 25 08:50:54 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 25 Feb 2011 06:50:54 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D67C1CE.1080804@nanaimo.ark.com> Hey Dan Ha ha ha ha ha ha ha ha ha !. This should have been OT: Friday Humour. That is the best I have heard, a developer locking themselves out of their own application. Just kidding I think we have all run into it at one time or another, trying to lock down what a user can do in an app. I know I did it myself a couple of years ago and spent several hours going "Oh crap Oh crap" until the "Duh" light came on and luckily I was able to copy it. Not a nice feeling. Dan Waters wrote: >Sure been quiet for a few days! So this is something I finished yesterday. > >A few days ago, for about the hundredth time, I accidentally locked myself >out of an Access file by mistakenly running code to change its properties, >including setting the AllowShiftBypass property to False. The normal way to >fix this is to open a new Access file and import all the objects, then reset >references, startup properties, and options. It?s a pain. > >I recently did some work with OpenCurrentDatabase, and wondered if I could >make a utility to reset an Access file?s properties where that file had its >properties set to False. And it worked! > >Below is code that you can copy into a standard module in a new Access >file. Name that new file AllowBypass.mdb, or something similar. Run the >first procedure ? this will ask you to select an Access file, and it will >then reset several properties to true so that you can open it normally >again. > >Hope someone can use this! >Dan > >?------------------------ >Private MappSource As Access.Application > >Private Sub UnlockMDB() >1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File >2 stgSourceFilePath = SelectFile >3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = >"" Then >4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" >5 Exit Sub >6 End If >7 DoEvents > > '-- Set Source MDB as the CurrentDatabase >8 Set MappSource = New Access.Application >9 MappSource.Visible = False >10 MappSource.OpenCurrentDatabase stgSourceFilePath >11 DoEvents > >12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift >key bypass >13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 >key >14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >15 ChangeProperty "AllowFullMenus", dbBoolean, True >16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > >17 MappSource.CloseCurrentDatabase >18 Set MappSource = Nothing > >19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", >vbInformation + vbOKOnly, "File Now Available" > >20 Exit Sub > >EH: >21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >22 MsgBox stgPrompt, vbExclamation + vbOKOnly >23 Stop > >End Sub > >Private Function SelectFile() As String >1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > >2 Set fDialog = FileDialog(msoFileDialogFilePicker) > >3 With fDialog > >4 .AllowMultiSelect = False >5 .InitialView = msoFileDialogViewList >6 .InitialFileName = CurrentProject.Path >7 .Title = "Select the Access file." > >8 .Filters.Clear >9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the >_ > user picked at least one file. If the .Show method returns >_ > False, the user clicked Cancel. >10 If .Show = True Then >11 For Each varFile In .SelectedItems >12 SelectFile = varFile >13 Next varFile >14 Else >15 SelectFile = "File Not Selected" >16 End If > >17 End With > >18 Exit Function > >EH: >19 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >20 MsgBox stgPrompt, vbExclamation + vbOKOnly >21 Stop > >End Function > >Public Function ChangeProperty(stgPropName As String, varPropType As >Variant, varPropValue As Variant) As Boolean >1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > >2 Set dbs = MappSource.DBEngine(0)(0) > >3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > >4 ChangeProperty = True > >XH: >5 Exit Function > >EH: >6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created >7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >varPropType, varPropValue) >8 DBEngine(0)(0).Properties.Append prp >9 Set prp = Nothing >10 Resume Next > >11 Case Else >12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >13 MsgBox stgPrompt, vbExclamation + vbOKOnly >14 Stop > >15 End Select > >End Function > >?------------------------ > > > > > > From iggy at nanaimo.ark.com Sun Feb 27 07:43:20 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 05:43:20 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6A54F8.30203@nanaimo.ark.com> Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? From stuart at lexacorp.com.pg Sun Feb 27 08:33:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 00:33:01 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> A few thoughts on your questions: There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an application development environment. You still need some sort of development enviroment for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, Access, PowerBasic or anything else which is you feel is appropriate. An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC links to the SQL Server tables. That is all that you need sometimes. I tend to use Access this way for reporting applications. I generally don't use Access as the FE for data *management" since you should not as rule use linked table and bound forms to maintain data in SQL Server, you should be using CRUD (create, read, update, delete) stored procedures for this which implies going "unbound". I use PowerBasic/SQLTools for these applications. A major reason for using SQL Server is user security now that MS have depreciated it in Access. I update the same way that I update an Access FE/BE application. A user runs the FE by clicking on shortcut to a batch/cmd file or small application which copies the latest version of the FE to a local drive and then opens it. Updates to the BE are made by building a small Updater application which modifies the backend database using ODBC with CREATE and ALTER statements. -- Stuart On 27 Feb 2011 at 5:43, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > From iggy at nanaimo.ark.com Sun Feb 27 08:54:30 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 06:54:30 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> Message-ID: <4D6A65A6.2080604@nanaimo.ark.com> Hey Stuart Thanks Quickly and concisely cleared up many questions I had. How to you about updating stored procedures on the SQL Server end?. Stuart McLachlan wrote: >A few thoughts on your questions: > >There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an >application development environment. You still need some sort of development enviroment >for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, >Access, PowerBasic or anything else which is you feel is appropriate. > >An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC >links to the SQL Server tables. That is all that you need sometimes. I tend to use Access >this way for reporting applications. > >I generally don't use Access as the FE for data *management" since you should not as rule >use linked table and bound forms to maintain data in SQL Server, you should be using >CRUD (create, read, update, delete) stored procedures for this which implies going >"unbound". I use PowerBasic/SQLTools for these applications. > >A major reason for using SQL Server is user security now that MS have depreciated it in >Access. > >I update the same way that I update an Access FE/BE application. A user runs the FE by >clicking on shortcut to a batch/cmd file or small application which copies the latest version of >the FE to a local drive and then opens it. Updates to the BE are made by building a small >Updater application which modifies the backend database using ODBC with CREATE and >ALTER statements. > > > From ssharkins at gmail.com Sun Feb 27 09:32:15 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 27 Feb 2011 10:32:15 -0500 Subject: [AccessD] Access and SQL Server References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <026EA1F3F2D543959BEF646378CB7B19@salvationomc4p> > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. ========Don't buy it... just ask questions here. :) > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? ========I'm not -- do almost no development work anymore. Susan H. From jwcolby at colbyconsulting.com Sun Feb 27 12:10:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 13:10:23 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A938F.1070900@colbyconsulting.com> I am trying to use Access to quickly get small applications up which can hit a database over the internet. An MDB is notorious for corrupting if accessed by an Access FE over the internet. AFAICT SQL Server works great. I have a hand full of small databases which have to be geographically dispersed, running on joe blow's computer from his house (or the local pub with internet). Access is RAD and has good reporting capabilities. *IF* I can get it to run under a runtime then it is also free. AFAICT it talks to the SQL Server over the internet just fine. I am talking about databases with 20 tables, FEs running on 10-20 people's machines, coming in to a SQL Server database over cable or DSL over an Hamachi VPN. Now that I am starting to understand the SQL Server security it is beginning to come together. John W. Colby www.ColbyConsulting.com On 2/27/2011 8:43 AM, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly > complex pass through queries, ADO connections with stored procedures and Views, I have still to buy > Susan's book to answer some of my under lying questions. Other than being prepared for a client's > request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my > applications I have out there are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I don't think any of my clients > (including the big companies) know what SQL Server is. In fact I have produced only one app for a > client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL > Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server > link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from > the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) > much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? > Are you producing major apps dealing with millions of records? > Are you producing major apps dealing with hundreds of users? > How do you go about distributing changes to an ACCESS/SQL Server app? > > > > From stuart at lexacorp.com.pg Sun Feb 27 14:44:18 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:44:18 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A65A6.2080604@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg>, <4D6A65A6.2080604@nanaimo.ark.com> Message-ID: <4D6AB7A2.29205.11E3A570@stuart.lexacorp.com.pg> Use the ALTER PROCEDURE procedure that you get when you modify a stored procedure in Management Studio. Just copy that script into a string in the updater application and Execute it as part of the update process. If it is a new procedure in the destination database, change the ALTER to CREATE. -- Stuart On 27 Feb 2011 at 6:54, Tony Septav wrote: > Hey Stuart > Thanks > Quickly and concisely cleared up many questions I had. > How to you about updating stored procedures on the SQL Server end?. > > Stuart McLachlan wrote: > > >A few thoughts on your questions: > > > >There is really no such thing as an SQL Server app. SQL Server is a > >RDMS, not an application development environment. You still need some > >sort of development enviroment for the front end, up to you whether > >you use a web server and PHP or ADO.net, VB.Net, C#, Access, > >PowerBasic or anything else which is you feel is appropriate. > > > >An SQLServer/Access is no more complex than an Access FE/BE app if > >you just use ODBC links to the SQL Server tables. That is all that > >you need sometimes. I tend to use Access this way for reporting > >applications. > > > >I generally don't use Access as the FE for data *management" since > >you should not as rule use linked table and bound forms to maintain > >data in SQL Server, you should be using CRUD (create, read, update, > >delete) stored procedures for this which implies going "unbound". I > >use PowerBasic/SQLTools for these applications. > > > >A major reason for using SQL Server is user security now that MS > >have depreciated it in Access. > > > >I update the same way that I update an Access FE/BE application. A > >user runs the FE by clicking on shortcut to a batch/cmd file or small > >application which copies the latest version of the FE to a local > >drive and then opens it. Updates to the BE are made by building a > >small Updater application which modifies the backend database using > >ODBC with CREATE and ALTER statements. > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 14:51:28 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:51:28 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A938F.1070900@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> Message-ID: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> John, How are your Access apps getting/putting data to the SQL Server? Are you using ODBC/linked tables and bound forms (or have you gone over to the dark side)? If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. -- Stuart On 27 Feb 2011 at 13:10, jwcolby wrote: > I am trying to use Access to quickly get small applications up which > can hit a database over the internet. > > An MDB is notorious for corrupting if accessed by an Access FE over > the internet. AFAICT SQL Server works great. > From Darryl.Collins at iag.com.au Sun Feb 27 15:13:53 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 28 Feb 2011 08:13:53 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <201102272114.p1RLE0tJ003528@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rusty.hammond at cpiqpc.com Sun Feb 27 15:25:28 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 15:25:28 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102272114.p1RLE0tJ003528@databaseadvisors.com> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Sun Feb 27 15:30:45 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 07:30:45 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <201102272114.p1RLE0tJ003528@databaseadvisors.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AC285.26719.120E2CD8@stuart.lexacorp.com.pg> Very good point! -- Stuart On 27 Feb 2011 at 15:25, Rusty Hammond wrote: > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Sun Feb 27 15:43:49 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 15:43:49 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <004501cbd6c7$6dd32060$49796120$@comcast.net> Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Sun Feb 27 16:33:22 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:33:22 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com><49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Both. Of course you have to be careful. If someone is linked directly to a table and you add a field to the middle of the table, then their app will likely error out until you relink the table in the front end. Adding the field to the end of the table usually allows people to keep on working. Then you refresh the links in your development front end, make your programming changes, and distribute the new front end. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and SQL Server Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Sun Feb 27 16:38:15 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:38:15 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 16:41:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:41:02 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rusty.hammond at cpiqpc.com Sun Feb 27 16:58:00 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:58:00 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00F@CPIEMAIL-EVS1.CPIQPC.NET> Never, but he asked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better cheers darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop a > SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From df.waters at comcast.net Sun Feb 27 17:17:19 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 17:17:19 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Message-ID: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> The reason I asked about data changes was because I wanted to be sure I surrounded your statement, since I didn't understand it. I can make same design changes in an MDB BE as you described for SQL Server, as long as the BE is in a client-server configuration. What would prevent you from making design changes in a working MDB BE file? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 27 17:45:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 09:45:52 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg>, <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> Message-ID: <4D6AE230.23695.1289E189@stuart.lexacorp.com.pg> If a user is accessing the data in a table in an Access database, you can't modify that table - you get a dialog saying: "You can't open the table 'tblSomething' for modification. A query or form bound to the table is open...." -- Stuart On 27 Feb 2011 at 17:17, Dan Waters wrote: > The reason I asked about data changes was because I wanted to be sure > I surrounded your statement, since I didn't understand it. > > I can make same design changes in an MDB BE as you described for SQL > Server, as long as the BE is in a client-server configuration. What > would prevent you from making design changes in a working MDB BE file? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Access and SQL Server > > Design changes. If you can't make data changes without kicking > everyone out, you must be using the wrong DBMS. > > -- > Stuart > > > On 27 Feb 2011 at 15:43, Dan Waters wrote: > > > Rusty, > > > > Do you mean data changes, design changes, or both? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > I would add: Ability to make changes to the backend tables without > > kicking everyone out of the database. > > > > Rusty > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > > > ____________________________________________________________________ > > __ __ _______________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ __ _______________ > > > > > > Tony, > > > > Why I like a SQL server BE. > > > > 1: Performance. It is faster and much more stable, especially if > > set up correctly and over a WAN / LAN. 2: Security of access and the > > actual data itself. 3: Audit: It is dead easy to set up triggers to > > show who changed what, when and from where. 4: Backup and restore is > > better > > cheers > > darryl > > > > > > > > ________________________________________ > > From: accessd-bounces at databaseadvisors.com > > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > > [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: > > Access Developers discussion and problem solving Subject: [AccessD] > > Access and SQL Server > > > > Hey All > > Well I have spent a couple of weeks now fooling around with ACCESS > > and SQL Server. Using fairly complex pass through queries, ADO > > connections with stored procedures and Views, I have still to buy > > Susan's book to answer some of my under lying questions. Other than > > being prepared for a client's request to use SQL Server, I keep > > asking myself when would I need to use this. Only a few of my > > applications I have out there are dealing with records greater than > > a million. Because the apps are user specific I don't usually have > > more than 10 users on a network. I don't think any of my clients > > (including the big companies) know what SQL Server is. In fact I > > have produced only one app for a client that linked into an Oracle > > database (that is the flavour in my area not SQL). Yes I know SQL > > Server has hundreds of nifty little features that ACCESS doesn't, > > many activities use a SQL Server link (Web Pages), so it begs the > > question "Should I be learning how to develop a SQL Server app from > > the bottom up?" > > > > What I am finding is that an ACCESS/SQL Server app becomes very code > > intensive (forms, queries, etc) much more so than just using ACCESS. > > > > My question to those of you proficient in using ACCESS and SQL > > Server, how exactly are you applying it? Are you producing major > > apps dealing with millions of records? Are you producing major apps > > dealing with hundreds of users? How do you go about distributing > > changes to an ACCESS/SQL Server app? > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ____________________________________________________________________ > > __ __ _______________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ __ _______________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ******************************************************************** > > ** WARNING: All e-mail sent to and from this address will be > > received, scanned or otherwise recorded by the CPI Qualified Plan > > Consultants, Inc. corporate e-mail system and is subject to > > archival, monitoring or review by, and/or disclosure to, someone > > other than the recipient. > > ******************************************************************** > > ** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 27 18:12:48 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:12:48 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> Message-ID: <4D6AE880.2000806@colbyconsulting.com> ODBC Linked tables. > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. No, the corruption occurs any time that a write occurs to an MDB and the connection is lost. Given the massive instability of the internet... John W. Colby www.ColbyConsulting.com On 2/27/2011 3:51 PM, Stuart McLachlan wrote: > John, > > How are your Access apps getting/putting data to the SQL Server? Are you using > ODBC/linked tables and bound forms (or have you gone over to the dark side)? > > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables > were held open over slow connections. > From jwcolby at colbyconsulting.com Sun Feb 27 18:19:16 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:19:16 -0500 Subject: [AccessD] Troubleshooting a runtime Message-ID: <4D6AEA04.6090107@colbyconsulting.com> I have installed a runtime package to a VM for testing. I have a FE and a library which, when accesses from other machines with full Access installed do not error in any way. I try to run this under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open any (bound) form "there was an error executing the command". Basically it is just opening a form. Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to install Office (Access) on the machine for troubleshooting. Does anyone on the group actually use runtimes? What do you do if there is an error? -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sun Feb 27 18:49:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 10:49:36 +1000 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> What happens if you try it with a FE that doesn't open open a startup form and leaves the database exposed. Can you access the data in the tables? And no, I don't use runtimes. -- Stuart On 27 Feb 2011 at 19:19, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE > and a library which, when accesses from other machines with full > Access installed do not error in any way. I try to run this under the > runtime and the switchboard opens, but I get an immediate error as > soon as I try to open any (bound) form "there was an error executing > the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are > you supposed to troubleshoot install issues? Suppose I install this > on computer XYZ and it gives me an error. I am not going to install > Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if > there is an error? > > -- > 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 Sun Feb 27 20:18:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:18:08 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> References: <4D6AEA04.6090107@colbyconsulting.com> <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> Message-ID: <4D6B05E0.2010905@colbyconsulting.com> The runtime doesn't leave the database exposed. Or any of the database tabs for that matter. Or any built-in menu. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:49 PM, Stuart McLachlan wrote: > What happens if you try it with a FE that doesn't open open a startup form and leaves the > database exposed. Can you access the data in the tables? > > And no, I don't use runtimes. > From jwcolby at colbyconsulting.com Sun Feb 27 20:21:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:21:00 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B068C.3090000@colbyconsulting.com> The switchboard is bound to a local table in the FE and it opens just fine. The bound forms that the switchboard opens without any complaint in a full on Access install appear to complain under the runtime. I just realized that the database is A2003 and the runtime is A2007. I guess I need to open it under A2007 full install and see what it says. The point really is that if you are going to use a runtime you really need feedback. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From jwcolby at colbyconsulting.com Sun Feb 27 20:38:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:38:59 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B0AC3.3070005@colbyconsulting.com> I got it. The library was referenced at c:\Dev\PrisonMinistry but I had placed the FE and FW at c:\Runtimes\LenoirPM on the VM which has the runtime installed.. As soon as I created the same directory structure as my dev machine and moved the FE/FW to that location, and run AddPath.exe on that location - it started working. So, I am running a VM with only an Access 2007 runtime, with my FE and framework running under that runtime, hitting a SQL Server at a specific Hamachi IP address. Bound forms, linked tables. The table links have the Hamachi IP address hard coded in the connection, as well as a username / password which has db_DataReader and db_DataWriter rights on that specific database. Not optimum I know but *it works*! ATM it is on my local network but I have hope at least that it will run under a 2007 runtime on another machine across the internet. Now what I need to do is to get this VM running on my laptop, then take the laptop back to Arby's to test with their internet back into my network. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From iggy at nanaimo.ark.com Mon Feb 28 06:56:40 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 04:56:40 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6B9B88.2000405@nanaimo.ark.com> Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? From accessd at shaw.ca Mon Feb 28 09:56:43 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Feb 2011 07:56:43 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 users on at the time. Added the table and re-populated in about 5 minutes and only 1 person complained about the BE being slower and having to do a refresh. Real SQL DBs are very rugged...everything is just queued, cached and applied through background processes. The one thing is that a Real SQL DB is not just another MDB...there is little or no resemblance other than the both hold data. (Not wanting to get into a heated discussion, I must admit I cringe every time I hear of someone attempting a bound MS SQL DB.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 11:01:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:01:27 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Message-ID: <4D6BD4E7.6040106@colbyconsulting.com> Cringe away, it seems to work just fine. Until I see evidence to the contrary... John W. Colby www.ColbyConsulting.com On 2/28/2011 10:56 AM, Jim Lawrence wrote: > Years ago I dropped a table in error, on a live MS SQL DB...had about 50 > users on at the time. Added the table and re-populated in about 5 minutes > and only 1 person complained about the BE being slower and having to do a > refresh. Real SQL DBs are very rugged...everything is just queued, cached > and applied through background processes. > > The one thing is that a Real SQL DB is not just another MDB...there is > little or no resemblance other than the both hold data. (Not wanting to get > into a heated discussion, I must admit I cringe every time I hear of someone > attempting a bound MS SQL DB.) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, February 27, 2011 2:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Both? > > When did you ever have to kick users out of Access or any other multi-user > DBMS to make > data changes? > From davidmcafee at gmail.com Mon Feb 28 11:37:13 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 09:37:13 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 11:46:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:46:38 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> References: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <4D6BDF7E.7000603@colbyconsulting.com> > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? From jwcolby at colbyconsulting.com Mon Feb 28 11:59:33 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:59:33 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6BE285.7010601@colbyconsulting.com> > SQL Server will do everything on the server and return only the result set, which is much faster. And this is key. I am attempting to use bound forms, bound to a sql server table, over the internet. If I were foolish I would just bind the form to a result set which included every record in the table. Or I could open the form with a control set to a specific record ID and have SQL Server go get and return the data for that specific record ID to display in the form. For parent forms this would seem to be a no-brainer. For subforms it is less clear, and probably set up on a case by case basis. Perhaps (as an example) all of the orders for a client for a specific date range or something like that. In any event, it seems that you need to coerce SQL Server into doing the filtering back in the server and just sending a limited set of records, already sorted etc. John W. Colby www.ColbyConsulting.com On 2/28/2011 12:37 PM, David McAfee wrote: > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jimdettman at verizon.net Mon Feb 28 12:29:21 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 13:29:21 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <6C1A3B79856049B1A846FE8C08D916B8@XPS> <> Um not quite right. Jet will pull indexes and read them before it starts doing a table scan if it can. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, February 28, 2011 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 12:48:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 13:48:39 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <6C1A3B79856049B1A846FE8C08D916B8@XPS> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <6C1A3B79856049B1A846FE8C08D916B8@XPS> Message-ID: <4D6BEE07.9090405@colbyconsulting.com> Right. It will pull some of all of the indexes required for joins and filters (where clause), and then ask for specific parts of the file (if going to an MDB) or specific records (if going to SQL Server). With SQL Server it is possible to just hand the filter and join info to SQL Server and have SQL Server do all of the work, returning just the data. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:29 PM, Jim Dettman wrote: > < BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set.>> > > Um not quite right. Jet will pull indexes and read them before it starts > doing a table scan if it can. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Monday, February 28, 2011 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other > multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From rusty.hammond at cpiqpc.com Mon Feb 28 12:57:14 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Mon, 28 Feb 2011 12:57:14 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BDF7E.7000603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- 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 Mon Feb 28 13:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:01:34 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BF10E.5050603@colbyconsulting.com> As soon as you say "use macros, not vba" I stop listening. Just me of course. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:57 PM, Rusty Hammond wrote: > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From iggy at nanaimo.ark.com Mon Feb 28 12:09:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 10:09:39 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6BE4E3.8050801@nanaimo.ark.com> Hey All Thank you all again, I am quickly learning many things from your responses. I am just an old fart trying to play catch up with you guys (Oops and gals). I am trying to learn how to do things with a SQL Server back end, by trying to duplicate what I can do with an old MDB back end application. I am finding at times when doing my research on the Internet that I will read "Do it this way" and then next read "No don't do it that way do it this way". Also when I complete one task I think "Now how can I do this slighty different", this becomes quite frustrating, after 2 to 3 hours of reading other forum responses and basically finding no "hits", I will find some esoteric little example, usually not on topic, that finally simply describes how to do what I was looking for. Anyway this is my problem to solve, thank you again for your all your help. Onward and upward. This is a scary path. From jimdettman at verizon.net Mon Feb 28 13:27:47 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 14:27:47 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: Very limited (I fired it up once to date). You must develop your app as a web database and not all Access features are available. And a existing database won't always convert to a web enabled database either, so it's not as cut and dry as one would think. There are restrictions on the data types, control events, primary keys (all must be longs). There is also an off-line caching mode that can be used, which so far looks messy (here's your replication replacement). But that may be my lack of understanding. It's come a very long way over what was offered in A2007, but I think it still has another version to go before I'd want to try anything with it. This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), which introduced a host of new features (and made Access really usable for the first time), but didn't become solid until Access 2.0. And I haven't checked the licensing yet, but I've heard a couple grumble that it's pricey. Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Monday, February 28, 2011 01:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 28 13:50:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:50:11 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BFC73.9030200@colbyconsulting.com> > Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Hmm... sounds pricey as well. John W. Colby www.ColbyConsulting.com On 2/28/2011 2:27 PM, Jim Dettman wrote: > > Very limited (I fired it up once to date). > > You must develop your app as a web database and not all Access features > are available. And a existing database won't always convert to a web > enabled database either, so it's not as cut and dry as one would think. > > There are restrictions on the data types, control events, primary keys > (all must be longs). > > There is also an off-line caching mode that can be used, which so far > looks messy (here's your replication replacement). But that may be my lack > of understanding. > > It's come a very long way over what was offered in A2007, but I think it > still has another version to go before I'd want to try anything with it. > > This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), > which introduced a host of new features (and made Access really usable for > the first time), but didn't become solid until Access 2.0. > > And I haven't checked the licensing yet, but I've heard a couple grumble > that it's pricey. > > Unless I had hundreds of users, I think I would stick with a TS setup and > Citrix and just run with one version of an app. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 01:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From stuart at lexacorp.com.pg Mon Feb 28 15:13:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:13:49 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com>, <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6C100D.29834.1725090E@stuart.lexacorp.com.pg> A few small tables and limited number of users it's fine. Try over 50 concurrent operators inserting/updating records in tables with up to 7 million rows with multiple large lookup tables on that data. At the same time have a number of others users pulling summaries of that data. Not fine. :-) -- Stuart On 28 Feb 2011 at 12:01, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > > Years ago I dropped a table in error, on a live MS SQL DB...had > > about 50 users on at the time. Added the table and re-populated in > > about 5 minutes and only 1 person complained about the BE being > > slower and having to do a refresh. Real SQL DBs are very > > rugged...everything is just queued, cached and applied through > > background processes. > > > > The one thing is that a Real SQL DB is not just another MDB...there > > is little or no resemblance other than the both hold data. (Not > > wanting to get into a heated discussion, I must admit I cringe every > > time I hear of someone attempting a bound MS SQL DB.) > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > Both? > > > > When did you ever have to kick users out of Access or any other > > multi-user DBMS to make data changes? > > > -- > 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 Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BF10E.5050603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6BF10E.5050603@colbyconsulting.com> Message-ID: <4D6C1247.11063.172DBB5C@stuart.lexacorp.com.pg> No, not just you! There's quite a few of us out there :-) -- Stuart On 28 Feb 2011 at 14:01, jwcolby wrote: > As soon as you say "use macros, not vba" I stop listening. > > Just me of course. > From stuart at lexacorp.com.pg Mon Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, Message-ID: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > From jimdettman at verizon.net Mon Feb 28 16:36:49 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 17:36:49 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Message-ID: <6AE34C2DB8F044CEB01B53602E59A855@XPS> Stuart, <> Occasionally on a lookup table if a client insists on having a short code along with a description. Then I do this: LookupCode - Text - PK Description - Text as I don't see any sense in doing this: LookupID - Autonumber - PK Code - Text - CK Description - Text However I do my best to steer them to: LookupID - Autonumber - PK Description - Text - CK And usually on straight lookup tables, I cheat a bit and do this: tblLookupTypes LookupTypeID - Autonumber - PK Description - Text UserModify - Yes/No tblLookupValues LookupID - Autonumber - PK LookupTypeID - Long - FK to tblLookupTypes Description - Text and then use views to represent the different types rather then going against multiple tables. But if I need any attributes outside of a code or description, then I break things into separate tables. This means one maintenance form for all the lookups. Not great relationally, but it works fine and saves a ton of work when a lot of lookups exist in an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 28, 2011 04:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Mon Feb 28 16:41:28 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 09:41:28 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <201102282241.p1SMfaRg026442@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ "Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it?" When I was at Coles Group a year or so back I was part of a team of developers that built and maintained a whole suite of custom applications that were built on a common template. All the apps were based on a template which in turn was based on a SQL Server BE with MS Access FE (mde of course). We were starting to move any new apps to a web UI and away from MS Access. Many of these apps were critical for the day to day running of large national retail businesses. To give you some idea Coles Group is one of Australia's largest retailers with more than 2,600 stores throughout Australia and New Zealand, over 400,000 shareholders and more than 190,000 employees. My good friend Beny build a complex logistics app, which was used for scheduling all store deliveries based on availablity and type of truck (Some trucks can only fit in certain bays for example, some truck have to be in the cold store etc). Damn clever with a great UI. Some of these apps had hundreds of concurrent users 24/7, although many also lead a far less demanding life. The financial control system I build had about 50 users over a WAN. It was fast, stable and accurate. Gotta love that :) The big advantage was even though each application was build for a totally different purpose, it had a common platform and build, which meant that any of the development team could work on it if the main developer was away or busy. I miss working with SQL Server. Current role is 100% access based. Feel a bit left behind to be honest... :-/ cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Monday, 28 February 2011 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From stuart at lexacorp.com.pg Mon Feb 28 17:00:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:00:10 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <6AE34C2DB8F044CEB01B53602E59A855@XPS> References: <4D6B9B88.2000405@nanaimo.ark.com>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg>, <6AE34C2DB8F044CEB01B53602E59A855@XPS> Message-ID: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why you should not use a natural key as your PK. What happens when the Description changes and the existing Code is no longer an accurate short representation of Description? Do you change it throughout all the tables which store it or do you leave your customer with strange Codes which don't match the description (And please don't tell me that you use Relationships with "Cascade Update" turned on.) -- Stuart On 28 Feb 2011 at 17:36, Jim Dettman wrote: > Stuart, > > <> > > Occasionally on a lookup table if a client insists on having a short > code > along with a description. Then I do this: > > LookupCode - Text - PK > Description - Text > > as I don't see any sense in doing this: > > LookupID - Autonumber - PK > Code - Text - CK > Description - Text > From newsgrps at dalyn.co.nz Mon Feb 28 17:01:15 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:01:15 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102282241.p1SMfaRg026442@databaseadvisors.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> Message-ID: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> > "Are any of your developing full blown ACCESS/SQL Server > applications for clients? If so what type of an app is it?" I have done a couple of apps like this. One was a full prospecting/client management/billing/reporting system for a gas company. Access XP ade with SQL2000. The other is a stock management and reporting system for oil companies. Access XP ade with SQL2005. Both cases are multi user and have lots of business logic that was done in SQL. Both required the better security and data integrity that SQL provided over Access. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From jimdettman at verizon.net Mon Feb 28 17:17:56 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:17:56 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: It's pretty rare that a description changes in relation to the code and I can't think of the last time that was an issue. In fact it's been quite some time since I used a design like that, but if I did and it was, then yes, cascading updates would get turned on. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 28 17:21:00 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:21:00 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: One other thing: keep in mind that the description reflects the code, not the other way around. It's basically a long form of the code. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > 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 Feb 28 17:24:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:24:36 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> .ade! Yuk! The best thing that MS ever did for Access was depreciating these :-) -- Stuart On 1 Mar 2011 at 12:01, David Emerson wrote: > > > "Are any of your developing full blown ACCESS/SQL Server > > applications for clients? If so what type of an app is it?" > > I have done a couple of apps like this. > > One was a full prospecting/client management/billing/reporting system > for a gas company. Access XP ade with SQL2000. The other is a stock > management and reporting system for oil companies. Access XP ade with > SQL2005. > > Both cases are multi user and have lots of business logic that was > done in SQL. Both required the better security and data integrity > that SQL provided over Access. > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Mon Feb 28 17:40:03 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:40:03 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: Really? I work in ADP/ADEs every day and think they are the best of both worlds. D On Mon, Feb 28, 2011 at 3:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > > -- > Stuart > > On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 17:42:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 18:42:08 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <4D6C32D0.7080709@colbyconsulting.com> I assume this is a compiled adp? I never used an adp so... John W. Colby www.ColbyConsulting.com On 2/28/2011 6:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > From newsgrps at dalyn.co.nz Mon Feb 28 17:43:00 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:43:00 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Why is that? Once the concepts were learnt (thanks to Susan and Martins book, along with Chipman and Baron's Microsoft Access Developers Guide to SQL Server) I found it much easier to do all the development in the Access environment (including table, view, sproc and functions) than switching between Access and enterprise manager. David At 1/03/2011, Stuart McLachlan wrote: >.ade! Yuk! > >The best thing that MS ever did for Access was depreciating these :-) > >-- >Stuart > >On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Feb 28 17:53:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:53:11 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: The ease of populating comboboxes and listboxes: Me.lstHistory.rowsource = "EXEC stpGetMachineHistory " & nz(me.txtMachineID,0) Cascading combobox (On Enter of comboBox): Me.cboModel.rowsource "EXEC stpSelectModels " & nz(me.cboMake.Column(0),0) On Mon, Feb 28, 2011 at 3:43 PM, David Emerson wrote: > Why is that? Once the concepts were learnt (thanks to Susan and Martins > book, along with Chipman and Baron's Microsoft Access Developers Guide to > SQL Server) I found it much easier to do all the development in the Access > environment (including table, view, sproc and functions) than switching > between Access and enterprise manager. > > David > > > At 1/03/2011, Stuart McLachlan wrote: > >> .ade! Yuk! >> >> The best thing that MS ever did for Access was depreciating these :-) >> >> -- >> Stuart >> >> On 1 Mar 2011 at 12:01, David Emerson wrote: >> >> > >> > > "Are any of your developing full blown ACCESS/SQL Server >> > > applications for clients? If so what type of an app is it?" >> > >> > I have done a couple of apps like this. >> > >> > One was a full prospecting/client management/billing/reporting system >> > for a gas company. Access XP ade with SQL2000. The other is a stock >> > management and reporting system for oil companies. Access XP ade with >> > SQL2005. >> > >> > Both cases are multi user and have lots of business logic that was >> > done in SQL. Both required the better security and data integrity >> > that SQL provided over Access. >> > >> > Regards >> > >> > David Emerson >> > Dalyn Software Ltd >> > Wellington, New Zealand >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marksimms at verizon.net Mon Feb 28 18:54:02 2011 From: marksimms at verizon.net (Mark Simms) Date: Mon, 28 Feb 2011 19:54:02 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <013801cbd7ab$2979aad0$7c6d0070$@net> Nope, but heard it is the typical Microsoft roll-out....a high, high wall of undocumented "features" and surprises. Some are finding this feature quite useful, but only after climbing up that wall. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 1:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > > From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on > database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a > local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the > IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer > or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each > of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: > > Hey All > > Thanks > > I have got to try out Stuart suggestion for updating stored > procedures > in SQL Server using ACCESS. > > I am not finding any significant differences in speed when using > ACCESS tables and queries versus > > SQL Server tables and pass through queries, I assume that is because > I > am doing my testing on my > > local machine and not on a network (or Web). > > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of > > an app is it? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. > corporate e-mail system and is subject to archival, monitoring or > review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 28 18:57:06 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 18:57:06 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <4D6BE285.7010601@colbyconsulting.com> Message-ID: We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal ?error handling? set up. When we ran tests to ensure that the ?No Duplicates? on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have ?DoCmd.SetWarnings True? Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other ?Status Code? available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From rockysmolin at bchacc.com Mon Feb 28 19:11:16 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 28 Feb 2011 17:11:16 -0800 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com><4D6BE285.7010601@colbyconsulting.com> Message-ID: I think I'd try the BeforeUpdate event, check for a duplicate in the event, and if there is, update your tracking table, give a message to the user and set Cancel = True. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, February 28, 2011 4:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal "error handling" set up. When we ran tests to ensure that the "No Duplicates" on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have "DoCmd.SetWarnings True" Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other "Status Code" available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From stuart at lexacorp.com.pg Mon Feb 28 19:26:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:26:22 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, Message-ID: <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > From stuart at lexacorp.com.pg Mon Feb 28 19:27:41 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:27:41 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, , Message-ID: <4D6C4B8D.5594.180D7684@stuart.lexacorp.com.pg> No BeforeUpdate event. This is updating via SQL in code, not through a form. -- Stuart On 28 Feb 2011 at 17:11, Rocky Smolin wrote: > I think I'd try the BeforeUpdate event, check for a duplicate in the > event, and if there is, update your tracking table, give a message to > the user and set Cancel = True. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, February 28, 2011 4:57 PM To: Access Developers > discussion and problem solving Subject: [AccessD] How to Trap ?Insert > Error? (Duplicate record) caused byIndexed Field (No Duplicates) > > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Mon Feb 28 20:03:55 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 20:03:55 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from ?DoCmd.RunSQL SQL_String? to ?CurrentDb.Execute SQL_String, dbFailOnError? I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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 Darryl.Collins at iag.com.au Mon Feb 28 20:08:11 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 13:08:11 +1100 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: Message-ID: <201103010208.p2128JV2008457@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ as a rule I don't recommend using Docmd.RunSQL. Using the other method seems to work far better and gives you more control. You can also avoid any confirmation messages (assuming the user has that option enabled). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, 1 March 2011 1:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from "DoCmd.RunSQL SQL_String" to "CurrentDb.Execute SQL_String, dbFailOnError" I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the "DoCmd.RunSQL SQL_String" method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 28 20:17:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 21:17:22 -0500 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: <4D6C5732.9050103@colbyconsulting.com> You can also get NoRecsAffected from the db.Execute John W. Colby www.ColbyConsulting.com On 2/28/2011 9:03 PM, Brad Marks wrote: > Stuart, > > Yes, thanks a million for the help. > > Here is what I learned tonight... > > By switching from > > ?DoCmd.RunSQL SQL_String? > > to > > ?CurrentDb.Execute SQL_String, dbFailOnError? > > I can trap Err.Number = 3022 (duplicate record) > > > > I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. > > Brad > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan > Sent: Mon 2/28/2011 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) > > Hi Brad, > > I just answered this for you on Linked In. > > Use CurrentDB.Execute str_SQL ,dbFailOnError > instead of DoCmd.RunSQL. > > Then look for Err.Number 3022 in your error trap. > > From stuart at lexacorp.com.pg Mon Feb 28 20:53:40 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 12:53:40 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: <4D6C5732.9050103@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, , <4D6C5732.9050103@colbyconsulting.com> Message-ID: <4D6C5FB4.22433.185C2E21@stuart.lexacorp.com.pg> But note: CurrentDb.Execute strSQL Debug.Print CurrentDB.RecordsAffected will always return 0. You need to do this instead: Dim db as DAO.Database Set db = CurrentDB() ... db.Execute StrSQL Debug.Print db.RecordsAffected ... -- Stuart On 28 Feb 2011 at 21:17, jwcolby wrote: > You can also get NoRecsAffected from the db.Execute > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 9:03 PM, Brad Marks wrote: > > Stuart, > > > > Yes, thanks a million for the help. > > > > Here is what I learned tonight... > > > > By switching from > > > > "DoCmd.RunSQL SQL_String" > > > > to > > > > "CurrentDb.Execute SQL_String, dbFailOnError" > > > > I can trap Err.Number = 3022 (duplicate record) > > > > > > > > I really appreciate the help. I was pulling my hair out as I > > thought that the "DoCmd.RunSQL SQL_String" method would allow me to > > see the 3022 error. > > > > Brad > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com on behalf of Stuart > > McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] How to Trap > > ?Insert Error? (Duplicate record) causedby Indexed Field (No > > Duplicates) > > > > Hi Brad, > > > > I just answered this for you on Linked In. > > > > Use CurrentDB.Execute str_SQL ,dbFailOnError > > instead of DoCmd.RunSQL. > > > > Then look for Err.Number 3022 in your error trap. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Tue Feb 1 07:14:09 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 08:14:09 -0500 Subject: [AccessD] From a reader References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p> <58225A873021488D947CD8EBB29A382E@nant> Message-ID: Thank you Shamil -- wow... I am impressed, but then, you always do impress me. :) Susan H. > Hello Susan -- > > What is given? - MS SQL backend with billions of rows? > What is missing? - Relatively inexpensive way to implement web solutions > to > present MS SQL backend data's small subsets/summary information? > > if the answer on both of the above questions is 'Yes' then I suppose > simple > ASP.NET applications + .NET MS ReportViewer control can be used. > One example: http://shamils-19.hosting.parking.ru/nw4 (ms access backend > is > used here but using MS SQL backend doesn't differ a lot - in fact that > online MS Access backend-based solution is a port from original MS > SQL-based > backend solution) > > Some informational links on used for the above sample reporting > technolgies: > > http://www.gotreportviewer.com/ > http://technet.microsoft.com/en-us/library/dd220460.aspx > > And here MS WebMatrix - it wasn't used in the above sample but it can be > used by your reader I suppose: > http://www.asp.net/webmatrix > http://weblogs.asp.net/scottgu/archive/2010/07/06/introducing-webmatrix.aspx From jimdettman at verizon.net Tue Feb 1 07:56:58 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 01 Feb 2011 08:56:58 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Susan, There is this company: www.eqldata.com Which will let you take your Access app as is and run it over the web through a web browser. Don't know of anyone that's used them yet. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 08:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. > Well, there are a few things that come immediately to mind. Using a MS > Access FE with SQL backend will work great (fast, reliable etc) but she is > going to need to understand how you need to set up access and the > connection to the SQL Server using ADO and the connection strings. > > Using linked tables and bound forms are going to cripple performance and > probably reliablility as well. Not linked tables and no bound forms. > > Each user should have their own FE version (locked down as an MDE in the > old language). The Front end should basically be an empty shell with > unbound forms. You only pull in the data you need, when you need it and > absolutely make the stored procs on the SQL Server do all the heavy > lifting. Understand how to use pass thru queries to pull data into > Access. > > You should only push (write) back to the server anything that has been > changed and needs to be updated. Normally much of the data can be pulled > in as read only anyway, this goes for combo box data as well (again I pull > into Access from the server using a Just in Time approach). > > Sharepoint isn't going to help at this stage, although I believe that > Access 2010 is rather neat with sharepoint integration. I have no > experience of it though, just what I have read. > > If you want true web based, you really should just bite the bullet and use > a C#.net (say ASP.net) front end to SQL Server back. ok, it will take > time and money to develop, but once you have it in place it will deliver. > > This reminds me of the ol' business triangle. Choose any two options, but > lose the 3rd option. Cheap, Fast, Good. > > I hope she can go for "Good" and "Fast" and make the investment in > effort/money. Of course that is not always an option... Be good to read > what others have to say. > > cheers > Darryl. > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, 1 February 2011 12:22 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] From a reader > > I've been corresponding (lightly) with a reader who needs to upsize an > Access 2007 database to SQL Server -- ultimately, she's looking for a web > solution. It sounds like an excruciating application -- she said it takes > hours to run queries. I think she's looking for two things. First, she > wants something to analyze the Access database to make it more efficient. > (I haven't asked who built it to begin with, her or a professional > developer.) I told her to start with the utilities already there, the > performance and table analyzers. Are there any third-party products that > do more or work better? Second, she wants a plug-in GUI -- I've never > heard of such a thing, but I'll let you guys read her request and if you > have something to suggest, I'll relay it. Thanks! > > Susan H. > "What I am asking is: Is there a design solution that would make a large > sluggish access application scalable, faster, easier to distribute to > remote sites? All that I have read to date - is that SQL Server as the > best and most practiced solution. But, I still see that as "tons" of data > still being pushed between ACCESS and SQL Server - so how is that really > better. Is there a WEB or Sharepoint solution that would work as the > ACCESS GUI front-end and a backend SQL Server to crunch the billions of > rows into the summary levels of data?" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________________________________ ___________ > > The information transmitted in this message and its attachments (if any) > is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, dissemination or other use of, or taking of any action in > reliance > upon this information, by persons or entities other than the intended > recipient is > prohibited. > > If you have received this in error, please contact the sender and delete > this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute > the information contained in this e-mail and any attached files, with the > permission > of the sender. > > This message has been scanned for viruses. > ____________________________________________________________________________ ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Feb 1 08:04:58 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 09:04:58 -0500 Subject: [AccessD] From a reader References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <851BE7E57C5043D8B0433DF1356CD092@salvationomc4p> Thanks Jim -- thanks everyone. I think you guys have really helped her! Susan H. > Susan, > > There is this company: > > www.eqldata.com > > Which will let you take your Access app as is and run it over the web > through a web browser. > > Don't know of anyone that's used them yet. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Monday, January 31, 2011 08:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > Darryl -- I agree. She's looking for a canned solution and I've told her > there isn't any such thing -- but I thought I'd ask. You never know. :) > > Susan H. > > >> Well, there are a few things that come immediately to mind. Using a MS >> Access FE with SQL backend will work great (fast, reliable etc) but she >> is > >> going to need to understand how you need to set up access and the >> connection to the SQL Server using ADO and the connection strings. >> >> Using linked tables and bound forms are going to cripple performance and >> probably reliablility as well. Not linked tables and no bound forms. >> >> Each user should have their own FE version (locked down as an MDE in the >> old language). The Front end should basically be an empty shell with >> unbound forms. You only pull in the data you need, when you need it and >> absolutely make the stored procs on the SQL Server do all the heavy >> lifting. Understand how to use pass thru queries to pull data into >> Access. >> >> You should only push (write) back to the server anything that has been >> changed and needs to be updated. Normally much of the data can be pulled >> in as read only anyway, this goes for combo box data as well (again I >> pull > >> into Access from the server using a Just in Time approach). >> >> Sharepoint isn't going to help at this stage, although I believe that >> Access 2010 is rather neat with sharepoint integration. I have no >> experience of it though, just what I have read. >> >> If you want true web based, you really should just bite the bullet and >> use > >> a C#.net (say ASP.net) front end to SQL Server back. ok, it will take >> time and money to develop, but once you have it in place it will deliver. >> >> This reminds me of the ol' business triangle. Choose any two options, >> but > >> lose the 3rd option. Cheap, Fast, Good. >> >> I hope she can go for "Good" and "Fast" and make the investment in >> effort/money. Of course that is not always an option... Be good to read >> what others have to say. >> >> cheers >> Darryl. >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> Sent: Tuesday, 1 February 2011 12:22 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] From a reader >> >> I've been corresponding (lightly) with a reader who needs to upsize an >> Access 2007 database to SQL Server -- ultimately, she's looking for a web >> solution. It sounds like an excruciating application -- she said it takes >> hours to run queries. I think she's looking for two things. First, she >> wants something to analyze the Access database to make it more efficient. >> (I haven't asked who built it to begin with, her or a professional >> developer.) I told her to start with the utilities already there, the >> performance and table analyzers. Are there any third-party products that >> do more or work better? Second, she wants a plug-in GUI -- I've never >> heard of such a thing, but I'll let you guys read her request and if you >> have something to suggest, I'll relay it. Thanks! >> >> Susan H. >> "What I am asking is: Is there a design solution that would make a large >> sluggish access application scalable, faster, easier to distribute to >> remote sites? All that I have read to date - is that SQL Server as the >> best and most practiced solution. But, I still see that as "tons" of data >> still being pushed between ACCESS and SQL Server - so how is that really >> better. Is there a WEB or Sharepoint solution that would work as the >> ACCESS GUI front-end and a backend SQL Server to crunch the billions of >> rows into the summary levels of data?" >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ____________________________________________________________________________ > ___________ >> >> The information transmitted in this message and its attachments (if any) >> is intended >> only for the person or entity to which it is addressed. >> The message may contain confidential and/or privileged material. Any >> review, >> retransmission, dissemination or other use of, or taking of any action in >> reliance >> upon this information, by persons or entities other than the intended >> recipient is >> prohibited. >> >> If you have received this in error, please contact the sender and delete >> this e-mail >> and associated material from any computer. >> >> The intended recipient of this e-mail may only use, reproduce, disclose >> or > >> distribute >> the information contained in this e-mail and any attached files, with the >> permission >> of the sender. >> >> This message has been scanned for viruses. >> > ____________________________________________________________________________ > ___________ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Feb 1 13:01:40 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:01:40 -0800 Subject: [AccessD] OT Yuma In-Reply-To: <001901cbbf11$9d3d7170$5bdea8c0@edz1> References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: My cousin lives in El Centro. She always wants us to come visit her. We're like, um, why don't you come out to us, by the beach. :) On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > > Yikes. > > I had an assignment in El Centro, not far > from Yuma, for a couple of months. > > The area brought a whole new meaning to > the word "hot". > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, January 27, 2011 1:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dual Monitors > > > > The 110 sounds like Phoenix. Did I guess correctly ? > > Even worse. Yuma. > > John W. Colby > www.ColbyConsulting.com > > > On 1/27/2011 3:05 PM, Edward Zuris wrote: > > > > When the Salmon come in to spawn, they > > would gather just a few miles from Everett > > near the San Juan area before heading to > > Canada or USA rivers. > > > > Great fishing, and very few people take > > advantage of it. > > > > I am in Albuquerque, NM. > > > > Starting in late May, or early June, the > > temperatures start climb up to the 100's. > > > > At the moment it is high dry cold winds > > with a few dust storms. Sometime maybe a > > half inch of snow every so often. After > > May it is total bake mode. But the desert > > and dry climate grows on you after awhile. > > > > I grew up in NM, so I know a number of good > > fishing holes. I go up into the mountains > > to fish for trout during the summer. But > > catching a ten pound king salmon really makes > > your day and puts any quarter pound mountain > > trout to shame. > > > > The 110 sounds like Phoenix. Did I guess > > correctly ? > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, January 27, 2011 10:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dual Monitors > > > > > > I grew up in the American southwest desert. > > 110 degrees F every day. I lived with my > > father for about 6 months in Everett > > Washington when I was a freshman in High School. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 1/27/2011 11:38 AM, Edward Zuris wrote: > >> > >> From what I hear from my friends overseas > >> a lot of computer related products in the > >> USA are rather inexpensive compared their > >> local markets. However, I am sure there > >> are places outside the USA has even cheaper > >> prices. > >> > >> Every Nation has its issues. Russian might, > >> or might not, be going back it's old USSR > >> ways. And in the USA we have more than our > >> fair share of crazy people. And we elect > >> a number of our crazies into high positions > >> into the government. > >> > >> Of the two, I'll think we are better off > >> with the cheaper computer monitors and some > >> crazies, in Congress. We also get to watch > >> them on CSPAN TV. It is like watching a > >> circus in slow motion. > >> > >> The USA has many cultures and climates. > >> > >> I live in the American Southwest desert. > >> One place I really liked was the American > >> Northwest. Fished for salmon around Everett. > >> Where John lives it can get hot and humid > >> in the summer, but there is good fishing > >> near by. I spent a summer near Asheville, > >> and the weekends at the Outer Banks. > >> > >> As far as I am concerned, Shamil, you are > >> welcome. > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > >> Salakhetdinov > >> Sent: Wednesday, January 26, 2011 12:56 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Dual Monitors > >> > >> > >> Hi John -- > >> > >> <<< > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >>>>> > >> That's a ridiculous price for St.Petersburg, Russia. > >> I should start thinking seriously how to get moved there in your > >> country... Especially taking into that Mr. Putin seems to be planning > > >> to get here at power on year 2012 for another 12 (or 14!?) years... > >> > >> Thank you. > >> > >> -- > >> Shamil > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: 26 ?????? 2011 ?. 21:26 > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Dual Monitors > >> > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> On 1/26/2011 7:43 AM, Dan Waters wrote: > >>> Yowser!! :-) You must have to swivel in your chair to look from one > > >>> side to the other! > >>> > >>> What brand of monitors did you get? Any thoughts on those? I have > a > >>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - > >> still > >> great). > >>> These have 1600 X 1200 resolution, and the screens are non-glare. > >>> > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >>> Sent: Tuesday, January 25, 2011 9:25 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: Re: [AccessD] From Lake Woebegone > >>> > >>> LOL, yep those big monitors are great for that kind of stuff. > >>> > >>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 > >>> native resolution. Pretty darned awesome. > >>> > >>> John W. Colby > >>> www.ColbyConsulting.com > >>> > >>> On 1/25/2011 10:05 PM, Mark Simms wrote: > >>>> I LOVE that site. I joined !! > >>>> I'm also now posting from my new Hanns-G 28" monitor....pretty > >> impressive. > >>>> One must stay 2 FEET away from this "big boy". > >>>> > >>>> It's also funny, because Access 2007's tabbed interface almost > >>>> seems > > > >>>> to mandate a large format monitor. I can have 50 columns showing in > > >>>> datasheet view now ! > >>>> > >>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan > >>>>> wrote: > >>>>>> So common that there's a programmers' website out there - > >>>>> http:/www.thedailywtf.com > >>>> > >>>> > >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 1 13:08:45 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:08:45 -0800 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: Can you make an ADP? On Mon, Jan 31, 2011 at 4:31 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, 1 February 2011 2:15 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] SQL constant harassment > > I am doing a demo Access database against a SQL Server BE. Access is > constantly "harassing" me with pop-ups to provide log in information. At > odd times, not always. But when it happens it is for each (bound) form > getting data. So a main form with subforms, and apparently even combo > boxes, it will pop up the box to select the user authorized to do this. > > What do I do to make this go away? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 1 13:59:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 01 Feb 2011 14:59:34 -0500 Subject: [AccessD] OT Yuma In-Reply-To: References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: <4D486626.9040605@colbyconsulting.com> LOL. Yup, El Centro, the hotbed of things to do. John W. Colby www.ColbyConsulting.com On 2/1/2011 2:01 PM, David McAfee wrote: > My cousin lives in El Centro. She always wants us to come visit her. > > We're like, um, why don't you come out to us, by the beach. :) > > > On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > >> >> Yikes. >> >> I had an assignment in El Centro, not far >> from Yuma, for a couple of months. >> >> The area brought a whole new meaning to >> the word "hot". >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, January 27, 2011 1:47 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Dual Monitors >> >> >> > The 110 sounds like Phoenix. Did I guess correctly ? >> >> Even worse. Yuma. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> On 1/27/2011 3:05 PM, Edward Zuris wrote: >>> >>> When the Salmon come in to spawn, they >>> would gather just a few miles from Everett >>> near the San Juan area before heading to >>> Canada or USA rivers. >>> >>> Great fishing, and very few people take >>> advantage of it. >>> >>> I am in Albuquerque, NM. >>> >>> Starting in late May, or early June, the >>> temperatures start climb up to the 100's. >>> >>> At the moment it is high dry cold winds >>> with a few dust storms. Sometime maybe a >>> half inch of snow every so often. After >>> May it is total bake mode. But the desert >>> and dry climate grows on you after awhile. >>> >>> I grew up in NM, so I know a number of good >>> fishing holes. I go up into the mountains >>> to fish for trout during the summer. But >>> catching a ten pound king salmon really makes >>> your day and puts any quarter pound mountain >>> trout to shame. >>> >>> The 110 sounds like Phoenix. Did I guess >>> correctly ? >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, January 27, 2011 10:06 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Dual Monitors >>> >>> >>> I grew up in the American southwest desert. >>> 110 degrees F every day. I lived with my >>> father for about 6 months in Everett >>> Washington when I was a freshman in High School. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 1/27/2011 11:38 AM, Edward Zuris wrote: >>>> >>>> From what I hear from my friends overseas >>>> a lot of computer related products in the >>>> USA are rather inexpensive compared their >>>> local markets. However, I am sure there >>>> are places outside the USA has even cheaper >>>> prices. >>>> >>>> Every Nation has its issues. Russian might, >>>> or might not, be going back it's old USSR >>>> ways. And in the USA we have more than our >>>> fair share of crazy people. And we elect >>>> a number of our crazies into high positions >>>> into the government. >>>> >>>> Of the two, I'll think we are better off >>>> with the cheaper computer monitors and some >>>> crazies, in Congress. We also get to watch >>>> them on CSPAN TV. It is like watching a >>>> circus in slow motion. >>>> >>>> The USA has many cultures and climates. >>>> >>>> I live in the American Southwest desert. >>>> One place I really liked was the American >>>> Northwest. Fished for salmon around Everett. >>>> Where John lives it can get hot and humid >>>> in the summer, but there is good fishing >>>> near by. I spent a summer near Asheville, >>>> and the weekends at the Outer Banks. >>>> >>>> As far as I am concerned, Shamil, you are >>>> welcome. >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Wednesday, January 26, 2011 12:56 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> >>>> Hi John -- >>>> >>>> <<< >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>>>>> >>>> That's a ridiculous price for St.Petersburg, Russia. >>>> I should start thinking seriously how to get moved there in your >>>> country... Especially taking into that Mr. Putin seems to be planning >> >>>> to get here at power on year 2012 for another 12 (or 14!?) years... >>>> >>>> Thank you. >>>> >>>> -- >>>> Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: 26 ?????? 2011 ?. 21:26 >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> On 1/26/2011 7:43 AM, Dan Waters wrote: >>>>> Yowser!! :-) You must have to swivel in your chair to look from one >> >>>>> side to the other! >>>>> >>>>> What brand of monitors did you get? Any thoughts on those? I have >> a >>>>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - >>>> still >>>> great). >>>>> These have 1600 X 1200 resolution, and the screens are non-glare. >>>>> >>>>> Dan >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Tuesday, January 25, 2011 9:25 PM >>>>> To: Access Developers discussion and problem solving >>>>> Subject: Re: [AccessD] From Lake Woebegone >>>>> >>>>> LOL, yep those big monitors are great for that kind of stuff. >>>>> >>>>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 >>>>> native resolution. Pretty darned awesome. >>>>> >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> >>>>> On 1/25/2011 10:05 PM, Mark Simms wrote: >>>>>> I LOVE that site. I joined !! >>>>>> I'm also now posting from my new Hanns-G 28" monitor....pretty >>>> impressive. >>>>>> One must stay 2 FEET away from this "big boy". >>>>>> >>>>>> It's also funny, because Access 2007's tabbed interface almost >>>>>> seems >>> >>>>>> to mandate a large format monitor. I can have 50 columns showing in >> >>>>>> datasheet view now ! >>>>>> >>>>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan >>>>>>> wrote: >>>>>>>> So common that there's a programmers' website out there - >>>>>>> http:/www.thedailywtf.com >>>>>> >>>>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Thu Feb 3 10:19:37 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 08:19:37 -0800 Subject: [AccessD] OT: Access and SQL server Message-ID: <4D4AD599.4020606@nanaimo.ark.com> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From Gustav at cactus.dk Thu Feb 3 10:45:25 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Feb 2011 17:45:25 +0100 Subject: [AccessD] OT: Access and SQL server Message-ID: Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From jwcolby at colbyconsulting.com Thu Feb 3 10:51:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 11:51:25 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <4D4ADD0D.8000207@colbyconsulting.com> >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks From ssharkins at gmail.com Thu Feb 3 11:01:04 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:01:04 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: > >I'll find a book with great reviews and the next review they basically > >say it is not so good and > so on and so on. > > What I have found is that is true for any product anywhere. There are > some people who just don't like *anything* and they are the biggest > complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I > try and get 85% to be 5, 4, and 3 star. ==========Sometimes -- I've run into this myself, at least twice -- they're not even reviewing the right book. :( You get trashed, and it's not even your book. Susan H. From jm.hwsn at gmail.com Thu Feb 3 11:04:11 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 3 Feb 2011 11:04:11 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4ADD0D.8000207@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> I agree, but I also take into consideration who recommends a book. If I recognize someone on this list that reviews a book, I'd give them more weight than anyone else. On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." by Phil Mitchell? Reviews are good on Amazon. Although it might be a little dated (2006). Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Feb 3 11:14:10 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:14:10 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4AE262.7030001@nanaimo.ark.com> Hey All That is why I am asking the list, I value their expert opinions. Rather than relying on someone who is either having a good or bad day. Also I don't want to be spending $50 or $60 on the wrong book. Susan and Martin I think I have heard those names before, they sound familiar. Just kidding. jm.hwsn wrote: >I agree, but I also take into consideration who recommends a book. >If I recognize someone on this list that reviews a book, I'd give them more >weight than anyone else. >On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." >by Phil Mitchell? Reviews are good on Amazon. Although it might be a little >dated (2006). >Thanks, >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Thursday, February 03, 2011 10:51 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say >it is not so good and so on and so on. > >What I have found is that is true for any product anywhere. There are some >people who just don't like *anything* and they are the biggest complainers. > >I look for the highest average, and simultaneously not a huge 1 star. I try >and get 85% to be 5, 4, and 3 star. > > >John W. Colby >www.ColbyConsulting.com > >On 2/3/2011 11:19 AM, Tony Septav wrote: > > >>Hey All >>Can anyone recommend a good book for learning "how to". I have googled and >> >> >a I'll find a book with > > >>great reviews and the next review they basically say it is not so good and >> >> >so on and so on. Any > > >>suggestions. >> >>Thanks >> >> From ssharkins at gmail.com Thu Feb 3 11:22:13 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:22:13 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> Message-ID: <20D251F9002D438789F292A4EB233918@salvationomc4p> > That is why I am asking the list, I value their expert opinions. Rather > than relying on someone who is either having a good or bad day. Also I > don't want to be spending $50 or $60 on the wrong book. > Susan and Martin I think I have heard those names before, they sound > familiar. > Just kidding. ========I don't think either one of us spend as much time here as we use to! ;) The book that Martin and I wrote is my best one -- I am very proud of it. The SQL sections are timeless -- not much is going to change there. A lot of the upsizing and using information is going to be different of course. It just depends on why you need the book -- if you need a SQL companion and comparison for Jet and T-SQL, it's a good choice. Martin can chime in if he sees this. I haven't done anything with Access 2007/1010 to SQL Server 8, but I would assume that the general process/preparations is still very similar, even though, the actual step-by-step instructions aren't going to be the same. We wrote that book in 2001! Susan H. From iggy at nanaimo.ark.com Thu Feb 3 11:31:07 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:31:07 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <20D251F9002D438789F292A4EB233918@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> <20D251F9002D438789F292A4EB233918@salvationomc4p> Message-ID: <4D4AE65B.8000805@nanaimo.ark.com> Hey Susan I am leaning towards your and Martin's book (I like to buy locally). The 3 books I have focused in on are all dated and that is kind of the conundrum. Yes I kind of want a SQL companion that I can learn from with the book sitting on my lap. Susan Harkins wrote: >> That is why I am asking the list, I value their expert opinions. >> Rather than relying on someone who is either having a good or bad >> day. Also I don't want to be spending $50 or $60 on the wrong book. >> Susan and Martin I think I have heard those names before, they sound >> familiar. >> Just kidding. > > > ========I don't think either one of us spend as much time here as we > use to! ;) The book that Martin and I wrote is my best one -- I am > very proud of it. The SQL sections are timeless -- not much is going > to change there. A lot of the upsizing and using information is going > to be different of course. It just depends on why you need the book -- > if you need a SQL companion and comparison for Jet and T-SQL, it's a > good choice. Martin can chime in if he sees this. I haven't done > anything with Access 2007/1010 to SQL Server 8, but I would assume > that the general process/preparations is still very similar, even > though, the actual step-by-step instructions aren't going to be the > same. We wrote that book in 2001! > > Susan H. > > From df.waters at comcast.net Thu Feb 3 11:33:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 11:33:24 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <075701507B7443FBB72A9B2003835317@DanWaters> Hi Tony, 1) Microsoft Access Developer's Guide to SQL Server Available new or used - 5-stars on Amazon. http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 /ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 2) Access 2002 Enterprise Developer's Guide + Access 2002 Desktop Developer's Guide Available new or used - 5-stars on Amazon. http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 Both of these cover mdb's and adp's. My thoughts - if you're going to use an mdb, then all you really need to learn is how to set up the table links between the mdb application file and the SQL Server database. If you're going to go the extra mile and set up an adp, then you may want to consider going a mile and a half and use a .Net language and SQL Server. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 10:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Feb 3 11:45:17 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:45:17 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> Message-ID: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Check for a used one -- if I had any author copies left, I'd send it to you myself! Susan H. > Hey Susan > I am leaning towards your and Martin's book (I like to buy locally). The 3 > books I have focused in on are all dated and that is kind of the > conundrum. Yes I kind of want a SQL companion that I can learn from with > the book sitting on my lap. > From iggy at nanaimo.ark.com Thu Feb 3 12:08:25 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:08:25 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <075701507B7443FBB72A9B2003835317@DanWaters> References: <4D4AD599.4020606@nanaimo.ark.com> <075701507B7443FBB72A9B2003835317@DanWaters> Message-ID: <4D4AEF19.6040501@nanaimo.ark.com> Hey Dan Thanks for the mdb and adp advice. Dan Waters wrote: >Hi Tony, > >1) Microsoft Access Developer's Guide to SQL Server > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 >/ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 > > >2) Access 2002 Enterprise Developer's Guide + > Access 2002 Desktop Developer's Guide > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 >06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 > >http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ >ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 > > >Both of these cover mdb's and adp's. > >My thoughts - if you're going to use an mdb, then all you really need to >learn is how to set up the table links between the mdb application file and >the SQL Server database. If you're going to go the extra mile and set up an >adp, then you may want to consider going a mile and a half and use a .Net >language and SQL Server. > >Good Luck! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Thursday, February 03, 2011 10:20 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Access and SQL server > >Hey All >Can anyone recommend a good book for learning "how to". I have googled >and a I'll find a book with great reviews and the next review they >basically say it is not so good and so on and so on. Any suggestions. > >Thanks > > From iggy at nanaimo.ark.com Thu Feb 3 12:09:49 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:09:49 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Message-ID: <4D4AEF6D.5020808@nanaimo.ark.com> Hey Susan I am kind of disappointed I was hoping for an autographed edition. Thanks for the thought though. Susan Harkins wrote: > Check for a used one -- if I had any author copies left, I'd send it > to you myself! > > Susan H. > >> Hey Susan >> I am leaning towards your and Martin's book (I like to buy locally). >> The 3 books I have focused in on are all dated and that is kind of >> the conundrum. Yes I kind of want a SQL companion that I can learn >> from with the book sitting on my lap. >> > From jimdettman at verizon.net Thu Feb 3 12:19:53 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 03 Feb 2011 13:19:53 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <3556A738030B4920ADB3B0052805FFA8@XPS> Tony, Check out "The Best of Both Worlds: Access-SQL Server Optimization" here: http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp Has some invaluable tips and insights on using Access as a FE with a SQL Server backend. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 11:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 3 12:39:39 2011 From: john at winhaven.net (John Bartow) Date: Thu, 3 Feb 2011 12:39:39 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: References: Message-ID: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Hey Tony, I've been reviewing the book (that Gustav recommends below) over the last couple of months. I have an older Access 97 FE/BE system that I have to upgrade to Access 2003 and (unbelievably) then have to upgrade again next year to 2010/SQLServer. I'd prefer to do it in one but not my decision. I'm reviewing this so the second upgrade goes smooth as ice :o) The book is dated (of course, its early century material) but there's good, timeless advice in it. And Susan's writing style always makes technical materials easier to read. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 03, 2011 10:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Access and SQL server Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 13:05:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:05:11 -0500 Subject: [AccessD] Opening an Access application multiple times Message-ID: <4D4AFC67.7070902@colbyconsulting.com> I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:09:46 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:09:46 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:13:19 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:13:19 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4AFC67.7070902@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 2:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Opening an Access application multiple times I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:23:35 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:23:35 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From ssharkins at gmail.com Thu Feb 3 13:30:43 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 14:30:43 -0500 Subject: [AccessD] OT: Access and SQL server References: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Message-ID: And Susan's writing style always makes technical > materials easier to read. ======Thank you John -- that was very nice of you to say. I appreciate it a great deal! Susan H. From jwcolby at colbyconsulting.com Thu Feb 3 13:37:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:37:27 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4B03F7.9050409@colbyconsulting.com> I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks From jwcolby at colbyconsulting.com Thu Feb 3 13:40:52 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:40:52 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: <4D4B04C4.2080602@colbyconsulting.com> >I usually just open another instance of Access and then.. Yea. These are end users so... batch file it is. John W. Colby www.ColbyConsulting.com On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 2:05 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Opening an Access application multiple times > > I am trying to open an access application more than once - two instances open at the same time. > When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? > > When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. > > I can live with having to open it from a batch file but I am just wondering why this is happening. > > -- > 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 davidmcafee at gmail.com Thu Feb 3 14:01:23 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 3 Feb 2011 12:01:23 -0800 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B04C4.2080602@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: John, I do it as Lambert described. Quick question. Why do the users need to open two copies of the database? On Thu, Feb 3, 2011 at 11:40 AM, jwcolby wrote: > >I usually just open another instance of Access and then.. > > Yea. These are end users so... batch file it is. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > >> Don't know why but I see the same thing happening. I usually just open >> another instance of Access and then have it open the second instance of the >> MDB file via the File menu. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto: >> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 03, 2011 2:05 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Opening an Access application multiple times >> >> I am trying to open an access application more than once - two instances >> open at the same time. >> When I double click the FE (in explorer) it opens. When I go back to >> explorer and double click it again, it just switches me back to the open >> instance. Shouldn't it open the application a second time? >> >> When, from a batch file, I so something like "SomePath\Access.exe" >> SomeAccessFe.mdb it in fact opens the application a second time. >> >> I can live with having to open it from a batch file but I am just >> wondering why this is happening. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 14:35:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 15:35:37 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: <4D4B1199.7060605@colbyconsulting.com> LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just open >>> another instance of Access and then have it open the second instance of the >>> MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two instances >>> open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back to >>> explorer and double click it again, it just switches me back to the open >>> instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 14:42:49 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 15:42:49 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B1199.7060605@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: One other thing: I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Opening an Access application multiple times LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just >>> open another instance of Access and then have it open the second >>> instance of the MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two >>> instances open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back >>> to explorer and double click it again, it just switches me back to >>> the open instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 15:02:47 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:02:47 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: <4D4B17F7.4020505@colbyconsulting.com> >*At their instance* (I need to stress that) It is pretty bad when I am stressing my own mis-spellings. ;) *At their insistance* (I need to stress that) John W. Colby www.ColbyConsulting.com On 2/3/2011 3:42 PM, Heenan, Lambert wrote: > One other thing: > > I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 3:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Opening an Access application multiple times > > LOL. Because they do. Not uncommon really. > > In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. > > Can you say *busy*? > > The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. > > Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... > > Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 3:01 PM, David McAfee wrote: >> John, I do it as Lambert described. >> >> Quick question. Why do the users need to open two copies of the database? >> >> >> >> On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: >> >>>> I usually just open another instance of Access and then.. >>> >>> Yea. These are end users so... batch file it is. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >>> >>>> Don't know why but I see the same thing happening. I usually just >>>> open another instance of Access and then have it open the second >>>> instance of the MDB file via the File menu. >>>> >>>> Lambert >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com [mailto: >>>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Thursday, February 03, 2011 2:05 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Opening an Access application multiple times >>>> >>>> I am trying to open an access application more than once - two >>>> instances open at the same time. >>>> When I double click the FE (in explorer) it opens. When I go back >>>> to explorer and double click it again, it just switches me back to >>>> the open instance. Shouldn't it open the application a second time? >>>> >>>> When, from a batch file, I so something like "SomePath\Access.exe" >>>> SomeAccessFe.mdb it in fact opens the application a second time. >>>> >>>> I can live with having to open it from a batch file but I am just >>>> wondering why this is happening. >>>> >>>> -- >>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 15:13:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:13:26 -0500 Subject: [AccessD] I need an archive / copy widget Message-ID: <4D4B1A76.5010507@colbyconsulting.com> I use library (MDA) files. I use nested library files, the FE references one lib which references another lib. For whatever reason, if I don't do a full decompile / compile / compact etc on all libs / FE starting at the deepest referenced lib, and then use all the freshly DCCRed parts, the FE will hand (refuse to close). Do a full DCCR on all the parts, *in order* and then use all the parts and voila, no more hang. Which means that I now have a matched set of files where the FE only works with the libs that it was DCCRed with. So I need something that allows me to zip up all the files in the set in a (production or test) directory, then transfer into that (production or test) directory the freshly DCCRed files from my dev directory. Make sense? Has anyone got such a widget? -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Feb 3 16:34:57 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 3 Feb 2011 16:34:57 -0600 Subject: [AccessD] Modifying Charts with VBA References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad From Darryl.Collins at iag.com.au Thu Feb 3 16:38:51 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:38:51 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: References: Message-ID: <201102032242.p13MgRnk010389@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Thu Feb 3 16:43:08 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:43:08 +1100 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4B03F7.9050409@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com>, <4D4B03F7.9050409@colbyconsulting.com> Message-ID: <201102032243.p13MhLhA015541@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ HAHAHAHAHA! nice one John. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: Friday, 4 February 2011 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From df.waters at comcast.net Thu Feb 3 16:56:28 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 16:56:28 -0600 Subject: [AccessD] Modifying Charts with VBA In-Reply-To: References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> This is a link to the MS Graph 10 Object Model. http://msdn.microsoft.com/en-us/library/aa141052(office.10).aspx Could be a different version for Access 2007. Per this you should have a file on your PC name VBAGR10.chm if you've installed Access XP. I've got it and it's in C:\Program Files(x86)\Microsoft Office\Office11\vbagr10.chm. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 03, 2011 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Modifying Charts with VBA All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 3 17:01:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 3 Feb 2011 17:01:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Not to mention that if she is running into problems with the current system, a 'canned' solution would most likely carry those same issues along with it. A long time ago, I built a 'canned' solution that would display reports from an access database across the web (and any 'UI' prompts, like [Enter Product Number] that were in the query would be read, recreated into a web format to be displayed to the user, and then the user's response sent back to the actual .mdb). It worked great. Toyed with the idea of doing the same for forms, and ran into a huge brick wall with how Access subclasses the windows in its forms. So I never took it any further. But to take an Access mdb, and just 'dump it' into a web application loses the benefit of some of the great features a web application can incorporate. For instance, if you were to just create a Dropdown box, that 'populated' some fields in an ASP.NET application, ASP.Net would let you make it 'look' like an access combobox, and act like it, but what's happening in the background is clunky. First, .Net is creating javascript on the client side that is reacting to the 'OnClick' of the combobox (or index changed event), then it's sending all the current web form info back to the server (as a PostBack), where the web server then does what your .Net (VB or C#) code wants to do, in filling in the fields, and sends all that back to the user. UGLY. Works, but ugly. If it's a huge form, or a very slow connection, that creates noticeable pauses and reloads on the web page. There is another solution: You can create a generic handler, that uses JQuery (AJAX) on the client side to just 'ask' the web server for the applicable data. Here's a generic handler (.ashx file) <%@ WebHandler Language="VB" Class="LoadDoctorInfo" %> Imports System Imports System.Web Public Class LoadDoctorInfo : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim intID As String = context.Request.QueryString("DoctorID") Dim strDocInfo As New StringBuilder Dim dr As New Doctor(intID) strDocInfo.Append("[{""DoctorName"":""" & dr.Name & """,") strDocInfo.Append("""Address1"":""" & dr.Address1 & """,") strDocInfo.Append("""Address2"":""" & dr.Address2 & """,") strDocInfo.Append("""City"":""" & dr.City & """,") strDocInfo.Append("""State"":""" & dr.State & """,") strDocInfo.Append("""Zip"":""" & dr.ZipCode & """,") strDocInfo.Append("""Phone"":""" & dr.Phone & """}]") context.Response.ContentType = "application/json" context.Response.ContentEncoding = Encoding.UTF8 context.Response.Write(strDocInfo.ToString()) context.Response.End() End Sub Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class The above file is stored on the web server, and is called using the follow javascript on the client end: The drop down list is filled with doctors and their IDs, the jquery-1.2.6.js file (which you can download from the web) has all the code necessary to make the above code work. It takes the ID of the combo, queries the webserver's generic handler ('LoadDoctorInfo.ashx') and then populates controls on the end user's form using data from what's returned by the handler. The user's form doesn't have to 'reload' against the webserver, and that interaction 'appears' to work just like a combo box on an Access form would work. There are several other tricks you can do with .asp pages which will help increase the performance of an application. While there may be 'canned' apps out there, which can stuff an application into a .Net solution, I doubt it will be very finely tuned or optimized. Heck, one of the features of ASP.Net that I fell in love with, is how easy it is to create a 'downloaded file' on the fly. (Say on a data form, you want to give the user the ability to download a .csv file of the data they are working on, with .asp, I would create the .csv file in a temp file, and then redirect them to that file... with ASP.Net, it's extremely easy to just interrupt the outbound feed, and just send the file on the fly. Probably could have done that in classic asp, but the tutorial to do that in asp.Net was quick and easy to find). No more temp files. Very slick. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 7:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 newsgrps at dalyn.co.nz Thu Feb 3 17:39:01 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 12:39:01 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade Message-ID: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From bill_patten at embarqmail.com Thu Feb 3 19:54:59 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 3 Feb 2011 17:54:59 -0800 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: ?David, I don't know if this will help as I do not have Access XP any more, I do however have an adp Access2003 and did the following tests. Created and ADE restored a Sql Server 2000 backup into a 2008 Sql Server Opened a Win7 32 bit VM with Office 2010 installed in it Opened the 2003 ADE with 2010 and used my built in change SQL Server routine to connect to the 2008 Server. My program then prompted me for the database update to the latest version. I pointed my update routine to the correct .Sql file and it updated the server correctly, this is good that means some things are working OK. I opened a few forms and made a few entries and everything seemed to work with one exception. My automatic throw away the ribbon and use the old Office menus did not work. I suspect this is because it is an ADE and can't make the changes to the program. Selecting Add-ins does show the Office Menus but on top of the ribbon. I don't use ADE's any more, but lock down the ADP as much as possible to keep users out. If they get in and screw it up then they can pay me to fix it. The good news is 2010 did open a 2003 ade and didn't complain, obviously more testing is needed but at least on the surface it appears to work. By the way, there are some free Office 2010 downloads available, I think good for 30 days or so and if you have any Virtual machines or spare tests machines you can easily do some testing without screwing up you development system. HTH Bill -------------------------------------------------- From: "David Emerson" Sent: Thursday, February 03, 2011 3:39 PM To: "Access Developers discussion and problem solving" ; Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Feb 3 20:25:16 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 15:25:16 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20110204022539.UKGH3726.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Bill, That looks very promising. Much appreciated. Regards David At 4/02/2011, Bill Patten wrote: >?David, >I don't know if this will help as I do not have Access XP any more, I do >however have an adp Access2003 and did the following tests. >Created and ADE >restored a Sql Server 2000 backup into a 2008 Sql Server >Opened a Win7 32 bit VM with Office 2010 installed in it >Opened the 2003 ADE with 2010 and used my built in change SQL Server routine >to connect to the 2008 Server. My program then prompted me for the database >update to the latest version. >I pointed my update routine to the correct .Sql file and it updated the >server correctly, this is good that means some things are working OK. >I opened a few forms and made a few entries and everything seemed to work >with one exception. >My automatic throw away the ribbon and use the old Office menus did not >work. I suspect this is because it is an ADE and can't make the changes to >the program. Selecting Add-ins does show the Office Menus but on top of the >ribbon. > >I don't use ADE's any more, but lock down the ADP as much as possible to >keep users out. If they get in and screw it up then they can pay me to fix >it. > > >The good news is 2010 did open a 2003 ade and didn't complain, obviously >more testing is needed but at least on the surface it appears to work. > >By the way, there are some free Office 2010 downloads available, I think >good for 30 days or so and if you have any Virtual machines or spare tests >machines you can easily do some testing without screwing up you development >system. > >HTH > >Bill > >-------------------------------------------------- >From: "David Emerson" >Sent: Thursday, February 03, 2011 3:39 PM >To: "Access Developers discussion and problem solving" >; >Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade > >I have a client who is looking at upgrading their SQL2005 to SQL2008. > >Currently we are running an Access XP ade connected to SQL2005. > >Does anyone have any experience or know if an Access XP ade will >connect to an SQL2008 database > >Will an Access XP ade run in Access 2010? > >Can Access 2010 be used to create an ade? > >Are there any issues I should be aware of in upgrading an SQL2005 >database to SQL2008? > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Feb 3 20:29:55 2011 From: marksimms at verizon.net (Mark Simms) Date: Thu, 03 Feb 2011 21:29:55 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <013601cbc413$698b9850$3ca2c8f0$@net> I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From jwcolby at colbyconsulting.com Thu Feb 3 21:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 22:21:46 -0500 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <4D4B70CA.1070107@colbyconsulting.com> And that is exactly why I am going to C# apps. I *hate* clunky web apps and I don't want to be the author of one. Eventually I will do C# and services. Maybe. If I can ever figure it out. ;) There's just too much to know. I think I'll turn it all over to Robbie and let him figure it all out. He can already tell me how to do all the stuff on the Windows 7 HTPC that I can't figure out. John W. Colby www.ColbyConsulting.com On 2/3/2011 9:29 PM, Mark Simms wrote: > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From Lambert.Heenan at chartisinsurance.com Fri Feb 4 08:15:56 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 4 Feb 2011 09:15:56 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: <201102032242.p13MgRnk010389@databaseadvisors.com> References: <201102032242.p13MgRnk010389@databaseadvisors.com> Message-ID: Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Feb 4 09:42:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 04 Feb 2011 07:42:39 -0800 Subject: [AccessD] OT: Hey Susan Message-ID: <4D4C1E6F.9080701@nanaimo.ark.com> Hey Susan Thought this may give you a laugh. Just checked out the price of your book at amazon.ca List price $54.95 CDN Amazon price $34.62 CDN Checked out the other sellers new and used price. Vary's from $28.72 to $147.00 CDN Look's like it is becoming a collector's item. From ssharkins at gmail.com Fri Feb 4 10:16:31 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 4 Feb 2011 11:16:31 -0500 Subject: [AccessD] OT: Hey Susan References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <3B1F14CD1ABB42CEB708EED0AA569DE3@salvationomc4p> Well, if you send me $147.00, I'll send you MY copy! ;) AHAHAHAHHAAH Susan H. > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From jwcolby at colbyconsulting.com Fri Feb 4 10:26:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 04 Feb 2011 11:26:03 -0500 Subject: [AccessD] OT: Hey Susan In-Reply-To: <4D4C1E6F.9080701@nanaimo.ark.com> References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <4D4C289B.2050504@colbyconsulting.com> LOL. I've seen that with other books. I think some people put a book up for sale at an outrageous price and just hope for the occasional dunce to click buy. John W. Colby www.ColbyConsulting.com On 2/4/2011 10:42 AM, Tony Septav wrote: > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From pcs.accessd at gmail.com Sat Feb 5 02:14:52 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 18:14:52 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server Message-ID: Hi all, I have created both a view and a SP based on tables in another Db (call it Db1) on the same instance of the SQL Server (2008). I created the view and SP in say Db2. A simple Select ... When I want to use either the View or the SP in a join with other tables in Db2 I am stuck. The SP containing the join to either view or SP based on Db1 tables and saved in Db2 will save Ok but not execute. Both the view and the SP that I am trying to join up will execute ok when running on their own. Funny thing is that in the Access FE I can create a pass through query based on the view and join the pass through query to an odbc linked table from Db2. Any one who can shed light on this? borge From paul.hartland at googlemail.com Sat Feb 5 02:56:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 5 Feb 2011 08:56:51 +0000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Have you got an example of the view and SP, if you want to run a view or SP in DB2 that uses tables/views in DB1 then you have to reference the database (which I am assuming that you are doing), but if not example is below: in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 Paul On 5 February 2011 08:14, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From pcs.accessd at gmail.com Sat Feb 5 03:22:06 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 19:22:06 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Yes, I am referencing the Db. I have created viewDb1 in Db2. The view executes ok in Db2 When I try and use viewDb1 in a join in another select SP in Db2 I can create and save the SP but it will not execute. It does not recognize the viwDb1. ?? I will now create the ViewDb1 in Db1 and on the SP in question in Db2 try and join up the Db1.viewDb1 ... We'll see. Thanks for the input. borge On Saturday, February 5, 2011, Paul Hartland wrote: > Have you got an example of the view and SP, if you want to run a view or SP > in DB2 that uses tables/views in DB1 then you have to reference the database > (which I am assuming that you are doing), but if not example is below: > > in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > Paul > > On 5 February 2011 08:14, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at roadrunner.com Sat Feb 5 08:02:40 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 5 Feb 2011 09:02:40 -0500 Subject: [AccessD] Archives In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <374E68B7D75E4258B8C2AE40475D03A8@DCYN3T81> Are the archives down? I am unable to search ... http://databaseadvisors.com/mailman/mmsearch/accessd "The webpage cannot be found" Thanks Bob Gajewski From pcs.accessd at gmail.com Sat Feb 5 18:58:43 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sun, 6 Feb 2011 10:58:43 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Follow up to this issue: I have these DBs: RMS_ADMIN and RMS_DATA I have created a view call vAppUsers in both RMS_ADMIN and RMS_DATA based on tables in RMS_ADMIN. The view created in RMS_DATA references the RMS_ADMIN. In RMS_DATA I can create a SP that joins the vAppUsers view; I can use the local vAppUsers created in RMS_DATA or I can use the RMS_ADMIN.dbo.vAppUsers. However, in both SPs whenever I hover over the vAppUsers object, the intellisense responds with: Invalid Object Name 'RMS_ADMIN.dbo.vAppUsers' or Invalid Object Name 'dbo.vAppUsers' (when using the local RMS_DATA.dbo.vAppUsers) and when hovering over a column: The Multi-part identifier "RMS_ADMIN.dbo.vAppUsers.User_ID" could not be bound or The Multi-part identifier "dbo.vAppUsers.User_ID" could not be bound (when using the local RMS_DATA.dbo.vAppUsers) The SPs executes OK Is it just a limitation on the part of the intellisense that I can just disregard. Or do I need to do something here? One of the SPs looks like that references the view in RMS_ADMIN looks like this: SELECT dbo.tlkpRS_CCAreas.*, dbo.tlkpAreaGroup.AreaGroupDescription, dbo. tlkpAreaGroup.DesignatedUserID, RMS_ADMIN.dbo.vAppUsers.User_LoginName FROM dbo.tlkpRS_CCAreas INNER JOIN dbo.tlkpAreaGroup ON dbo.tlkpRS_CCAreas.AreaGroup = dbo.tlkpAreaGroup.AreaGroupID INNER JOIN RMS_ADMIN.dbo.vAppUsers ON dbo.tlkpAreaGroup.DesignatedUserID = RMS_ADMIN. dbo.vAppUsers.User_ID --- regards borge On Sat, Feb 5, 2011 at 7:22 PM, Borge Hansen wrote: > Yes, I am referencing the Db. > I have created viewDb1 in Db2. > The view executes ok in Db2 > When I try and use viewDb1 in a join in another select SP in Db2 I > can create and save the SP but it will not execute. It does not > recognize the viwDb1. > ?? > I will now create the ViewDb1 in Db1 and on the SP in question in Db2 > try and join up the Db1.viewDb1 ... We'll see. > Thanks for the input. > borge > > On Saturday, February 5, 2011, Paul Hartland > wrote: > > Have you got an example of the view and SP, if you want to run a view or > SP > > in DB2 that uses tables/views in DB1 then you have to reference the > database > > (which I am assuming that you are doing), but if not example is below: > > > > in DB1 you have a view call it say ViewInDB1, to reference the view in > DB1 > > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > > > Paul > > > > On 5 February 2011 08:14, Borge Hansen wrote: > > > >> Hi all, > >> I have created both a view and a SP based on tables in another Db > >> (call it Db1) on the same instance of the SQL Server (2008). I created > >> the view and SP in say Db2. A simple Select ... > >> When I want to use either the View or the SP in a join with other > >> tables in Db2 I am stuck. The SP containing the join to either view or > >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. > >> Both the view and the SP that I am trying to join up will execute ok > >> when running on their own. > >> Funny thing is that in the Access FE I can create a pass through query > >> based on the view and join the pass through query to an odbc linked > >> table from Db2. > >> Any one who can shed light on this? > >> borge > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > -- > > Paul Hartland > > paul.hartland at googlemail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > From Darryl.Collins at iag.com.au Sun Feb 6 17:29:13 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 7 Feb 2011 10:29:13 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: Message-ID: <201102062329.p16NTG9m003348@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hey Lambert, If you want, send me a copy of the target XL file and the Access code modules used to call it, I will see if I can replicate the problem here, or see if there is anything funky with the XL file. Always interested in these sort of issues. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Saturday, 5 February 2011 1:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 7 07:15:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 08:15:23 -0500 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: <4D4FF06B.9010304@colbyconsulting.com> It feels like a security issue. At my office I am the owner of all the databases. I have many (hundreds) of databases and I have always used the db.dbo.table.view addressing to create views, dynamic SQL etc. most of which references other databases. I have a handful of (a dozen) databases which are what I call "data" databases, which hold name / address lists. In the past I used SPs heavily which operated on data from each other. I also use C# to execute code updating or appending records from one database to another. the key to me is the dbname.dbo. syntax, as long as I have that the queries work fine. Again though, all of the databases are owned by the same owner so rights are not an issue. John W. Colby www.ColbyConsulting.com On 2/5/2011 3:14 AM, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge From jwcolby at colbyconsulting.com Mon Feb 7 11:05:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 12:05:04 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: <4D502640.50309@colbyconsulting.com> > I sent a demo SQL dB to you off-list. Did you get it? AFAICT I did not get that offline. I am trying to build an access application which installs on a user's system somewhere out in the world. 1) They are not local to my machine, they come in to my SQL Server instance over Hamachi. 1a) They have no means to login directly to the server instance with a username / password. 2) They are going to run on a 2007 run-time. 3) The runtime is intentionally unhelpful. 4) In testing it just gives me a "there was an error executing the command" when I try to open a form. When I try to open the same thing under the full version Access it is asking for a logon as it attempts to open the first form. My guess is that the runtime is attempting to open this SQl Server login form and isn't allowed to by the runtime. Thus I have to set up the linked tables to just use a correct username / password. I think I can embed this directly into the sql connect string that is part of the tabledef.connect but was attempting to avoid that. That will be my next test just to ensure that it is in fact the issue here. John W. Colby www.ColbyConsulting.com On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren From markamatte at hotmail.com Mon Feb 7 13:27:19 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:27:19 +0000 Subject: [AccessD] Access Limits In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com> Message-ID: Hello All, Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. What is the limitation on linking a text/csv file? Thanks, Mark A. Matte From garykjos at gmail.com Mon Feb 7 13:34:58 2011 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 7 Feb 2011 13:34:58 -0600 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: I don't usually link to CSV files, but I often import them and get a similar error if the file is not formatted correctly with end of record CTRL/LF combinations. Here are Access 2007 limits. http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx No mention of a limit for linked files. GK On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Feb 7 13:41:17 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:41:17 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte > Date: Mon, 7 Feb 2011 13:34:58 -0600 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > I don't usually link to CSV files, but I often import them and get a > similar error if the file is not formatted correctly with end of > record CTRL/LF combinations. > > Here are Access 2007 limits. > > http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx > > No mention of a limit for linked files. > > GK > > On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > 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 gustav at cactus.dk Mon Feb 7 15:01:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 07 Feb 2011 22:01:26 +0100 Subject: [AccessD] Access Limits Message-ID: Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte From Lambert.Heenan at chartisinsurance.com Mon Feb 7 15:31:15 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 7 Feb 2011 16:31:15 -0500 Subject: [AccessD] Access Limits In-Reply-To: References: Message-ID: And for a text file editor with which to do the split you could do a lot worse that Notepad++ http://notepad-plus-plus.org/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 07, 2011 4:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access Limits Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 7 16:37:54 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 7 Feb 2011 16:37:54 -0600 Subject: [AccessD] Order of Data on Access 2007 Chart References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> Message-ID: All, I am just starting to experiment with charts in Access 2007. I have a really dumb question. How can I make the order of a chart the same as the order of its underlying query? I have set up a small test table, query, and report. The table only has two fields, Customer_Name and Customer_Amount The query sorts the data on Customer_Amount. The report is based on the query and shows the data sorted on Customer_Amount I added a chart with the "Insert Chart" button on the Access 2007 ribbon. I stepped through the chart wizard and picked the underlying query. I was expecting to see the generated chart to be sorted the same as the query and the report. Instead, it is sorted on Customer_Name. I can't seem to figure out what I am missing here. Thanks, Brad From pcs.accessd at gmail.com Mon Feb 7 18:25:02 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 10:25:02 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: <4D4FF06B.9010304@colbyconsulting.com> References: <4D4FF06B.9010304@colbyconsulting.com> Message-ID: SOLVED The same situation here. I am the owner of the databases.... I use SQL Server Authentication and am logged in using sa .... I don't think it is a security issue.... I replicated the issue. It turns out the intellisense only kicks in after you have exited the Management Studio and then logged in again 1. Create a view in Db2 using tables from Db1 - save as view1Db2 and run 2. Create a new view based on view1Db2 and copy the sql string 3. into a new SP in Db2 - sp1Db2 - save it. Execute. 4. Close the sp and open again as alter sp - You should see the intellisense is not working. 5. Close and reopen Management Studio. Open the sp as alter sp - You should now see the intellisense working ok. regards, borge On Mon, Feb 7, 2011 at 11:15 PM, jwcolby wrote: > It feels like a security issue. > > At my office I am the owner of all the databases. I have many (hundreds) > of databases and I have always used the db.dbo.table.view addressing to > create views, dynamic SQL etc. most of which references other databases. I > have a handful of (a dozen) databases which are what I call "data" > databases, which hold name / address lists. In the past I used SPs heavily > which operated on data from each other. > > I also use C# to execute code updating or appending records from one > database to another. the key to me is the dbname.dbo. syntax, as long as I > have that the queries work fine. Again though, all of the databases are > owned by the same owner so rights are not an issue. > > John W. Colby > www.ColbyConsulting.com > > > On 2/5/2011 3:14 AM, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs.accessd at gmail.com Mon Feb 7 19:35:51 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 11:35:51 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: John, We use a system / machine ODBC dsn with SQL Server Authentication Login ID and password We drop and relink tables on opening of the runtime using hardcoded Login ID and password Even if user can access properties of linked table, the Login ID and password will not be shown, see sample below: ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest I am curious about the hamachi, please provide link for more information and instrucitons for how to set up regards, borge On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > > I sent a demo SQL dB to you off-list. Did you get it? > > AFAICT I did not get that offline. > > I am trying to build an access application which installs on a user's > system somewhere out in the world. > > 1) They are not local to my machine, they come in to my SQL Server instance > over Hamachi. > 1a) They have no means to login directly to the server instance with a > username / password. > 2) They are going to run on a 2007 run-time. > 3) The runtime is intentionally unhelpful. > 4) In testing it just gives me a "there was an error executing the command" > when I try to open a form. When I try to open the same thing under the full > version Access it is asking for a logon as it attempts to open the first > form. > > My guess is that the runtime is attempting to open this SQl Server login > form and isn't allowed to by the runtime. Thus I have to set up the linked > tables to just use a correct username / password. I think I can embed this > directly into the sql connect string that is part of the tabledef.connect > but was attempting to avoid that. That will be my next test just to ensure > that it is in fact the issue here. > > > John W. Colby > www.ColbyConsulting.com > > On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > >> Hi JC >> >> I sent a demo SQL dB to you off-list. Did you get it? >> It shows how to use Pass through queries >> It has a sample to store your username and password and pass it in your >> SQL >> connection requests >> There is also the option to set the "Trusted Connection" to yes in the SQL >> connections strings >> >> Many thanks >> >> Darren >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 8 07:00:54 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 08:00:54 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: <4D513E86.5000401@colbyconsulting.com> Borge, I need your help. I will open my system to you, I will teach you about Hamachi and you can teach me about authentication in a run time world. I cannot give you the keys in AccessD though so contact me off line. Anyone else too who knows any part of this and wants to learn any part. We will keep all discussions other than actual user name / passwords on this list. Thanks, John W. Colby www.ColbyConsulting.com On 2/7/2011 8:35 PM, Borge Hansen wrote: > John, > > We use a system / machine ODBC dsn with SQL Server Authentication Login > ID and password > > We drop and relink tables on opening of the runtime using hardcoded Login ID > and password > > Even if user can access properties of linked table, the Login ID and > password will not be shown, see sample below: > > ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office > 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest > I am curious about the hamachi, please provide link for more information and > instrucitons for how to set up > > regards, > borge > > > > On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > >>> I sent a demo SQL dB to you off-list. Did you get it? >> >> AFAICT I did not get that offline. >> >> I am trying to build an access application which installs on a user's >> system somewhere out in the world. >> >> 1) They are not local to my machine, they come in to my SQL Server instance >> over Hamachi. >> 1a) They have no means to login directly to the server instance with a >> username / password. >> 2) They are going to run on a 2007 run-time. >> 3) The runtime is intentionally unhelpful. >> 4) In testing it just gives me a "there was an error executing the command" >> when I try to open a form. When I try to open the same thing under the full >> version Access it is asking for a logon as it attempts to open the first >> form. >> >> My guess is that the runtime is attempting to open this SQl Server login >> form and isn't allowed to by the runtime. Thus I have to set up the linked >> tables to just use a correct username / password. I think I can embed this >> directly into the sql connect string that is part of the tabledef.connect >> but was attempting to avoid that. That will be my next test just to ensure >> that it is in fact the issue here. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >> >>> Hi JC >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>> It shows how to use Pass through queries >>> It has a sample to store your username and password and pass it in your >>> SQL >>> connection requests >>> There is also the option to set the "Trusted Connection" to yes in the SQL >>> connections strings >>> >>> Many thanks >>> >>> Darren >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From charlotte.foust at gmail.com Tue Feb 8 10:27:42 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 8 Feb 2011 08:27:42 -0800 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: This is just a SWAG, but would assume that the limit on a linked file would be the same as on a linked table or database. It may also depend on the database format you're using, mdb or acdb. Charlotte Foust On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Feb 8 11:12:30 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 8 Feb 2011 17:12:30 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: I have, in the past, linked to 5 gig txt files using Access 03. This however is a CSV...not sure if that is the difference. I have not tried using an acdb. > Date: Tue, 8 Feb 2011 08:27:42 -0800 > From: charlotte.foust at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > This is just a SWAG, but would assume that the limit on a linked file > would be the same as on a linked table or database. It may also > depend on the database format you're using, mdb or acdb. > > Charlotte Foust > > On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 13:30:10 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 13:30:10 -0600 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 accessd at shaw.ca Tue Feb 8 14:45:24 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 12:45:24 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 jwcolby at colbyconsulting.com Tue Feb 8 15:12:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 16:12:15 -0500 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <4D51B1AF.6050204@colbyconsulting.com> > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From accessd at shaw.ca Tue Feb 8 15:42:16 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 13:42:16 -0800 Subject: [AccessD] From a reader In-Reply-To: <4D51B1AF.6050204@colbyconsulting.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <4D51B1AF.6050204@colbyconsulting.com> Message-ID: <3B6F14CED7D7428DBCC6E90F3A8DDD78@creativesystemdesigns.com> Now you are talking... that should thin out the ranks considerable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, February 08, 2011 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 18:21:06 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 18:21:06 -0600 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 marksimms at verizon.net Tue Feb 8 20:48:26 2011 From: marksimms at verizon.net (Mark Simms) Date: Tue, 08 Feb 2011 21:48:26 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <004d01cbc803$d3fe0c10$7bfa2430$@net> > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. From accessd at shaw.ca Wed Feb 9 01:17:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 23:17:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 9 04:23:09 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 11:23:09 +0100 Subject: [AccessD] From a reader Message-ID: Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. From shamil at smsconsulting.spb.ru Wed Feb 9 05:24:20 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 14:24:20 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From pcs.accessd at gmail.com Wed Feb 9 06:48:35 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Wed, 9 Feb 2011 22:48:35 +1000 Subject: [AccessD] [dba-SQLServer] index-defrag-script-v4-0 Message-ID: Hi all, I thought I'd share this link to a very interesting script for defragmenting indexes in one table, one Db or all non system databases: http://sqlfool.com/2010/04/index-defrag-script-v4-0/ regards borge From DWUTKA at Marlow.com Wed Feb 9 09:27:42 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 09:27:42 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: What are you talking about Jim, there is such an app, I think you already mentioned it... it's called Notepad.... ;) I actually really like ASP.Net. It has some wonderful features. But someone coming from a non-web GUI, may not realize how ASP.Net is actually 'mimicking' the interface interactions they are used too, and it just gets ugly then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 09, 2011 1:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim 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 Wed Feb 9 11:12:01 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:12:01 -0600 Subject: [AccessD] From a reader In-Reply-To: <004d01cbc803$d3fe0c10$7bfa2430$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <004d01cbc803$d3fe0c10$7bfa2430$@net> Message-ID: I've gotten pretty familiar with ASP.Net, and I must say, for smaller sites, I would probably still just use classic asp. I can already hear a future me grumbling about it a decade from now... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, February 08, 2011 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. -- 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 Wed Feb 9 11:17:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:17:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Yes, exactly, although, that is a mixed post. A developer that doesn't optimize right (though he is using Access 2007, how many pros would use that version if they had a choice? ;) ), and a customer that doesn't want to listen to reason. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 4:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. -- 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 accessd at shaw.ca Wed Feb 9 12:12:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 10:12:12 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Feb 9 12:25:01 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 21:25:01 +0300 Subject: [AccessD] From a reader In-Reply-To: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Message-ID: Hi Jim -- Yes, I also wanted to give a try to Razor + jQuery. Have a look they say: <<< Razor is already part of DNN5.6.1. The engine itself can be hosted even in Non Web Applications. >>> http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/118/postid/4070 62/scope/posts/Default.aspx#407062 Hosting the Razor Engine for Templating in Non-Web Applications http://www.west-wind.com/weblog/posts/864461.aspx <<< Microsoft SQL Server Migration Assistant 2005 for Access" >>> I'm not sure which version of MS SQL Server Migration Assitant I used last time - that could have been Microsoft SQL Server Migration Assistant 2005 for Access as I used it for MS Access 2003 database somewhere year 2004 or later. And it worked smoothly AFAIKR. As for queries - simple ones get converted OK but something more complicated and especially with VBA functions - all that needed additional manual work. And Migration Assitant does try to export a lot of MS Access tables and their fields properties' as Extended properties of MS SQL tables and their columns - I'd better switch off that feature as it creates a lot of unneeded "garbage" extended properties - just IMO. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 21:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From Gustav at cactus.dk Wed Feb 9 12:37:14 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 19:37:14 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Feb 9 13:16:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 22:16:27 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From iggy at nanaimo.ark.com Wed Feb 9 11:42:59 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 09 Feb 2011 09:42:59 -0800 Subject: [AccessD] Hey Susan Message-ID: <4D52D223.6060108@nanaimo.ark.com> Hey Susan Can you give me an EMail off-line that I can use to discuss with you somethings about your book. I am down to about 4 choices, like to go with yours and Martin's but just have a couple of questions. Thanks Tony From gustav at cactus.dk Wed Feb 9 15:51:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 22:51:26 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil OK, that's a good point. Slow response can kill you. But one trick around this is to have a fast main page and fast landing pages - then you have caught the attention and can go from there. That said, I think I'll go and download the Razor beta and have a closer look ... Could we ever settle at some level? You gave the answer: Yes, when we retire. Thanks for the links by the way. /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 20:16 >>> Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From accessd at shaw.ca Wed Feb 9 18:21:07 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 16:21:07 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs.accessd at gmail.com Thu Feb 10 01:01:00 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Thu, 10 Feb 2011 17:01:00 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D513E86.5000401@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Thu Feb 10 07:00:08 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 08:00:08 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Borge, <> On a 64 bit machine, there are two ODBC managers; one for 64 bit data sources and one for 32 bit. Your probably creating it as a 64 bit data source, which your 32 bit Office install will not be able to see. The 32 bit version is located in the %systemdrive%\Windows\SysWoW64 folder and must be directly invoked. Here's a MSKB article on it with some details: http://support.microsoft.com/kb/942976 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, February 10, 2011 02:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL constant harassment Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=db o.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 07:57:40 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 07:57:40 -0600 Subject: [AccessD] Access 2007 FE/BE speed Message-ID: <4d53eed6.0431640a.4399.01f5@mx.google.com> Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim From jimdettman at verizon.net Thu Feb 10 08:52:01 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 09:52:01 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53eed6.0431640a.4399.01f5@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 09:01:55 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 09:01:55 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: <4d53fde5.841dec0a.2285.05a6@mx.google.com> Good points Jim, thanks. I have turned off the sub-datasheets... I usually do that regardless of the version. I don't have any control over the servers, but I can ask them to make some changes. I never thought about the virus scan... I'll check into that. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 10, 2011 8:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 10:13:55 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:13:55 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53fde5.841dec0a.2285.05a6@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> Message-ID: <4D540EC3.2020605@colbyconsulting.com> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless of the > version. > I don't have any control over the servers, but I can ask them to make some > changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which each > user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and again, > this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. It > appears that the SMB 2.0 specification is giving some apps headaches, > although this is not fully clear yet. Some report the app works better when > the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage > may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if A2007 > can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned in > passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be found on > the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations and Show > Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an integrated > file. I know it's running little slower, but I can barely see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't think > there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 10 10:21:07 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:21:07 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D541073.1040809@colbyconsulting.com> Borge, Wow, thanks! I am right in the middle of rush work but this is my immediate need for my unpaid work so I will work on it in the next day or so, probably after work tonight and the next few days. In the meantime, to start boning up on Hamachi we are going to make you your own network just for you to learn how Hamachi works. 1) Go to https://secure.logmein.com/login.asp 2) Click the "New user? Create an account" link *under* the login button. 3) Create yourself an account and log in to that account 4) Once logged in, click the "NETWORK" link in the left hand margin 5) Click the "Add Network" under the big bold My Networks in the center of the page 6) Fill in the network name and description. I suggest that you use a prefix such as BHNetworkName (BH for Borge Hansen) for your own personal networks. Not necessary but it may help you organize. 7) Fill in the network type radio button. You can come back here later to change the network type. for now select mesh. 8) Click the Continue button at the bottom of the page 9) On the next page you set up how new users can be added to the network and a password for joining the network. For now click "Accept automatically" and create a password. You can change these parameters later if you wish by revisiting this page. 10) Click continue. I believe that you will end up in a "finish dialog". I created a hub and spoke network for this discussion to get in to my machine so I am on a different path through the page now. So you should now have your first personal mesh network. A mesh network allows every computer to see every other computer, much like a router / switch does on a normal network on your system. At this instant you do not have any computer with Hamachi installed so you need to get Hamachi installed on at least two machines so that they can join this new network of yours and can talk to each other. There are two ways to do this. The first is to email an invitation to join your network from this HAMACHI web page you are on. This will send an email to an email address with a hotlink which when clicked will apply to join your network. Whether or not it is instantly allowed in to the network depends on whether you selected "immediate acceptance" as you were setting up the network. Let us use this method now so that you can see how it works and what the recipient will experience. 1) On the left hand side of the web page, click the "NETWORK" hotlink. You will be back at the page showing "MY NETWORKS" and you will now have a network, named whatever you chose as your name. 2) Click the "Add client" hot link next to the green +. Click Deploy LogMeIn Hamachi to a remote computer. Click continue. 3) The next page will be used to send an email. It allows you to send a hotlink which can be used N times within a time period to join the network. Select 1 time if it is just going to be used once, select N times if it is going to be shared by several individuals which are all in an office but you may not have all of their emails. 4) Select the network(s) that you want them to be allowed to join. 5) Click continue LogmeIn's web page apparently has a bug. For me it did *not* take me to the page I am about to describe I had to poke around and find the page. It is *supposed* to take to this next page where... 6) You will see a big bold "ADD CLIENT" in the middle of the page and three buttons - Copy, Send and test. Click the SEND button and (in my case) Thunderbird opens with a hotlink in the body for your user to click on. 7) Fill in the person that you want to join your network and the subject (join my network!) and send the email. I'll send more later. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jm.hwsn at gmail.com Thu Feb 10 10:32:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 10:32:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D540EC3.2020605@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> Message-ID: <4d541317.02f2960a.41cf.0c8e@mx.google.com> That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 df.waters at comcast.net Thu Feb 10 10:51:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 10 Feb 2011 10:51:25 -0600 Subject: [AccessD] Turn Off Sub Datasheets Message-ID: <599935DC8C564030B2932B984D19468A@utc.com> To quickly turn off the subdatasheets in tables, run this code in a module in your database where the actual tables are located. '--------------------------------------------------------------------------- -------- Private Sub TurnOffSubDataSheets() On Error GoTo EH '-- Before running this module, set Error Trapping to 'Break on Unhandled Errors' Dim dbs As DAO.Database Dim prop3270 As DAO.Property Dim propName As String, propVal As String, rplpropValue As String Dim propType As Integer, i As Integer Dim intCount As Integer Set dbs = CurrentDb propName = "SubDataSheetName" propType = 10 propVal = "[None]" rplpropValue = "[Auto]" intCount = 0 For i = 0 To dbs.TableDefs.Count - 1 If (dbs.TableDefs(i).Attributes And dbSystemObject) = 0 Then If dbs.TableDefs(i).Properties(propName).Value = rplpropValue Then dbs.TableDefs(i).Properties(propName).Value = propVal intCount = intCount + 1 End If End If XH: Next i dbs.Close MsgBox "The " & propName & " value for " & intCount & " non-system tables has been updated to " & propVal & "." Exit Sub EH: If Err.Number = 3270 Then Set prop3270 = dbs.TableDefs(i).CreateProperty(propName) prop3270.Type = propType prop3270.Value = propVal dbs.TableDefs(i).Properties.Append prop3270 intCount = intCount + 1 Resume XH Else MsgBox Err.Description & vbCrLf & vbCrLf & " in TurnOffSubDataSheets routine." End If End Sub From Lambert.Heenan at chartisinsurance.com Thu Feb 10 11:25:18 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 12:25:18 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d541317.02f2960a.41cf.0c8e@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 jm.hwsn at gmail.com Thu Feb 10 12:21:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 12:21:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4d542ca3.0348960a.0f48.1437@mx.google.com> Essentially, I'm doing this, I just didn't realize I was keeping the connection open. When the FE opens, the user fills in their credentials in the log in form. Once verified, the user's Personal ID populates a couple of fields in the bound log in form. When the next button is clicked the log in form is hidden throughout the entire session. The fields are used for various processes during the session. The fields are tied to all the forms and results that the database represents to the user. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 10, 2011 11:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 12:59:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 13:59:31 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4D543593.1050307@colbyconsulting.com> But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, which >> each user should have their own copy of, so opening exclusive would be >> appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). Not >> specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, others >> 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and 3 >> above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> 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 shamil at smsconsulting.spb.ru Thu Feb 10 13:01:10 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 10 Feb 2011 22:01:10 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From Lambert.Heenan at chartisinsurance.com Thu Feb 10 13:23:27 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 14:23:27 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D543593.1050307@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: Ya got me there John. What do you mean by "for the FE that is the application"? I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. So again, what did you mean by "for the FE that is the application"? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, >> which each user should have their own copy of, so opening exclusive >> would be appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). >> Not specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, >> others 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and >> 3 above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 10 14:43:40 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 Feb 2011 12:43:40 -0800 Subject: [AccessD] From a reader In-Reply-To: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Feb 10 15:40:37 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 00:40:37 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From davidmcafee at gmail.com Thu Feb 10 17:49:16 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 15:49:16 -0800 Subject: [AccessD] Forgot old Access 2.0 password Message-ID: A coworker needs to open an old A2.0 database. They don't have the password. Anyway to bypass the mdw? From rlister at actuarial-files.com Thu Feb 10 18:42:19 2011 From: rlister at actuarial-files.com (Ralf Lister) Date: Thu, 10 Feb 2011 20:42:19 -0400 Subject: [AccessD] Recordset Movements Message-ID: <002701cbc984$8b3edd10$a1bc9730$@com> Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From davidmcafee at gmail.com Thu Feb 10 18:51:48 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 16:51:48 -0800 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg> <4D548323.80805@emilia-maxim.de> Message-ID: Sorry Emilia, I forgot Access-L replies directly to the person replying rather than the list. ---------- Forwarded message ---------- They got it. They found some pw cracker that unlocked the first few characters, which was enough for one of the old timers to remember. Thanks. :) 2011/2/10 Emilia Maxim David, > > > A coworker needs to open an old A2.0 database. >> >> They don't have the password. >> >> Anyway to bypass the mdw? >> > > If A2007 or A2010 "understand" A2.0, then they might have a chance. At > least I could import data from a secured A97 DB in A2007 without the mdw. > > -- > Regards > Emilia, TWIG > > Emilia Maxim > PC-SoftwareService > Stuttgart, Germany > From rockysmolin at bchacc.com Thu Feb 10 18:58:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 10 Feb 2011 16:58:47 -0800 Subject: [AccessD] Recordset Movements In-Reply-To: <002701cbc984$8b3edd10$a1bc9730$@com> References: <002701cbc984$8b3edd10$a1bc9730$@com> Message-ID: <4BFC9413470B4F6C82A793044BE2369A@HAL9005> I'd look at the record source for the report. But if you want to print a report of just that record, I would pass the PK of the record you want to print and in the _Open event set the report filter to just that record's PK. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Thursday, February 10, 2011 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Recordset Movements Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From stuart at lexacorp.com.pg Thu Feb 10 19:07:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 11 Feb 2011 11:07:56 +1000 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg>, , Message-ID: <4D548BEC.9197.49664D2@stuart.lexacorp.com.pg> No it doesn't. You email program does. :-) Obviously it is not honouring the "Reply-To" header in the message: Reply-To: Access Developers discussion and problem solving -- Stuart On 10 Feb 2011 at 16:51, David McAfee wrote: > Sorry Emilia, I forgot Access-L replies directly to the person > replying rather than the list. > > ---------- Forwarded message ---------- From Gustav at cactus.dk Fri Feb 11 02:03:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Feb 2011 09:03:48 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim From paul.hartland at googlemail.com Fri Feb 11 04:03:56 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 11 Feb 2011 10:03:56 +0000 Subject: [AccessD] Upgrading SSRS 2005 To SSRS 2008 On Different Server Message-ID: To all, I am getting an error when reports have been migrated from SSRS 2005 to SSRS 2008 which is 'The data source 'Connection_To_AL_SQL_Genesis' cannot be found. The data source name in SSRS 2005 is actually 'Connection To AL-SQL Genesis', I looked around on the internet and apparently when migrating to SSRS 2008 any spaces and hyphens in the connection name get replaced by underscores. So I went back to the data sources on SSRS 2005 and renamed my connection to 'ConnectionToALSQLGenesis' and relinked all the reports to the new name. So then went through the process of backing up the reportserver and reportservertempdb databases, and the reporting services encryption keys, copied the files to the new server, restored the databases and the reporting services encryption keys. However I am still getting the same error message when trying to open the reports, if I go to the properties of the report and re-connect to the data source I still get the same error. However if I reload the report and connect to the data source then it works !!!!! Can anyone shed any light as to what I am doing wrong or what I need to do to resolve this, as I dont really want to reload all the reports and re-connect the data sources. -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Feb 11 08:35:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 17:35:00 +0300 Subject: [AccessD] "Next Big Technology Things" - Was:RE: From a reader In-Reply-To: References: Message-ID: <94457126BED34D7FB1D867E8CEBE6F25@nant> Hi Gustav -- Thank you for your note. Shouldn't we move this discussion thread to dba-vb? No, I'm not fiddling with semi-boiled frameworks (I hope) - I'm mainly trying to find and "keep my eyes open" on the "next big" technology things I should be aware of. And Jim has already found them AFAIS. And that "next big technologies things" I'm (mainly) watching not yet using in my everyday real work or test projects should be generally accepted not only by MS shops... Then I will wait as much as possible until MS will make this "next big technology things" mature enough to use in real life applications. And that "next big technology things" for me currently are: - JavaScript (+jQuery) (yes, it's an "old thing" but MS started to support jQuery not that long ago); - RESTFul services + JSON (WCF + .NET Framework support them naturally); - HTML5 (IE9 and FireFox7(?)); - ADO.NET EF; - Silverlight and Windows Phone 7; - Azure. Did I miss some? <<< For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. >>> Yes, I'm "more than busy" here too... ...if I've had time to learn PERL (or Python or Ruby) I'd probably leave just: - 1) VS20xx + C# + MS Access + MS SQL - for desktop development; - 2) PERL (Python(?)/Ruby(?))+ HTML(5) + CSS + JavaScrip(jQuery)t + mySQL/MS SQL + a partnership with advanced web designer - for "classical" web development. - 3) Silverlight for Windows Pnone 7 development Thank you. -- Shamil P.S. BTW here is QCon short announcement for this year London conference - you can find that my "next big technology things" list is mainly covered by QCon list. And I will have to skip all the other subjects or just glance them - no time at all: - Enterprise Agile Transformation - Teams, Learning, Contracts & Collaboration; - Lean and Kanban: Learning Through Systems Thinking - Kanban at BBC, Design Thinking, Complexity vs. Lean, System Design; - Building Systems with REST - REST at BestBuy, Hypermedia-driven apps & integration, REST in .NET; - Architectures You've Always Wondered About - Facebook, Twitter, Netflix, OnLive, Visa; - When Things Break - "Let it crash", operating during Failure, Continuous Deployment, Unreliable Components; - Software Architecture Improvements - Architecture Refactoring, Re-engingeering, Erosion, Arch Assessment; - Design and Objects 2011 - OO at Facebook, OO at Government, Onion Design, OO in Java, Event-driven design; - Next-Generation Financial Technology- Futures Trade Flow, Millisecond latencies @ Linear Scale, CEP, and more; - NoSQL: Where and How - HBase at Facebook, MongoDB at Guardian.co.uk, and more NoSQL; - Software Craftsmanship - Craftsmanship & Engineering, Deliberate Practice, Leadership, Quality, Learning; - Functional Web - Node.JS, Haskell, Webmachine, Clojure, Conversational Web; - HTML5, the Platform - HTML5 at Facebook, WebSockets, Mobile, Secure browser OO; - Future of Java- JVM Languages, Java EE, Spring, OSGi, Virtualization & Cloud, GC; - .NET State of the Art - Azure, Rx Async Programming, Code Contracts, Reflection; - iOS4 and Android - Advanced iOS4 and Android stuff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 11 ??????? 2011 ?. 11:04 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 08:39:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 09:39:01 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D554A05.6000002@colbyconsulting.com> Borg, I have the database restored and available. If you were to attach to the Hamachi network that you received the invite to join, you would see the SQL Server database at 5.203.167.79. If you were to use the Access Fe that you sent to me, and edit the DSN to use that IP as the server name, you would be connecting directly into the server on my VM. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From accessd at shaw.ca Fri Feb 11 08:57:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 06:57:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav: In my type of business my clients are not necessarily Microsoft...in fact the largest clients are totally Linux/Unix based and their web systems and BE are build with PHP/Java, Oracle etc. I have my feet firmly in both worlds.? Many require mixed support with MS desktops and Linux/Unix Servers. In addition, clients are moving away from desktop?dependency?and are starting to request all web-based solutions. OTOH that does not mean I will not always be required to support MS products, it is just that they are far from the entire world in computing. Having limited time I have to guess at which products have staying power, work on the widest range of platforms, support who's paying the bills and devote?attention?to their application requirements first and foremost. ? Jim ?? ----- Original Message ----- From: Gustav Brock Date: Thursday, February 10, 2011 11:54 pm Subject: Re: [AccessD] From a reader To: accessd at databaseadvisors.com > Hi Shamil and Jim > > Of course, as a developer, you have to be curious and look > around searching to keep up and be familiar with the trends ... > but aren't you two constantly beating yourself by fiddling with > semi-boiled frameworks and techniques? For my part, just trying > to get up to speed with Visual Studio 2010 and Silverlight and > EF and (still) some Access and ... can keep me more than busy. > > /gustav > > > >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> > Hi Jim -- > > Thank you for your reply. > > AFAIK MS is one of the leaders in this area: WCF Data Services > (OData - > http://msdn.microsoft.com/en-us/data/bb931106) naturally support > RESTFul web > service concept and WCF Data Services can implement full CRUD > set of > operations for a given entity datamodel/database using ... yes, > ADO.NETEntity Framework (http://msdn.microsoft.com/en- > us/library/bb399572.aspx) - > all that stuff can be generated within VS2010 AFAIU... > > And as I have just found there already exists "New JavaScript > library for > OData and beyond" > (http://www.odata.org/blog/2011/2/9/new-javascript-library-for- > odata-and-bey > ond). > > The part which is missing is HTML forms generator for the HTML > forms to be > used together with jQuery and RESTFul Data Services (for the > same entity > datamodel/database) - I guess IronSpeed > (http://www.ironspeed.com/) will > make something like that soon... > > Then all the raw stuff can be generated for custom applications? > And here > you are with your advanced skills to customize raw stuff > produced by code > generators?... > > As for security - HTTPS doesn't solve this issue? I mean if a > user gets > authenticated by entering their user name/password (or use > LiveID or ...) to > setup an HTTPS session between browser and web server what could > malicioususers do here? Why VPN is considered more secure there? > > > Thank you. > > -- > Shamil > ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: 10 ??????? 2011 ?. 23:44 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > Hi Shamil: > > That is a series of good question. I am basically unfamiliar > with the > RESTful concept as, interesting enough; it only caught my eye a > couple of > days ago. There are a number of people working a GNU JQuery > RESTful API but > there are not finished products out there yet, that I am aware > of. For > example: > > http://mike-hostetler.com/representational-state-transfer-rest- > client-testin > g > > JAVA and PHP programmers seem to be a little ahead in this right > now. All > the major site have FEs build: Facebook, Amazon, EBay etc. > > As for a full database interface with all the bells and > whistles, a complete > CRUD type thing; again no complete interface. I have my own > ASP.Net/JQueryhybrids. Here is one of my sources for the initial > base code but I have > removed much of the BE direct processing and replaced that > connection with > JQuery AJAX calls: > > http://www.dotnetfunda.com/articles/article970-aspnet-gridview-- > jquery-tips- > and-tricks--part-1-.aspx > > There are many other ones out there again using PHP/JAVA. For example: > (watch the wrap..) > > http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud- > interface/?u > tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro > DevTips+-+dev+related+notes+and+tutorials) > ...and... > http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter- > iii/ > > Connecting to the database can always be a danger as if some > outside and > unauthorized individual gets access to your UI they may find a > way to hack > in. To that end most of my clients run their sites as only > Intranet or > through their company VPNs. Recently, I was shown an excellent > open source > GNU product at: http://openvpn.net/ (You do have to pay for > multiple remote > connections as it is needed to cover the company's hardware > costs but it is > really cheap.) > > This functions similar to Hamachi/Logmein and allows you as the > senior tech > to encompass a fixed set of users and offices anywhere in the world. > > I am currently working on a JQuery POS (header/detail/footer), > in my spare > time but it is turning out to be a huge time-consuming project, > with many > re-writes, as I continue to learn more, with hundreds > (thousands?) of lines > of code...all the heavy lifting, like the data management will > be done at > the back end. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Feb 11 10:11:51 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 11 Feb 2011 08:11:51 -0800 Subject: [AccessD] CDO Message-ID: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jimdettman at verizon.net Fri Feb 11 10:33:33 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 11 Feb 2011 11:33:33 -0500 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <25B63CE25E444FB3B740A456DF3A93AC@XPS> Rocky, CDO is the "middle of the road" approach. It still relies on software being installed on the machine, but gives you support for things outside of simply sending mail. I don't believe it's dead yet. If all your doing is sending mail with attachments, then the simplest thing I've ever found is BLAT.EXE. It's a command line utility for sending mail directly via a SMTP server. You simply need the server address and possibly a login. Outside of that, that's it. However it also gives you the least amount of control over the process (you need to shell() to use it). The only thing you can run afoul of is a firewall that blocks the program the first time you use it (and the user needs to click allow or block). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 11 12:30:11 2011 From: john at winhaven.net (John Bartow) Date: Fri, 11 Feb 2011 12:30:11 -0600 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <001201cbca19$b8506220$28f12660$@winhaven.net> It's not dead yet but from all I've read it's going to be. They haven't updated it for 2007/2010. I'm doing a bunch of stuff with Outlook directly now and will send you some stuff when I get it finished. What I like to do is check if Outlook is being used and if so I use that otherwise I use DoCmd.SendObject (which has somewhat basic capabilities) Outlook Redemption has been updated for 2010. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 12:58:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 13:58:49 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: <4D5586E9.8090409@colbyconsulting.com> It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > But that opens a persistent connection *for that fe* but not for the FE that is the application. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 12:25 PM, Heenan, Lambert wrote: >> I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. >> >> That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 11:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> That sounds more elegant than the code I found. >> Would you mind sharing the code? >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 10, 2011 10:14 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. >> >> I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. >> >> I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. >> >> Voila, persistent connections. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/10/2011 10:01 AM, jm.hwsn wrote: >>> Good points Jim, thanks. >>> I have turned off the sub-datasheets... I usually do that regardless >>> of the version. >>> I don't have any control over the servers, but I can ask them to make >>> some changes. >>> I never thought about the virus scan... I'll check into that. >>> Thanks, >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Dettman >>> Sent: Thursday, February 10, 2011 8:52 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] Access 2007 FE/BE speed >>> >>> Jim, >>> >>> The exclusive point is in regards to the FE in a split design, >>> which each user should have their own copy of, so opening exclusive >>> would be appropriate. >>> >>> Some other items: >>> >>> 1. Make sure the new ACE DB's are not being virus scanned. Since the >>> extension has changed, anti-virus sometimes kicks in. >>> >>> 2. Turn off the sub datasheets feature on all tables (FE and BE). >>> Not specific to A2007, but often overlooked. >>> >>> 3. Turning off OPLOCKs on the server, but that impacts all apps and >>> again, this applies to all versions (not A2007 specifically). >>> >>> 4. Often, A2007 is used in conjunction with a new server like 2008. >>> It appears that the SMB 2.0 specification is giving some apps >>> headaches, although this is not fully clear yet. Some report the app >>> works better when the server is forced to use SMB 1.0 protocol, >>> others 2.0, so your mileage may vary. >>> >>> Jim. >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >>> Sent: Thursday, February 10, 2011 08:58 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] Access 2007 FE/BE speed >>> >>> Access 2007 is inherently slow on a network configured using FE/BE >> scenario. >>> >>> I have scoured several websites and spent a lot of hours, to see if >>> A2007 can be modified to speed it up. >>> >>> Several "tips" were obscure on the sites and might only be mentioned >>> in passing. >>> >>> Here is what I've found: >>> >>> 1) ensure there is a persistent connection to the BE. Code can be >>> found on the FMS, Inc. site. >>> >>> 2) Ensure the BE location is in a "Trusted Location" in the FE. >>> >>> 3) Change record-level locking. I set the following: >>> >>> OLE/DDE timeout: 30 >>> >>> Refresh interval: 30 >>> >>> Number of update retries: 2 >>> >>> ODBC refresh interval: 120 >>> >>> Update retry interval: 250 >>> >>> 4) Turn off unused user interface features such as: Show animations >>> and Show Smart Tags on Datasheets >>> >>> >>> >>> In my somewhat limited test, my FE runs almost as fast as an >>> integrated file. I know it's running little slower, but I can barely >>> see the difference >>> - I can live with it. The biggest improvement came when I did 2 and >>> 3 above. I still haven't done or tested number 1 above. >>> >>> >>> >>> Other items that are recommended are: >>> >>> change the default open mode: Exclusive >>> >>> default record locking: Edited Record. >>> >>> However, I don't think these would work with a shared BE. I don't >>> think there is a way to make these different for two separate files. >>> >>> >>> >>> Do you have any other ideas or words of wisdom or comments? >>> >>> Thanks, >>> >>> Jim >>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Feb 11 13:37:15 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 11 Feb 2011 13:37:15 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at chartisinsurance.com Fri Feb 11 13:48:16 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 11 Feb 2011 14:48:16 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D5586E9.8090409@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Ah. I see. Another example of how email is amongst the poorest forms of communication homo sapiens has come up with so far. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, February 11, 2011 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > From steve at datamanagementsolutions.biz Fri Feb 11 13:53:23 2011 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sat, 12 Feb 2011 08:53:23 +1300 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA From df.waters at comcast.net Fri Feb 11 15:43:10 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 11 Feb 2011 15:43:10 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <071A30A392964280AF4AC02A6FA9F97B@DanWaters> Hi Rocky, Another good choice is Outlook Security Evader from www.everythingaccess.com. It's $79 for a single developer. It consists of 4 classes that are added to your access file - no external .dll. I've two experiences with customer support - both resulted in an update in less than a day. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 11, 2011 1:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 11 18:07:58 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:07:58 +1000 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Ambiguous question :-) Does "which would need to be registered" relate to "dlls or activex controls" or just to "activex controls" I generally go with Blat. A proper native code DLL which doesn't require registering. -- Stuart On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without > using dlls or activex controls which would need to be registered? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:09:13 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:09:13 +1000 Subject: [AccessD] CDO In-Reply-To: <25B63CE25E444FB3B740A456DF3A93AC@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> Message-ID: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). From stuart at lexacorp.com.pg Fri Feb 11 18:11:21 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:11:21 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > From accessd at shaw.ca Fri Feb 11 18:15:58 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:15:58 -0800 Subject: [AccessD] CDO In-Reply-To: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: I will back you up on that one. BLAT is so simple that if it does not work the last place you look is at BLAT. Start checking to see if your ports are open or whether you can actually see the web. It resided all in one directory, runs of a client or server without issues. The only trouble you may have is working at the CMD prompt and for some of you new boys it may be a real problem. ;-) Jim ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:08 pm Subject: Re: [AccessD] CDO To: Access Developers discussion and problem solving > Ambiguous question :-) > > Does "which would need to be registered" relate to "dlls or > activex controls" or just to > "activex controls" > > I generally? go with Blat.? A proper native code DLL > which doesn't require registering. > > -- > Stuart > > On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > > > Is CDO dead or alive?? Use it or lose it?? > > > > What's the best way to automatically send emails from an app without > > using dlls or activex controls which would need to be > registered?? > > > > MTIA > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > Skype: rocky.smolin > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 11 18:19:44 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:19:44 -0800 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Hi Brad: If you ever have a problem with BLAT just ask Stuart for a sample piece of code or in a real pinch ask me. ;-) Jim ? ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:11 pm Subject: Re: [AccessD] CDO - RE: What's the best way to automatically send emails from an app To: Access Developers discussion and problem solving > What "install"???? Just stick the EXE or DLL > anywhere appropriate and call it.? There is no > need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a > reply.? I thought > > that it was worth a little money to have good product support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:22:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:22:56 +1000 Subject: [AccessD] Sparkline like graphs in Acces Reports In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <4D55D2E0.28767.52276E@stuart.lexacorp.com.pg> A neat demo database with simple code for adding mini-graphs to each row of a report. http://blogs.office.com/b/microsoft-access/archive/2011/02/10/power-tip-add-sparkline-like- graphs-to-access-reports.aspx or http://goo.gl/Wd8lE -- Stuart From accessd at shaw.ca Fri Feb 11 18:34:52 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:34:52 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? From jwcolby at colbyconsulting.com Fri Feb 11 20:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 21:21:46 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <4D55EEBA.9090206@colbyconsulting.com> Unfortunately the tied up my billions in Egyptian gas shares while they were at it. John W. Colby www.ColbyConsulting.com On 2/11/2011 7:34 PM, Jim Lawrence wrote: > Switzerland has frozen all Hosni Mubarak's accounts as of today. Actually they frozen all of the Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. > > He was little more than history as soon as that was done. > > Jim From pcs.accessd at gmail.com Sat Feb 12 00:09:15 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 12 Feb 2011 16:09:15 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: John, sending this a second time, as the first email was above the 20Kb limit ?!!? If keeping this conversation on Accessd, please continue under a new Subject Heading Borge > Alright ... done that ... assuming using SQL Server Authentication, so I > need user name and pword for your connection / ODBC systems DSN .... I tried > with same user name and password as I had kept in my configuration .... > didn't work .... > > I can ping your network... > I can chat to your network... > I can't connect to your sql server .... > Back to the drawing board... > > Regards > Borge > > > > On Sat, Feb 12, 2011 at 12:39 AM, jwcolby wrote: > >> Borg, >> >> I have the database restored and available. If you were to attach to the >> Hamachi network that you received the invite to join, you would see the SQL >> Server database at 5.203.167.79. >> >> If you were to use the Access Fe that you sent to me, and edit the DSN to >> use that IP as the server name, you would be connecting directly into the >> server on my VM. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> From accessd at shaw.ca Sat Feb 12 00:36:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 22:36:02 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <4D55EEBA.9090206@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: I sorry to hear to hear that John. Jim ? ----- Original Message ----- From: jwcolby Date: Friday, February 11, 2011 6:22 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > Unfortunately the tied up my billions in Egyptian gas shares > while they were at it. > > John W. Colby > www.ColbyConsulting.com > > On 2/11/2011 7:34 PM, Jim Lawrence wrote: > >Switzerland has frozen all Hosni Mubarak's accounts as of > today. Actually they frozen all of the Egyptian accounts and > they are in excess of 3 billion dollars of the government's or > people's money. It always seems that these dictators keep huge > off-shore stashes of cash in case they ever have to make a run > for it. > > > >He was little more than history as soon as that was done. > > > >Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Feb 12 04:39:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:39:26 -0500 Subject: [AccessD] Hamachi progress In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D56635E.3010407@colbyconsulting.com> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... Sounds like progress though. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From jwcolby at colbyconsulting.com Sat Feb 12 04:40:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:40:22 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: <4D566396.3090001@colbyconsulting.com> That's what happens when ya hobnob with dictators. Luckily I don't need the money right now. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:36 AM, Jim Lawrence wrote: > I sorry to hear to hear that John. > > Jim > > > > ----- Original Message ----- > From: jwcolby > Date: Friday, February 11, 2011 6:22 pm > Subject: Re: [AccessD] Frozen accounts > To: Access Developers discussion and problem solving > >> Unfortunately the tied up my billions in Egyptian gas shares >> while they were at it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/11/2011 7:34 PM, Jim Lawrence wrote: >>> Switzerland has frozen all Hosni Mubarak's accounts as of >> today. Actually they frozen all of the Egyptian accounts and >> they are in excess of 3 billion dollars of the government's or >> people's money. It always seems that these dictators keep huge >> off-shore stashes of cash in case they ever have to make a run >> for it. >>> >>> He was little more than history as soon as that was done. >>> >>> Jim >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From kost36 at otenet.gr Sat Feb 12 08:30:17 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 12 Feb 2011 16:30:17 +0200 Subject: [AccessD] Passing query "Between" date values into a form Message-ID: <0421405D459E470B8565306DFAE9289F@kost36> Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas From ab-mi at post3.tele.dk Sat Feb 12 13:14:58 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 12 Feb 2011 20:14:58 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0421405D459E470B8565306DFAE9289F@kost36> References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Feb 12 14:27:21 2011 From: john at winhaven.net (John Bartow) Date: Sat, 12 Feb 2011 14:27:21 -0600 Subject: [AccessD] CDO In-Reply-To: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Message-ID: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> One of the issues I've run into using third party email apps/activex/dll in one Microsoft (government) network is that the security staff install spam blockers and such that do not allow anything to access the smtp server. They basically broke my application that had been installed there for 10 years and refused to adapt their security to allow it to work. Ignorance makes for paranoia and there's no getting around ignorant security staff. They are like gods to the unwitting administrative staff that have to make the final decisions. So I was basically forced into recoding an old iron horse app to utilize Outlook/Exchange and the user just has to click the irritating "allow for one hour" prompt when the first email is sent. It is no big deal to them just an item that needs to be explained. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, February 11, 2011 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Sat Feb 12 17:40:52 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Sat, 12 Feb 2011 17:40:52 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Stuart, I probably should have said "getting Blat to work with Access" instead of just the word "install". This work was done almost a year ago and I don't remember all of the details (plus I have some brain damage from 32 years of COBOL, CICS, and DB2 :-) Anyway, as I recall, I spent several hours trying to get Blat to work with Access but ran into problems. I then did some research of other products and ended up buying Febooti. The two things that first sold me on Febooti were their very good online documentation and the fact that I was able to get it to work with Access very quickly. I may take another look at Blat for future projects. I have seen it mentioned by many people so I might experiment with it again, down the road. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Fri 2/11/2011 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- 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 jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <7E7BA0B951514023A3D06606F6C0C91F@XPS> Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO In-Reply-To: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> Message-ID: <10132A1CB2B04D1892BBF1255F4A3620@XPS> Stuart, Yes, but the DLL (unless something has changed) is no where near as up to date as the command line EXE or as feature rich. But I still should have mentioned it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:37:29 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:37:29 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <25F48DD1AA344148944DCC21BA26B24D@XPS> um...should this not be on the OT list? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 11, 2011 07:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Frozen accounts Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 13 06:51:07 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:51:07 +1000 Subject: [AccessD] CDO In-Reply-To: <10132A1CB2B04D1892BBF1255F4A3620@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> Message-ID: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 13 06:52:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:52:56 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg>, <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <4D57D428.20786.598D18E@stuart.lexacorp.com.pg> That was always an option, not a requirement. All it did was store some standard switches such as server name in the Windows Registry so that you didn't need to include them in the command line each time. -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > I think he's talking about the little "install" that must be done > with > Blat itself the first time you use it. If memory serves though, I > believe their was a change with that where it was no longer required. > Been 4 or 5 years since I last used BLAT. > > I stick to vbSendMail now. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO - > RE: What's the best way to automatically sendemails from an app > > What "install"? Just stick the EXE or DLL anywhere appropriate and > call it. There is no need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a reply. I > > thought that it was worth a little money to have good product > > support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Feb 13 08:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 06:37:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <25F48DD1AA344148944DCC21BA26B24D@XPS> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: Yes, it should have. Power outage fried my email server and I was still getting use to the web interface, :-) Jim ----- Original Message ----- From: Jim Dettman Date: Sunday, February 13, 2011 3:37 am Subject: Re: [AccessD] Frozen accounts To: 'Access Developers discussion and problem solving' > > ? um...should this not be on the OT list? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: Friday, February 11, 2011 07:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Frozen accounts > > Switzerland has frozen all?Hosni Mubarak's accounts as of today. > Actuallythey frozen all of the?Egyptian accounts and they are in > excess of 3 billion > dollars of the government's or people's money. It always seems > that these > dictators keep huge off-shore stashes of cash in case they ever > have to make > a run for it. > > He was little more than history as soon as that was done. > > 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 df.waters at comcast.net Sun Feb 13 09:38:02 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 09:38:02 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automatically sendemails from an app) In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:16:48 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:16:48 -0500 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:18:39 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:18:39 -0500 Subject: [AccessD] CDO In-Reply-To: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> Message-ID: <906488E01DC842EABF7450742C2F4F50@XPS> Stuart, <> Very nice to know, thanks. The DLL is native correct? Doesn't need to be registered? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 13:00:34 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 13:00:34 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg><7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <3B7E0BE15AA74052B488AFA84DD7F51B@DanWaters> No problem - saves me all kinds of grief! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Sun Feb 13 14:02:04 2011 From: delam at zyterra.com (Debbie) Date: Sun, 13 Feb 2011 14:02:04 -0600 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> It did send on Friday after all. Debbie Sent from my iPhone On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > Yes, it should have. Power outage fried my email server and I was > still getting use to the web interface, :-) > > Jim > > > > ----- Original Message ----- > From: Jim Dettman > Date: Sunday, February 13, 2011 3:37 am > Subject: Re: [AccessD] Frozen accounts > To: 'Access Developers discussion and problem solving' > > >> >> um...should this not be on the OT list? >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> LawrenceSent: Friday, February 11, 2011 07:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Frozen accounts >> >> Switzerland has frozen all Hosni Mubarak's accounts as of today. >> Actuallythey frozen all of the Egyptian accounts and they are in >> excess of 3 billion >> dollars of the government's or people's money. It always seems >> that these >> dictators keep huge off-shore stashes of cash in case they ever >> have to make >> a run for it. >> >> He was little more than history as soon as that was done. >> >> 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 accessd at shaw.ca Sun Feb 13 16:06:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 14:06:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> Message-ID: Thank you Debbie ;-) Jim ? ----- Original Message ----- From: Debbie Date: Sunday, February 13, 2011 12:02 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > It did send on Friday after all. > > Debbie > > Sent from my iPhone > > On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > > >Yes, it should have. Power outage fried my email server and I > was still getting use to the web interface, :-) > > > >Jim > > > > > > > >----- Original Message ----- > >From: Jim Dettman > >Date: Sunday, February 13, 2011 3:37 am > >Subject: Re: [AccessD] Frozen accounts > >To: 'Access Developers discussion and problem solving' > > > >> > >>? um...should this not be on the OT list? > >> > >>Jim. > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >>LawrenceSent: Friday, February 11, 2011 07:35 PM > >>To: Access Developers discussion and problem solving > >>Subject: [AccessD] Frozen accounts > >> > >>Switzerland has frozen all Hosni Mubarak's accounts as of today. > >>Actuallythey frozen all of the Egyptian accounts and they are in > >>excess of 3 billion > >>dollars of the government's or people's money. It always seems > >>that these > >>dictators keep huge off-shore stashes of cash in case they ever > >>have to make > >>a run for it. > >> > >>He was little more than history as soon as that was done. > >> > >>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 stuart at lexacorp.com.pg Sun Feb 13 16:57:53 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 14 Feb 2011 08:57:53 +1000 Subject: [AccessD] CDO In-Reply-To: <906488E01DC842EABF7450742C2F4F50@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> Message-ID: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Sun Feb 13 17:19:17 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:19:17 +0100 Subject: [AccessD] List politeness - responding to answers Message-ID: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger From ab-mi at post3.tele.dk Sun Feb 13 17:21:59 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:21:59 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: <0608D47FEF8E463095A0A9281128D242@abpc> Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Sun Feb 13 17:27:14 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 14 Feb 2011 10:27:14 +1100 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> References: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <201102132328.p1DNSUE5007261@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ agreed, and there is value for all other list members as then we know if the provided solution was suitable or not. and it is also good manners. regards Darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond [ab-mi at post3.tele.dk] Sent: Monday, 14 February 2011 10:19 AM To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rockysmolin at bchacc.com Sun Feb 13 17:45:13 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 15:45:13 -0800 Subject: [AccessD] CDO In-Reply-To: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 20:11:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 20:11:41 -0600 Subject: [AccessD] CDO In-Reply-To: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Message-ID: <7B20395DF450419295B8AB132547D842@DanWaters> Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 13 22:03:23 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 20:03:23 -0800 Subject: [AccessD] CDO In-Reply-To: <7B20395DF450419295B8AB132547D842@DanWaters> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg><97730524ECCC4F12B97A52F009DC6CF6@HAL9005> <7B20395DF450419295B8AB132547D842@DanWaters> Message-ID: <3FAC692F0DA243D5B773D32C140A525C@HAL9005> Thanks. Will forward and get and answer. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 6:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 14 01:18:41 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 14 Feb 2011 07:18:41 -0000 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <393E113EBEE44CD0AA0C36FF5C0A5047@MINSTER> Fair point Asger. I hope everyone takes heed. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: 13 February 2011 23:19 To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I've seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn't getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Feb 14 01:27:23 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 14 Feb 2011 09:27:23 +0200 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0608D47FEF8E463095A0A9281128D242@abpc> References: <0421405D459E470B8565306DFAE9289F@kost36> <0608D47FEF8E463095A0A9281128D242@abpc> Message-ID: <80B8AC08C4BC48ED980667CB0BA6AC4F@kost36> Yes Asger it works perfect thank's a lot /kostas -----Original Message----- From: Asger Blond Sent: Monday, February 14, 2011 1:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Passing query "Between" date values into a form Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 5871 (20110213) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com From Gustav at cactus.dk Mon Feb 14 05:07:06 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 12:07:06 +0100 Subject: [AccessD] Cleaning data by an Open Source tool Message-ID: Hi all Sometimes it has been discussed how to clean data. Here is an Open Source offer with a reputation of high quality: DataCleaner 2.0 http://datacleaner.eobjects.org/newsitem/datacleaner-2.0-released I haven't used it myself so I cannot give any further advice. /gustav From jm.hwsn at gmail.com Mon Feb 14 10:18:59 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 10:18:59 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem Message-ID: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim From Gustav at cactus.dk Mon Feb 14 10:31:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 17:31:48 +0100 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Message-ID: Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav From rockysmolin at bchacc.com Mon Feb 14 10:54:59 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 08:54:59 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <440D6D582182440E9ADD781199DD31B0@HAL9005> For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 11:23:34 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 11:23:34 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <4d596519.0120970a.351c.7690@mx.google.com> Thanks, Rocky. I'll try it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jengross at gte.net Mon Feb 14 11:58:29 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 09:58:29 -0800 Subject: [AccessD] Force Closing the FE Message-ID: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross From charlotte.foust at gmail.com Mon Feb 14 12:14:09 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 10:14:09 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in an > attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, delete or > modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale (1-10 or > 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as well as > change the text of the question. > > We are currently going through usability testing. ?The entire "class" is > around 500 students. ?The class has a 3 digit identifier that is used in the > questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The question > form has a sub form that shows an example of the question as it would look > on the questionnaire. ?When a search is done using a list box for combo box > the sub form changes to reflect the text and ?type of question. ?When the > question type changes the sub form updates the sample. For example a > question might change from a fill-in question to combo box self-lookup > question OR a question might change from a 4 pt multiple choice to a 4 pt > Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in some > questions. ?The researcher puts this identifier within the question to > personalize it for the students. ?I have a button on the question form that > is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need > to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after the > "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while the > dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys to > ensure that "Match" is set to "Any Part of Field" and that the cursor goes > to "Find What" field. ?That works, however, occasionally the Num Lock key is > turned off. ?I understand that I could use: Application.SetOption "Default > Find/Replace Behavior",1 - but that would set it for all users. ?Is there > some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Mon Feb 14 12:18:04 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:18:04 -0600 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <4d5971de.8772ec0a.699a.295a@mx.google.com> I did this once! The user's were not happy. Some opened the database and kept it open all day. Sometimes it would be idle for hours. Instead, what I did was to force close the FE's whenever I needed to do maintenance. I placed a small text file in the directory where the BE resided. To force everyone out, I changed the extension from txt to something else. Code in the frontend would periodically look for the file and if the extension was changed the user would get a pop-up form indicating the database would shut down in 1 minute for maintenance. I found the code and method here: http://support.microsoft.com/kb/304408 It worked for me. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 11:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 14 12:23:25 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 10:23:25 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 12:25:39 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:25:39 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> I do not use acCmdFindNext at all. But yes, the user can modify any instance of the value being searched. When the button is clicked, the Find Dialog appears. The user has the option to search for any text they need to find. They also have the option to do a global change (e.g. 68W to 92C) within all the question texts. Anytime the "Find Next" button in the Find Dialog box is pressed the sub form does not update. The user can use the dialog box for anything within the question text. Thanks, Charlotte Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. ?The entire "class" > is around 500 students. ?The class has a 3 digit identifier that is > used in the questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. ?When a search is done using a > list box for combo box the sub form changes to reflect the text and ? > type of question. ?When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. ?The researcher puts this identifier within the > question to personalize it for the students. ?I have a button on the > question form that is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will > need to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. ?That works, however, occasionally > the Num Lock key is turned off. ?I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. ?Is there some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > 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 jengross at gte.net Mon Feb 14 12:35:13 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 10:35:13 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> Message-ID: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 13:22:09 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 19:22:09 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:08:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:08:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:20:04 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:20:04 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:28:19 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:28:19 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Message-ID: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:44:02 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:44:02 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:52:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:52:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Message-ID: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 16:09:58 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 17:09:58 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <000301cbcc93$ece41320$c6ac3960$@com> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 16:10:22 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 22:10:22 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From stuart at lexacorp.com.pg Mon Feb 14 16:21:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 08:21:23 +1000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106>, <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > From jengross at gte.net Mon Feb 14 16:25:21 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:25:21 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> Message-ID: <004701cbcc96$1253e5c0$1201a8c0@Schroeder> Would you be willing to share the database log table and code? If so, please send to jennifer at yourdatabasics.com. I know I have stuff that I've been using since the mid-90's that I can't do without and use in every database as well. I don't even think about their existence or how they work - they just do what I need them to do. Thanks again, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 14 16:26:43 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:26:43 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <004801cbcc96$42d4bcb0$1201a8c0@Schroeder> Great idea Stuart. I am going to work this into the code that Bruce sent. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Feb 14 16:40:44 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 23:40:44 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jengross at gte.net Mon Feb 14 16:48:45 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:48:45 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: Message-ID: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 14 17:20:12 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 14 Feb 2011 18:20:12 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <125E4D47A358498F9B5FF73038C34406@XPS> FYI, the code Rocky has is from here: http://support.microsoft.com/?id=210297 also, there may be interest in passive shutdown which is a middle of the road approach between doing nothing and forcing users out (it prevents new users from connecting to the DB but doesn't kick existing users out): http://msdn.microsoft.com/en-us/library/aa164890(v=office.10).aspx You may want to combine that with a idle timeout and/or forced exit. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 02:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE <> From charlotte.foust at gmail.com Mon Feb 14 17:53:47 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 15:53:47 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the option > to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the sub > form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and allow > the researcher to modify that instance? ?Then use acCmdFindNext and it > doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students in >> an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form updates >> the sample. For example a question might change from a fill-in >> question to combo box self-lookup question OR a question might change >> from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) while >> the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use SendKeys >> to ensure that "Match" is set to "Any Part of Field" and that the >> cursor goes to "Find What" field. ?That works, however, occasionally >> the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 darren at activebilling.com.au Mon Feb 14 17:55:59 2011 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 15 Feb 2011 10:55:59 +1100 Subject: [AccessD] Force Closing the FE Message-ID: <014401cbcca2$bb920bb0$32b62310$@activebilling.com.au> Hi Jennifer Further to what has been said here - I also keep a track of what users have logged in and from what machine and when It has allowed me to prove or dis-prove a lot of things said by clients I also capture the logout/logoff times too and am able to do a simple average time logged in once I have these details Good for reports and again - for proving or dis-proving some claims If for whatever reason there was an ungraceful shutdown of the app or the local machine the log off times and machines are not recorded So this then allows me to see all the orphaned logons without a corresponding logoff. This info is useful as well My approach to this 'Everybody Out!' issue was to give an admin person a special admin form/s. This admin form allowed them to type messages (as well as 'canned' messages) and set statuses that the app responded to accordingly I had a routine that periodically checked this special Massages table in the BE and then behave accordingly. E.g. the Admin person could send a generic message to all users and the users would see this message. They could see it as a message box that required a click from the user, or as Stuart mentioned, in a timed/modal form It depended on the 'type' of message the admin person wanted to send The admin person could also set up a timed shut down - Users were alerted to that and they saw on screen countdowns for say 5mins down to closing time Or the admin person could set a forced immediate shutdown as well - again depending on the need The code had many messaged it could react to - I had about 6 or 7 that were code driven - but these could be categorised and made into a growing table driven list A bit like a Message Bus Of course for your needs it sounds like you need to get the time from a server and if a set time (Say 7:00pm) has passed then shut the front end. That's not too tricky either - but of course this mucks up the logon logoff times and average logged on times - but that's not a big deal if you aren't doing that already Lots of fun with these back end administrator screens See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, 15 February 2011 4:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 18:41:33 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 19:41:33 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: Message-ID: <000c01cbcca9$19f950e0$4debf2a0$@com> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djdros at derrickcorp.com Mon Feb 14 21:18:53 2011 From: djdros at derrickcorp.com (Dros, David J.) Date: Tue, 15 Feb 2011 06:18:53 +0300 Subject: [AccessD] Access 2003 on win server 2008 SLOW Message-ID: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Urgent help!! Has anyone encountered this? Acc 2003 FE/BE on brand new network. Clients running xp. Top of the line hardware etc. Cat 6 gig drops /nics etc. File transfer speed lightning fast. BE sitting on a brand new $25k nas running windows storage server 2008 64bit. Queries that write to the database take minutes vs seconds on old 10/100mb network of xp clients against single 10yr old sever 2003 fileserver. We are handcuffed in the middle of an overseas deployment. Any help or referals would be greatly appreciated. Thank you. David J Dros Derrick Corporation Sent from mobile device LEGAL & CONFIDENTIALITY NOTICE: This message, including any attachments, is intended for the addressee(s) only and contains confidential information. Access to the message by anyone else is unauthorized. If the reader of this message is not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any review, retransmission, disclosure, copying, or distribution of this message, or the taking of any action in reliance on its contents, by persons or entities other than the intended recipient is strictly prohibited. If you have received this email in error, we ask you to contact the sender immediately, delete this message from your computer system, and destroy all paper copies. From stuart at lexacorp.com.pg Mon Feb 14 21:27:08 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 13:27:08 +1000 Subject: [AccessD] Access 2003 on win server 2008 SLOW In-Reply-To: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Message-ID: <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Could it be something to do SMB2. I've just come across this in another context and was pointed to http://www.alaska-software.com/fixes/smb2/overview.shtm "With the advent of Windows Vista and Windows 7, Microsoft introduced a new network protocol (SMB2) to optimize file sharing for WAN and low bandwidth and high latency scenarios. To optimize these types of file access scenarios, Microsoft performed design decisions which lead to the inability of the new SMB2 protocol to handle cache coherency of file meta information such as the file size, the last update time and whether the file actually exists on the server ("file not found" status). As a result of this design decision made by Microsoft, the SMB2 protocol with its default configuration breaks any application relying on shared, concurrent data access. It is therefore absolutely required to reconfigure the SMB2 cache of the local workstation to not cache file meta information. Alaska Software provides to its customers and their end-users an MSI installation package which reconfigures the SMB2 cache accordingly. This MSI package needs to be executed on any Vista and Windows 7 workstation in a network to ensure that no data loss or data corruption occurs when accessing files concurrently." -- Stuart On 15 Feb 2011 at 6:18, Dros, David J. wrote: > Urgent help!! > Has anyone encountered this? Acc 2003 FE/BE on brand new network. > Clients running xp. Top of the line hardware etc. Cat 6 gig drops > /nics etc. File transfer speed lightning fast. BE sitting on a brand > new $25k nas running windows storage server 2008 64bit. Queries that > write to the database take minutes vs seconds on old 10/100mb network > of xp clients against single 10yr old sever 2003 fileserver. We are > handcuffed in the middle of an overseas deployment. Any help or > referals would be greatly appreciated. Thank you. > From rockysmolin at bchacc.com Mon Feb 14 23:58:40 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 21:58:40 -0800 Subject: [AccessD] Error 3709 The search key was not found in any record Message-ID: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Dear List: Client gets this error: "Error 3709 The search key was not found in any record" and the line of code triggering it is Me.Filter = strWhere. strWhere has some valid filtering criteria. It seems to be random or at least not replicatable. Big variable is that he's running an A2K3 mdb on A2K7 (boo!) and W7. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Gustav at cactus.dk Tue Feb 15 03:57:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Feb 2011 10:57:46 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert You are most likely right. I had to give up on this after some bad experiences with "lost" data - an issue that never had happened before of "no apparent reason" and never happened again after the automatic shutdown was removed. /gustav >>> robert at servicexp.com 15-02-2011 01:41 >>> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jackandpat.d at gmail.com Tue Feb 15 07:27:15 2011 From: jackandpat.d at gmail.com (jack drawbridge) Date: Tue, 15 Feb 2011 08:27:15 -0500 Subject: [AccessD] Error 3709 The search key was not found in any record In-Reply-To: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> References: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Message-ID: Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in any > record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is that > he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Tue Feb 15 08:09:28 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 08:09:28 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 robert at servicexp.com Tue Feb 15 08:46:45 2011 From: robert at servicexp.com (Robert) Date: Tue, 15 Feb 2011 09:46:45 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <002901cbcd1f$2c3a0030$84ae0090$@com> Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 09:05:37 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 09:05:37 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <002901cbcd1f$2c3a0030$84ae0090$@com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <002901cbcd1f$2c3a0030$84ae0090$@com> Message-ID: <4d5a9643.1f44960a.3b51.07f8@mx.google.com> Thanks, Robert. I tried that. I also tried to use a function (private and public) to no avail. The acCmdFind dialog box is the same one seen when Ctr+F is pressed. I would like to put something on the button "Find Next" but it seems that's not possible. I didn't want to create my own dialog box, but I might have to. Thanks for all the suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, February 15, 2011 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I >> could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 10:34:09 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 08:34:09 -0800 Subject: [AccessD] FW: Error 3709 The search key was not found in any record Message-ID: <2AB45B24A4304C9EBF470DF4AB232489@HAL9005> -----Original Message----- From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Tuesday, February 15, 2011 6:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error 3709 The search key was not found in any record Jack: There is a memo field in that bound form. I'll forward to the client. If we can figure out how to duplicate the problem reliably (it's seemingly random at the moment) then I could delete all of the data in the memo fields and see if that solves it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Tuesday, February 15, 2011 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3709 The search key was not found in any record Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in > any record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is > that he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 13:49:38 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 11:49:38 -0800 Subject: [AccessD] Convert To PDF Problem Message-ID: Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rusty.hammond at cpiqpc.com Tue Feb 15 13:55:05 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 15 Feb 2011 13:55:05 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Tue Feb 15 14:20:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 06:20:10 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Tue Feb 15 14:20:43 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 15 Feb 2011 14:20:43 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 14:26:05 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 14:26:05 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Message-ID: <4d5ae160.6a3fec0a.2e90.ffffb98a@mx.google.com> That's correct. Thanks for the clarification. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 15, 2011 2:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 14:33:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 12:33:12 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <63463EA44AC249B49075058DBAB40786@HAL9005> Same report. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Tuesday, February 15, 2011 11:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert To PDF Problem Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Feb 15 15:01:18 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 13:01:18 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <8E759E1C63BE4A9AA390D5B4FABE93C8@HAL9005> Dan: I changed Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) To Set db = CurrentDb Set rstQ = db.OpenRecordset("Select * FROM tblUser") Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) rstQ.Close Set rstQ = Nothing But to no avail. I do get the flash on the screen that says the snp is being created, then...nothing. It should create the PDF and then fall through to a message box that says "Rental Agreements exported." bit it doesn't. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 15, 2011 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert To PDF Problem Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Tue Feb 15 21:20:08 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 21:20:08 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: I sent someone a database with a compiled front end / back end last June. Now he has emailed me because the the forms and reports can be viewed in Design view. The file he sent back (with .mde extension) does not run the startup form, and it does allow me to open forms and reports in Design view. The modules are all gone however. This was an Access2000 database. I don't know what version of Access his co-workers were using (he's just the messenger), but I do know that the OS is Windows7. I had also heard from them last June that they were having trouble opening the file -- getting a message that Windows was blocking it. It sounds like they found something to handle the problem of the database being blocked by Windows 7 that ended up allowing design view? Does anyone know what they might have done? The person I'm dealing with doesn't seem to know. Thanks Carolyn Johnson St Louis, MO From stuart at lexacorp.com.pg Tue Feb 15 21:46:34 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:46:34 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> The only way that I can think of for that to happen is that someone has used a tool to recreate the forms and reports from the original MDE into another file which they have given the same name. That would explain the absence of any code modules. I seem to remember one of our list members creating such a thing a few years ago. Hang on a minute while I search my archives...... Yep, Shamil came up with concept back in 2002. Last reference on the list was: "Shamil Salakhetdinov" Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, Issue 23 Tue,16 Feb 2010 23:12:03 +0300 -- Stuart On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > I sent someone a database with a compiled front end / back end last > June. Now he has emailed me because the the forms and reports can be > viewed in Design view. > > The file he sent back (with .mde extension) does not run the startup > form, and it does allow me to open forms and reports in Design view. > The modules are all gone however. > > > This was an Access2000 database. I don't know what version of Access > his co-workers were using (he's just the messenger), but I do know > that the OS is Windows7. I had also heard from them last June that > they were having trouble opening the file -- getting a message that > Windows was blocking it. > > > It sounds like they found something to handle the problem of the > database being blocked by Windows 7 that ended up allowing design > view? Does anyone know what they might have done? The person I'm > dealing with doesn't seem to know. > > > > Thanks > Carolyn Johnson > St Louis, MO > -- > 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 Feb 15 21:55:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:55:02 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> Message-ID: <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Tue Feb 15 22:32:05 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 22:32:05 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Message-ID: <931C03D1C41D479D8A387793840B07A5@Dell> Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . And I still don't know what the issue is with it being blocked by Windows 7. None of this makes sense, although that may be asking for too much. Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Tuesday, February 15, 2011 9:55 PM Subject: Re: [AccessD] compiled .mde file allowing design view Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 16 05:11:21 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 16 Feb 2011 06:11:21 -0500 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <931C03D1C41D479D8A387793840B07A5@Dell> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> <931C03D1C41D479D8A387793840B07A5@Dell> Message-ID: <4D5BB0D9.7000902@colbyconsulting.com> In a true MDE the code is there, it is just in a PCode state, i.e. the source has been removed. John W. Colby www.ColbyConsulting.com On 2/15/2011 11:32 PM, Carolyn Johnson wrote: > Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . > > And I still don't know what the issue is with it being blocked by Windows 7. > > None of this makes sense, although that may be asking for too much. > > > Carolyn > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Tuesday, February 15, 2011 9:55 PM > Subject: Re: [AccessD] compiled .mde file allowing design view > > > Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of > the forms and reports in the MDE. > > -- > Stuart > > On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > > > The only way that I can think of for that to happen is that someone > > has used a tool to recreate the forms and reports from the original > > MDE into another file which they have given the same name. That would > > explain the absence of any code modules. > > > > I seem to remember one of our list members creating such a thing a few > > years ago. Hang on a minute while I search my archives...... > > > > Yep, Shamil came up with concept back in 2002. Last reference on the > > list was: > > > > "Shamil Salakhetdinov" > > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > > > > -- > > Stuart > > > > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > > > I sent someone a database with a compiled front end / back end last > > > June. Now he has emailed me because the the forms and reports can > > > be viewed in Design view. > > > > > > The file he sent back (with .mde extension) does not run the startup > > > form, and it does allow me to open forms and reports in Design view. > > > The modules are all gone however. > > > > > > > > > This was an Access2000 database. I don't know what version of > > > Access his co-workers were using (he's just the messenger), but I do > > > know that the OS is Windows7. I had also heard from them last June > > > that they were having trouble opening the file -- getting a message > > > that Windows was blocking it. > > > > > > > > > It sounds like they found something to handle the problem of the > > > database being blocked by Windows 7 that ended up allowing design > > > view? Does anyone know what they might have done? The person I'm > > > dealing with doesn't seem to know. > > > > > > > > > > > > Thanks > > > Carolyn Johnson > > > St Louis, MO > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 21:51:27 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 19:51:27 -0800 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) In-Reply-To: References: Message-ID: ...and here is another JavaScipt fast-loader that I have been playing with: http://labjs.com/ Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 22:05:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 20:05:02 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 16 22:39:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 20:39:47 -0800 Subject: [AccessD] FW: Convert To PDF Problem Message-ID: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Feb 16 23:00:17 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 00:00:17 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> Message-ID: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 17 00:58:31 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 22:58:31 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Message-ID: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 07:02:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 08:02:23 -0500 Subject: [AccessD] CDO In-Reply-To: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> Message-ID: <4D5D1C5F.3070304@colbyconsulting.com> in C# I am actually using a gmail account to send and receive email. John W. Colby www.ColbyConsulting.com On 2/12/2011 3:27 PM, John Bartow wrote: > One of the issues I've run into using third party email apps/activex/dll in > one Microsoft (government) network is that the security staff install spam > blockers and such that do not allow anything to access the smtp server. They > basically broke my application that had been installed there for 10 years > and refused to adapt their security to allow it to work. Ignorance makes for > paranoia and there's no getting around ignorant security staff. They are > like gods to the unwitting administrative staff that have to make the final > decisions. So I was basically forced into recoding an old iron horse app to > utilize Outlook/Exchange and the user just has to click the irritating > "allow for one hour" prompt when the first email is sent. It is no big deal > to them just an item that needs to be explained. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, February 11, 2011 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CDO > > Ricky, > > You might consider Total Access Email from FMS > http://www.fmsinc.com/MicrosoftAccess/Emails.asp > > For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but > then that doesn't meet your "avoid ActiveX" criteria. > > Regards > Steve > > -----Original Message----- > From: Rocky Smolin > Sent: Saturday, February 12, 2011 5:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] CDO > > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without using > dlls or activex controls which would need to be registered? > > MTIA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From michael at mattysconsulting.com Thu Feb 17 11:22:07 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 12:22:07 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, Yes, that's what I would've expected to find. I have made a program based on Leban's work also, seems like it should be an easy to find needle in the haystack. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Feb 17 14:09:38 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 17 Feb 2011 14:09:38 -0600 Subject: [AccessD] Using Access to Back-up Remote SQL-Server Tables - Looking for a better approach References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Message-ID: Background Small Firm Currently no Microsoft SQL-Server in house (Only Microsoft Access) Website Hosting is outsourced. Website orders are stored in SQL-Server at the hosting firm. We have reason to believe that adequate SQL-Server backups are not being done by the hosting firm. (We are in the process of finding a new website hosting firm.) I have a little Access application that pulls the data (with ODBC) from the 24 SQL-Server tables at the hosting firm and imports these tables into Access tables. This takes about 5 minutes to run. I view these tables as a "last resort" short-term backup. With this as background, here is my question... I am thinking about installing SQL-Server 2008 Express. How difficult would it be to import these 24 remote SQL-Server tables into a local copy of SQL-Server. This was easy to do with Access, but I am not familiar with SQL-Server utilities. I know that this is more of a SQL-Server question than an Access question. I just thought that many of you have a lot of experience with SQL-Server and could possibly point me in the right direction. Perhaps my current approach of using Access is good enough. Thanks, Brad From jengross at gte.net Thu Feb 17 14:52:58 2011 From: jengross at gte.net (Jennifer Gross) Date: Thu, 17 Feb 2011 12:52:58 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> Message-ID: <00ce01cbcee4$a9cb00f0$1201a8c0@Schroeder> Thanks for the caution Jim. The collective knowledge of this group always blows my mind. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 16, 2011 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 21:42:32 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 22:42:32 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D5DEAA8.2090501@colbyconsulting.com> Borge, I haven't forgotten you. I will create a username / password for you but I need to know more. What group to add you to, what rights to assign that group etc. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From pcs.accessd at gmail.com Fri Feb 18 06:24:13 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Fri, 18 Feb 2011 22:24:13 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D5DEAA8.2090501@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> <4D5DEAA8.2090501@colbyconsulting.com> Message-ID: John, Thanks for the update. No hurry... I am in Koh Samui for a wedding and will be back in Australia early next week. I guess the group and rights issues are being worked out by you, and not questions for me. Regards borge On Fri, Feb 18, 2011 at 1:42 PM, jwcolby wrote: > Borge, > > I haven't forgotten you. I will create a username / password for you but I > need to know more. What group to add you to, what rights to assign that > group etc. > > > John W. Colby > www.ColbyConsulting.com > > On 2/12/2011 1:09 AM, Borge Hansen wrote: > >> John, sending this a second time, as the first email was above the 20Kb >> limit ?!!? >> If keeping this conversation on Accessd, please continue under a new >> Subject >> Heading >> Borge >> >> >> >> Alright ... done that ... assuming using SQL Server Authentication, so I >>> need user name and pword for your connection / ODBC systems DSN .... I >>> tried >>> with same user name and password as I had kept in my configuration .... >>> didn't work .... >>> >>> I can ping your network... >>> I can chat to your network... >>> I can't connect to your sql server .... >>> Back to the drawing board... >>> >>> Regards >>> Borge >>> >>> >>> >>> On Sat, Feb 12, 2011 at 12:39 AM, jwcolby>> >wrote: >>> >>> Borg, >>>> >>>> I have the database restored and available. If you were to attach to >>>> the >>>> Hamachi network that you received the invite to join, you would see the >>>> SQL >>>> Server database at 5.203.167.79. >>>> >>>> If you were to use the Access Fe that you sent to me, and edit the DSN >>>> to >>>> use that IP as the server name, you would be connecting directly into >>>> the >>>> server on my VM. >>>> >>>> >>>> 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 Lambert.Heenan at chartisinsurance.com Fri Feb 18 09:07:13 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 18 Feb 2011 10:07:13 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 10:46:17 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 08:46:17 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Feb 18 12:19:14 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 18 Feb 2011 12:19:14 -0600 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <30D57E25E3164C6F80178CB681220BCC@DanWaters> Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 18 12:53:04 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Feb 2011 10:53:04 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 13:06:34 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 11:06:34 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Message-ID: <2E6999F5433E42AC8DD9B1F81816230B@HAL9005> Problem here is that the whole routine is encapsulated in a module which I call from the CBF. In the one form it works perfectly. In the other it fails unless I run it one time from the first form. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 18, 2011 10:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 18 19:49:54 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 17:49:54 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <30D57E25E3164C6F80178CB681220BCC@DanWaters> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: Dan: No soap. The code us in a module and is a Public Function. And works perfectly when it is called from the form where I first implemented it. But when I call it from the second form it doesn't work. However, if I call it from the first form, the call it from the second form then it DOES work in the second form. So the call in the first form is apparently creating some condition that the second form doesn't. But danged if I can spot it. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 18, 2011 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lawrence.robinr at gmail.com Sat Feb 19 04:03:35 2011 From: lawrence.robinr at gmail.com (Robin Lawrence) Date: Sat, 19 Feb 2011 10:03:35 -0000 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-solution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Sat Feb 19 08:13:18 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 19 Feb 2011 09:13:18 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <65F58CC636624923B89498173CAE7D35@DCYN3T81> Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 19 08:58:48 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 19 Feb 2011 06:58:48 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <65F58CC636624923B89498173CAE7D35@DCYN3T81> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com><440D6D582182440E9ADD781199DD31B0@HAL9005> <65F58CC636624923B89498173CAE7D35@DCYN3T81> Message-ID: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> I think so. But I tend to write more verbose code out of self defense because 6 months later it's much easier to figure out what I was trying to do. So my code reads: "If the user's preference is to have the num lock on and it's off then toggle the num lock off. Of the user's preference is to have the num lock on and it's off, then toggle the num lock on." A bit redundant, I know, but just easier for me. Old guy, you know.... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jwcolby at colbyconsulting.com Sat Feb 19 13:53:30 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 14:53:30 -0500 Subject: [AccessD] I'm getting nowhere Message-ID: <4D601FBA.5020302@colbyconsulting.com> I am getting nowhere on understanding SQL Server security. Microsoft provides us with SQL Server Express which implies that joe blow (me) is going to install / maintain it. I am not a SQL Server Admin and I cannot afford to spend the time to be one. Google is my friend. BOL is not. Except that Google is taking me to these places where I am expected to already know how this stuff works, and then wants to make me a *better* administrator. Which of course is useless because I am not an administrator at all. OTOH I am not stupid. If I could find something that started at the "This is SQL Server security" basics I could learn this stuff. Before anyone says "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it simply sucks for my level of expertise (my opinion of course). If that is your advice, simply stay out of this thread. Thanks! So... my needs: I need to set up several SQL Server databases for use by different, very small groups (5-20 people) of entirely unrelated people. What I mean by that is that each DB is for a different "company" if you will. I need to access these databases from C#. I understand the group / user paradigm. I would like to create groups and users. Specific groups can do specific things in the database, some can see data but not modify it. Some can add records in specific tables but not others. Some can run reports (view). I do *NOT* want to create windows level groups and users if I can avoid it. These are people that I do not necessarily know and I do not want to give them any rights at the machine level, and I prefer to not maintain such lists at the machine level. Unfortunately SQL Server does not seem to model Groups / users. I go into SQL Server and see a security tab. It has "logins". Is that a user? A specific ability to log in with a password? To what? The server itself? A specific database? Groups of databases? I see "roles" but these appear to be aimed at the server and none of these people are going to be doing anything at the server level. Can I safely ignore everything under the server security tab? I go to a database and I see a security tab. It has users and roles. Hmm... better (I would think). I would like to add users "under" the specific database that the user will access. So I try to add a new user but I do not see anywhere to require a password. Hmmm... I go into roles and I do not see any predefined role that looks like it would be useful to me in meeting my needs described above. If I look at "add new role" it asks for a password. The User / group model does nto assign passwords at the group level which implies that a role is not a group at the user / group paradigm. Is it just me, or is SQL Server security just... different? Am I correct in assuming that it doesn't implement a user / group paradigm? And more importantly, where can I go to get a plain, simple, English description of how this mess works? And please excuse the tone that results from my frustration. The only help documents that I have found (and I have extensive lists of bookmarked web pages) so far assume that I am an administrator. I am not, and cannot afford to become one. And yet MS pushes SQL Express as if I (non-admin) should be able to use this as a data store pool. Help! -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sat Feb 19 17:06:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 09:06:52 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, <65F58CC636624923B89498173CAE7D35@DCYN3T81>, <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> Message-ID: <4D604D0C.5787.1EB6CF22@stuart.lexacorp.com.pg> If I had to pick up your code from scratch and maintain it in the future: I actually find "If the user's Numlock preference doesn't match the current Numlock state, then toggle it" easier to follow :-). -- Stuart On 19 Feb 2011 at 6:58, Rocky Smolin wrote: > I think so. But I tend to write more verbose code out of self defense > because 6 months later it's much easier to figure out what I was > trying to do. > > So my code reads: > > "If the user's preference is to have the num lock on and it's off then > toggle the num lock off. Of the user's preference is to have the num > lock on and it's off, then toggle the num lock on." > > A bit redundant, I know, but just easier for me. Old guy, you > know.... > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob > Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > Hi Rocky > > This has nothing to do with solving your problem - sorry - but I just > had a question about part of your code ... > > Would this work the same? > > Private Sub NumLockChecker() > If Not (DLookup("NumLockPreference", "LocalOptions") = > IsNumLockOn) Then > ToggleNumLock End Sub > > Thanks > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > For #2 I use the following - except for the first module it's not my > code - I cribbed it from somewhere else. I store the user's > preference for num lock on or off in a local options table. > > > Private Sub NumLockChecker() > If DLookup("NumLockPreference", "LocalOptions") = True And > IsNumLockOn = > False Then ToggleNumLock > If DLookup("NumLockPreference", "LocalOptions") = False And > IsNumLockOn > = True Then ToggleNumLock End Sub > > Function IsNumLockOn() As Boolean > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > IsNumLockOn = keys(VK_NUMLOCK) > > End Function > > Sub ToggleNumLock() > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > > If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then > '=====Win95 > keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) > SetKeyboardState keys(0) > ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then > '=====WinNT 'Simulate Key Press > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, > 0 > 'Simulate Key Release > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ > Or KEYEVENTF_KEYUP, 0 > End If > > End Sub > > Where the Type statement is > > ' Declare Type for API call: > Private Type OSVERSIONINFO > dwOSVersionInfoSize As Long > dwMajorVersion As Long > dwMinorVersion As Long > dwBuildNumber As Long > dwPlatformId As Long > szCSDVersion As String * 128 ' Maintenance string for PSS > usage > End Type > > And the constants: > > ' Constant declarations: > Const VK_NUMLOCK = &H90 > Const VK_SCROLL = &H91 > Const VK_CAPITAL = &H14 > Const KEYEVENTF_EXTENDEDKEY = &H1 > Const KEYEVENTF_KEYUP = &H2 > Const VER_PLATFORM_WIN32_NT = 2 > Const VER_PLATFORM_WIN32_WINDOWS = 1 > > I think that's everything. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] Access 2007 - > acCmdFind problem > > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more > researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. The entire "class" > is around 500 students. The class has a 3 digit identifier that is > used in the questions. There are about 350 questions in the current > questionnaire. > > > > The researcher uses a Question form to modify the questions. The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. When a search is done using a > list box for combo box the sub form changes to reflect the text and > type of question. When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. The researcher puts this identifier within the > question to personalize it for the students. I have a button on the > question form that is used to search for questions with the 3 digit > class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 > digit class identifier will need to change periodically and this > allows the researcher to do a "replace all" after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function (update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. That works, however, occasionally > the Num Lock key is turned off. I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. Is there some way to achieve the same > functionality without using SendKeys? > > > > Thanks in advance, > > 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 jwcolby at colbyconsulting.com Sat Feb 19 18:18:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 19:18:04 -0500 Subject: [AccessD] [dba-SQLServer] I'm getting nowhere In-Reply-To: References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605DBC.3080006@colbyconsulting.com> > The hierarchy goes like this: > > Roles > -- Users But why does the user have no (apparent) password but the role does? I found a vague (to me) reference to schemas and assigning schemas to users... Now that makes sense. I assume in all this that if a user goes away I just delete the user? I don't see any way to enable / disable the user. This whole thing just seems real hokey. John W. Colby www.ColbyConsulting.com On 2/19/2011 4:38 PM, Arthur Fuller wrote: > The hierarchy goes like this: > > Roles > -- Users > > What is not obvious from the docs is that you can add a role to a role. The > reason you would want to do this is to "include" lower-level capabilities > within a higher-level group (without bothering to have to re-define these). > > You can grant select, update, delete and inserts on any combination of > tables, views and sprocs. The approach I typically use is to deny table > access to everyone but me, and then to grant various levels of access to > views and sprocs to various roles. That way, no one but you can directly hit > a table. > > So, your bottom level might define Select capability and nothing else (to > one or more views and sprocs). The next level up might permit Updates, and > the next Inserts and Deletes. Actually I mean granting this privileges on > the sprocs/views created for those purposes. > > As you move up the hierarchy, you can "stack" the abilities (i.e. add the > lowest level role to the next up, and so on, until you reach the top, where > the only member of that role is you. > > HTH, and if not feel free to ask. > Arthur > > On Sat, Feb 19, 2011 at 2:53 PM, jwcolbywrote: > >> I am getting nowhere on understanding SQL Server security. Microsoft >> provides us with SQL Server Express which implies that joe blow (me) is >> going to install / maintain it. >> >> I am not a SQL Server Admin and I cannot afford to spend the time to be >> one. >> >> Google is my friend. BOL is not. >> >> Except that Google is taking me to these places where I am expected to >> already know how this stuff works, and then wants to make me a *better* >> administrator. Which of course is useless because I am not an administrator >> at all. >> >> OTOH I am not stupid. If I could find something that started at the "This >> is SQL Server security" basics I could learn this stuff. Before anyone says >> "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it >> simply sucks for my level of expertise (my opinion of course). If that is >> your advice, simply stay out of this thread. Thanks! >> >> So... my needs: >> >> I need to set up several SQL Server databases for use by different, very >> small groups (5-20 people) of entirely unrelated people. What I mean by >> that is that each DB is for a different "company" if you will. I need to >> access these databases from C#. I understand the group / user paradigm. I >> would like to create groups and users. Specific groups can do specific >> things in the database, some can see data but not modify it. Some can add >> records in specific tables but not others. Some can run reports (view). >> >> I do *NOT* want to create windows level groups and users if I can avoid it. >> These are people that I do not necessarily know and I do not want to give >> them any rights at the machine level, and I prefer to not maintain such >> lists at the machine level. >> >> Unfortunately SQL Server does not seem to model Groups / users. I go into >> SQL Server and see a security tab. It has "logins". Is that a user? A >> specific ability to log in with a password? To what? The server itself? A >> specific database? Groups of databases? >> >> I see "roles" but these appear to be aimed at the server and none of these >> people are going to be doing anything at the server level. >> >> Can I safely ignore everything under the server security tab? >> >> I go to a database and I see a security tab. It has users and roles. >> Hmm... better (I would think). I would like to add users "under" the >> specific database that the user will access. >> >> So I try to add a new user but I do not see anywhere to require a password. >> Hmmm... >> >> I go into roles and I do not see any predefined role that looks like it >> would be useful to me in meeting my needs described above. If I look at >> "add new role" it asks for a password. The User / group model does nto >> assign passwords at the group level which implies that a role is not a group >> at the user / group paradigm. >> >> Is it just me, or is SQL Server security just... different? Am I correct >> in assuming that it doesn't implement a user / group paradigm? >> >> And more importantly, where can I go to get a plain, simple, English >> description of how this mess works? >> >> And please excuse the tone that results from my frustration. The only help >> documents that I have found (and I have extensive lists of bookmarked web >> pages) so far assume that I am an administrator. I am not, and cannot >> afford to become one. And yet MS pushes SQL Express as if I (non-admin) >> should be able to use this as a data store pool. >> >> Help! >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Sat Feb 19 18:22:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 10:22:49 +1000 Subject: [AccessD] I'm getting nowhere In-Reply-To: <4D601FBA.5020302@colbyconsulting.com> References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605ED9.11823.1EFC5774@stuart.lexacorp.com.pg> On 19 Feb 2011 at 14:53, jwcolby wrote: > If I could find something that started at the > "This is SQL Server security" basics I could learn this stuff. Maybe this will help. (This is "my" understanding of it - corrections from others welcome .) There are two levels of "Security" in SQL Server: 1. SQL Server Instance (Server name) level 2. Database level At the Instance Level, you have: 1. Server Roles 2. Logins At the Database level you have: 1. Database Roles 2. Users INSTANCE LEVEL ============== SERVER ROLES These are generic sets of "rights" which apply to the entire Instance. "Server role is used to grant server-wide privileges to a user" . Generally, use Public for all logins unless you need admin rights on the server. LOGIN To allow anyone to access SQL Server, you need to create a login at instance level for them and then define what that login can do in terms of individual databases Login = an entity that can log in to SQL Server. In your situation, you are using SQL Secruity so a Login needs a Username and Password. If using Windows/Mixed security, it could also be an Active Drectory user. Note the use of the word "entity" - not person. With SQL Security, an entity is entirely identified by the username/password pair. If you embed a standard username/password in a connection string for an application that connects to SQL Server, then that application itself is the logged in entity. Alternatively, if you collect the username/password from the person using that application and put that the in the connection string, the individual user is the entity. On creation, you can define the "Default Database" for the login - this is the one they automatically access (so your don't need to specify it in your connection string.) DATABASE LEVEL =============== DATABASE ROLE Role = a definition a what entities with that role can do in the database.. There are a number of predefined roles, which are useful for things like "read only" users but you frequently need to create your own and assign rights to specific database objects for that role. i.e. allow read only on some tables and write access on others. You can also do things like prevent users from directly writing to any tables and only allow them to run specfic stored prcedures to update data. Once you have defined a new role within the database, you can assign that role to specific users within that database. You can think of a role as similar to a Group, it defines a set of rights and you can assign roles to users in the same way you assign "group membership" to Windows users. USER Once you have created a Login, you go the relevant database ( or databases) and assign rights to that login in that database. You do that by adding the Login as a User in that database. User = The definition of what a particular login entity can do in the database. To make a specific login a user in the database, you create a new user and select the existing Login name. Note that you can give that user the same name as the Login name or use a completely different one. Unless you have a good reason, I'd use the same as the login name. You then assign Databse Roles to the User to control what the user can do in the database. -- Stuart From rockysmolin at bchacc.com Mon Feb 21 10:10:33 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:10:33 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: Robin: No images in the report. Pretty plain vanilla stuff. And it works when called from the form for which I originally implemented Lebans' code. But it doesn't work from the second form unless I run it once from the first form. Then the second form works. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robin Lawrence Sent: Saturday, February 19, 2011 2:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-sol ution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Mon Feb 21 10:40:33 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Mon, 21 Feb 2011 10:40:33 -0600 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: <6577705DE870458B8A84B96BBC0EA0FF@Dell> I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > From rockysmolin at bchacc.com Mon Feb 21 10:55:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:55:12 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <6577705DE870458B8A84B96BBC0EA0FF@Dell> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> <6577705DE870458B8A84B96BBC0EA0FF@Dell> Message-ID: <1C2CEB538F7C4EAB86D2E97BF6D71D9C@HAL9005> Carolyn: Could I impose on you to send me those updated dlls off line (those are dynapdf.dll and strStorage.dll, yes?). Mine are dated 2006. Maybe that will clear up the problem. Thanks and regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, February 21, 2011 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Feb 21 11:58:06 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 09:58:06 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 13:23:40 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 Feb 2011 14:23:40 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <4D62BBBC.2040408@colbyconsulting.com> > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order to do > maintenance or make data structure changes to an evolving database. I am > open to any suggestions including learning more sophisticated coding than I > am used to . . . > > I don't have any long running processes that would take more than a minute > or two, so checking for inactivity every 30 minutes, with shut down after 60 > minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you are > used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected result > with other code procedures. For some reason Access (at least with the > programs I use to build (large complex)) has never liked timers, internal > (form) or external (API).. I think it has something to do with running them > in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a user > down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in the > past. Was always able to get around it because of my network permissions - > with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - that's > a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 13:29:44 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 11:29:44 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: It uses a dll not form timer as far as I can see. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Feb 21 14:34:53 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 21 Feb 2011 14:34:53 -0600 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <000601cbd206$cca0d440$65e27cc0$@comcast.net> I downloaded and looked at this. It does use a form timer, and it looks to see if the current active control is the same active control as the last time it looked. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, February 21, 2011 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 14:54:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 22 Feb 2011 06:54:01 +1000 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: , <004a01cbcc99$57261fd0$1201a8c0@Schroeder>, Message-ID: <4D62D0E9.4286.2889E9F5@stuart.lexacorp.com.pg> Yes it does. In frmInactiveShutDown Private Sub Form_Timer() '********************************************************************** '* This timer event procedure will shut down the application '* after a specified number of minutes of inactivity. Inactivity '* is measured based on how long a control remains the ActiveControl. '********************************************************************** And it doesn't allow remote control or shut down at a specific time. Very limited compared to previous posted solutions. -- Stuart On 21 Feb 2011 at 9:58, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock Sent: Monday, February 14, 2011 2:41 PM To: > accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > > >>> robert at servicexp.com 14-02-2011 23:09 >>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal (form) or external (API).. I think it has something > to do with running them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Force Closing > the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 17:28:09 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 15:28:09 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: <090CDAD44D744C36B0502A547965F956@murphy3234aaf1> My Error. I just downloaded the zip file and looked in to see the exe. Actually installed it and opened the example. It does use a hidden form and timer. Not what I thought it was. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gweedensmith at iowatelecom.net Wed Feb 23 21:43:56 2011 From: gweedensmith at iowatelecom.net (Greg Smith) Date: Wed, 23 Feb 2011 21:43:56 -0600 Subject: [AccessD] Emails not working? Message-ID: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Where has everyone gone? Greg From rockysmolin at bchacc.com Wed Feb 23 23:55:05 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 23 Feb 2011 21:55:05 -0800 Subject: [AccessD] Emails not working? In-Reply-To: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Message-ID: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> The last possible Access question was answered on Monday. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Wednesday, February 23, 2011 7:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails not working? Where has everyone gone? Greg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 24 00:08:40 2011 From: john at winhaven.net (John Bartow) Date: Thu, 24 Feb 2011 00:08:40 -0600 Subject: [AccessD] Emails not working? In-Reply-To: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: <000b01cbd3e9$487cf2e0$d976d8a0$@winhaven.net> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 23, 2011 11:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Emails not working? The last possible Access question was answered on Monday. Rocky From jwcolby at colbyconsulting.com Thu Feb 24 05:31:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 06:31:37 -0500 Subject: [AccessD] Just quiet? Message-ID: <4D664199.3090801@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com From garykjos at gmail.com Thu Feb 24 06:16:57 2011 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Feb 2011 06:16:57 -0600 Subject: [AccessD] Just quiet? In-Reply-To: <4D664199.3090801@colbyconsulting.com> References: <4D664199.3090801@colbyconsulting.com> Message-ID: It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 df.waters at comcast.net Thu Feb 24 07:40:12 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 07:40:12 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass Message-ID: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ From jwcolby at colbyconsulting.com Thu Feb 24 08:25:06 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 09:25:06 -0500 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D666A42.7020703@colbyconsulting.com> Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked myself > out of an Access file by mistakenly running code to change its properties, > including setting the AllowShiftBypass property to False. The normal way to > fix this is to open a new Access file and import all the objects, then reset > references, startup properties, and options. It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I could > make a utility to reset an Access file?s properties where that file had its > properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run the > first procedure ? this will ask you to select an Access file, and it will > then reset several properties to true so that you can open it normally > again. > > Hope someone can use this! > Dan > > ?------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the > _ > user picked at least one file. If the .Show method returns > _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > ?------------------------ > > > > From andy at minstersystems.co.uk Thu Feb 24 11:31:56 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Feb 2011 17:31:56 -0000 Subject: [AccessD] Just quiet? In-Reply-To: Message-ID: Hush -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 February 2011 12:17 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Just quiet? It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 davidmcafee at gmail.com Thu Feb 24 12:32:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 Feb 2011 10:32:11 -0800 Subject: [AccessD] Just quiet? In-Reply-To: References: Message-ID: shhh, you guys keep waking me up! On Thu, Feb 24, 2011 at 9:31 AM, Andy Lacey wrote: > Hush > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 24 February 2011 12:17 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Just quiet? > > > It would seem so. > > GK > From df.waters at comcast.net Thu Feb 24 12:37:30 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 12:37:30 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D666A42.7020703@colbyconsulting.com> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> <4D666A42.7020703@colbyconsulting.com> Message-ID: <000c01cbd451$e5e54b00$b1afe100$@comcast.net> Thanks John! Of course now that I have this I'll probably remember not to lock myself out anymore. ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 24, 2011 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How To Undo Disabled Shift Bypass Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False. > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options. It's a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file's properties where that > file had its properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again. > > Hope someone can use this! > Dan > > '------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns > True, the _ > user picked at least one file. If the .Show method > returns _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > '------------------------ > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 24 14:19:00 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 24 Feb 2011 12:19:00 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <007301cbd460$126db640$374922c0$@cox.net> Thanks for sharing Dan, I built a little utility to do this several years ago. It is a great way to keep the casual Access user out of your database internals. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 24, 2011 5:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How To Undo Disabled Shift Bypass Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 24 15:14:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:14:27 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> "The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options." Not for everyone. :-) I think you will find that quite a few of us have a similar module in little MDB that we keep in our toolboxes. Still, it's good to remind people occassionally -- Stuart On 24 Feb 2011 at 7:40, Dan Waters wrote: > Sure been quiet for a few days!? So this is something I finished > yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False.? > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options.? > It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file?s properties where that > file had its properties set to False.? And it worked! > > Below is code that you can copy into a standard module in a new Access > file.? Name that new file AllowBypass.mdb, or something similar.? Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again.? > > Hope someone can use this! > Dan > From stuart at lexacorp.com.pg Thu Feb 24 15:47:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:47:23 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net>, <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> Message-ID: <4D66D1EB.25156.2AA4508@stuart.lexacorp.com.pg> Incidentally, I often leave a trapdoor inside the applications. I use a function to toggle the security state ( comment out particular properties depending on the requirement of the application) Function Lockdown(state As Boolean) SetProperty "AllowBypassKey", dbBoolean, Not state SetProperty "AllowFullMenus", dbBoolean, Not state SetProperty "AllowSpecialKeys", dbBoolean, Not state SetProperty "AllowToolbarChanges", dbBoolean, Not state SetProperty "AllowBuiltInToolbars", dbBoolean, Not state SetProperty "AllowBreakIntoCode", dbBoolean, Not state 'SetProperty "AllowSHortcutMenus", dbBoolean, Not state End Function Public Function SetProperty(strPropName As String, _ varPropType As Variant, varPropValue As Variant) As Boolean On Error GoTo Err_SetProperty Dim db As DAO.Database, prp As DAO.Property Set db = CurrentDb db.Properties(strPropName) = varPropValue SetProperty = True Set db = Nothing Exit_SetProperty: Exit Function Err_SetProperty: If Err = 3270 Then 'Property not found Set prp = db.CreateProperty(strPropName, varPropType, varPropValue) db.Properties.Append prp Resume Next Else SetProperty = False MsgBox "SetProperty", Err.Number, Err.Description Resume Exit_SetProperty End If End Function If I am using my own user level security, in my login process I use something like: If AccessLevel = 5 Then MsgBox "Developer Mode! - Close and Reopen Using the Bypass key" Lockdown False DoCmd.Quit You can also do something similar with a commandline switch and a Startup() function called from an AutoExec macro or your startup form. Note that similar code to the above is used in the tollbox MDB, the only difference is that "db" is passed as a parameter to SetProperty, rather than being hard coded to CurrentDB. Note also that Setproperty() can also be used to set other things such as built in Copyright notices, Version Numbers etc in the same or a different database and a similar GetProperty() function can be used to read them. -- Stuart On 25 Feb 2011 at 7:14, Stuart McLachlan wrote: > "The normal way to fix this is to open a new Access file and import > all the objects, then reset references, startup properties, and > options." > > Not for everyone. :-) > > I think you will find that quite a few of us have a similar module in > little MDB that we keep in our toolboxes. Still, it's good to remind > people occassionally > > > -- > Stuart > > On 24 Feb 2011 at 7:40, Dan Waters wrote: > > > Sure been quiet for a few days!? So this is something I finished > > yesterday. > > > > A few days ago, for about the hundredth time, I accidentally locked > > myself out of an Access file by mistakenly running code to change > > its properties, including setting the AllowShiftBypass property to > > False.? The normal way to fix this is to open a new Access file and > > import all the objects, then reset references, startup properties, > > and options.? It?s a pain. > > > > I recently did some work with OpenCurrentDatabase, and wondered if I > > could make a utility to reset an Access file?s properties where that > > file had its properties set to False.? And it worked! > > > > Below is code that you can copy into a standard module in a new > > Access file.? Name that new file AllowBypass.mdb, or something > > similar.? Run the first procedure - this will ask you to select an > > Access file, and it will then reset several properties to true so > > that you can open it normally again.? > > > > Hope someone can use this! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Feb 24 17:04:31 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 24 Feb 2011 17:04:31 -0600 Subject: [AccessD] Access 2007 Runtime on Windows Server 2003 ??? References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: All, We are thinking about putting a small application, built for Access 2007 (Runtime) on a Windows Server 2003 - Standard Edition - Service Pack 2. This application will run unattended. Will Access 2007 Runtime work on Windows Server 2003 Standard Edition - SP2? Are others doing this? Are we headed for trouble? Thanks, Brad From iggy at nanaimo.ark.com Fri Feb 25 08:50:54 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 25 Feb 2011 06:50:54 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D67C1CE.1080804@nanaimo.ark.com> Hey Dan Ha ha ha ha ha ha ha ha ha !. This should have been OT: Friday Humour. That is the best I have heard, a developer locking themselves out of their own application. Just kidding I think we have all run into it at one time or another, trying to lock down what a user can do in an app. I know I did it myself a couple of years ago and spent several hours going "Oh crap Oh crap" until the "Duh" light came on and luckily I was able to copy it. Not a nice feeling. Dan Waters wrote: >Sure been quiet for a few days! So this is something I finished yesterday. > >A few days ago, for about the hundredth time, I accidentally locked myself >out of an Access file by mistakenly running code to change its properties, >including setting the AllowShiftBypass property to False. The normal way to >fix this is to open a new Access file and import all the objects, then reset >references, startup properties, and options. It?s a pain. > >I recently did some work with OpenCurrentDatabase, and wondered if I could >make a utility to reset an Access file?s properties where that file had its >properties set to False. And it worked! > >Below is code that you can copy into a standard module in a new Access >file. Name that new file AllowBypass.mdb, or something similar. Run the >first procedure ? this will ask you to select an Access file, and it will >then reset several properties to true so that you can open it normally >again. > >Hope someone can use this! >Dan > >?------------------------ >Private MappSource As Access.Application > >Private Sub UnlockMDB() >1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File >2 stgSourceFilePath = SelectFile >3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = >"" Then >4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" >5 Exit Sub >6 End If >7 DoEvents > > '-- Set Source MDB as the CurrentDatabase >8 Set MappSource = New Access.Application >9 MappSource.Visible = False >10 MappSource.OpenCurrentDatabase stgSourceFilePath >11 DoEvents > >12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift >key bypass >13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 >key >14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >15 ChangeProperty "AllowFullMenus", dbBoolean, True >16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > >17 MappSource.CloseCurrentDatabase >18 Set MappSource = Nothing > >19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", >vbInformation + vbOKOnly, "File Now Available" > >20 Exit Sub > >EH: >21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >22 MsgBox stgPrompt, vbExclamation + vbOKOnly >23 Stop > >End Sub > >Private Function SelectFile() As String >1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > >2 Set fDialog = FileDialog(msoFileDialogFilePicker) > >3 With fDialog > >4 .AllowMultiSelect = False >5 .InitialView = msoFileDialogViewList >6 .InitialFileName = CurrentProject.Path >7 .Title = "Select the Access file." > >8 .Filters.Clear >9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the >_ > user picked at least one file. If the .Show method returns >_ > False, the user clicked Cancel. >10 If .Show = True Then >11 For Each varFile In .SelectedItems >12 SelectFile = varFile >13 Next varFile >14 Else >15 SelectFile = "File Not Selected" >16 End If > >17 End With > >18 Exit Function > >EH: >19 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >20 MsgBox stgPrompt, vbExclamation + vbOKOnly >21 Stop > >End Function > >Public Function ChangeProperty(stgPropName As String, varPropType As >Variant, varPropValue As Variant) As Boolean >1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > >2 Set dbs = MappSource.DBEngine(0)(0) > >3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > >4 ChangeProperty = True > >XH: >5 Exit Function > >EH: >6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created >7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >varPropType, varPropValue) >8 DBEngine(0)(0).Properties.Append prp >9 Set prp = Nothing >10 Resume Next > >11 Case Else >12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >13 MsgBox stgPrompt, vbExclamation + vbOKOnly >14 Stop > >15 End Select > >End Function > >?------------------------ > > > > > > From iggy at nanaimo.ark.com Sun Feb 27 07:43:20 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 05:43:20 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6A54F8.30203@nanaimo.ark.com> Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? From stuart at lexacorp.com.pg Sun Feb 27 08:33:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 00:33:01 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> A few thoughts on your questions: There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an application development environment. You still need some sort of development enviroment for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, Access, PowerBasic or anything else which is you feel is appropriate. An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC links to the SQL Server tables. That is all that you need sometimes. I tend to use Access this way for reporting applications. I generally don't use Access as the FE for data *management" since you should not as rule use linked table and bound forms to maintain data in SQL Server, you should be using CRUD (create, read, update, delete) stored procedures for this which implies going "unbound". I use PowerBasic/SQLTools for these applications. A major reason for using SQL Server is user security now that MS have depreciated it in Access. I update the same way that I update an Access FE/BE application. A user runs the FE by clicking on shortcut to a batch/cmd file or small application which copies the latest version of the FE to a local drive and then opens it. Updates to the BE are made by building a small Updater application which modifies the backend database using ODBC with CREATE and ALTER statements. -- Stuart On 27 Feb 2011 at 5:43, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > From iggy at nanaimo.ark.com Sun Feb 27 08:54:30 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 06:54:30 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> Message-ID: <4D6A65A6.2080604@nanaimo.ark.com> Hey Stuart Thanks Quickly and concisely cleared up many questions I had. How to you about updating stored procedures on the SQL Server end?. Stuart McLachlan wrote: >A few thoughts on your questions: > >There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an >application development environment. You still need some sort of development enviroment >for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, >Access, PowerBasic or anything else which is you feel is appropriate. > >An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC >links to the SQL Server tables. That is all that you need sometimes. I tend to use Access >this way for reporting applications. > >I generally don't use Access as the FE for data *management" since you should not as rule >use linked table and bound forms to maintain data in SQL Server, you should be using >CRUD (create, read, update, delete) stored procedures for this which implies going >"unbound". I use PowerBasic/SQLTools for these applications. > >A major reason for using SQL Server is user security now that MS have depreciated it in >Access. > >I update the same way that I update an Access FE/BE application. A user runs the FE by >clicking on shortcut to a batch/cmd file or small application which copies the latest version of >the FE to a local drive and then opens it. Updates to the BE are made by building a small >Updater application which modifies the backend database using ODBC with CREATE and >ALTER statements. > > > From ssharkins at gmail.com Sun Feb 27 09:32:15 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 27 Feb 2011 10:32:15 -0500 Subject: [AccessD] Access and SQL Server References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <026EA1F3F2D543959BEF646378CB7B19@salvationomc4p> > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. ========Don't buy it... just ask questions here. :) > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? ========I'm not -- do almost no development work anymore. Susan H. From jwcolby at colbyconsulting.com Sun Feb 27 12:10:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 13:10:23 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A938F.1070900@colbyconsulting.com> I am trying to use Access to quickly get small applications up which can hit a database over the internet. An MDB is notorious for corrupting if accessed by an Access FE over the internet. AFAICT SQL Server works great. I have a hand full of small databases which have to be geographically dispersed, running on joe blow's computer from his house (or the local pub with internet). Access is RAD and has good reporting capabilities. *IF* I can get it to run under a runtime then it is also free. AFAICT it talks to the SQL Server over the internet just fine. I am talking about databases with 20 tables, FEs running on 10-20 people's machines, coming in to a SQL Server database over cable or DSL over an Hamachi VPN. Now that I am starting to understand the SQL Server security it is beginning to come together. John W. Colby www.ColbyConsulting.com On 2/27/2011 8:43 AM, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly > complex pass through queries, ADO connections with stored procedures and Views, I have still to buy > Susan's book to answer some of my under lying questions. Other than being prepared for a client's > request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my > applications I have out there are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I don't think any of my clients > (including the big companies) know what SQL Server is. In fact I have produced only one app for a > client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL > Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server > link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from > the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) > much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? > Are you producing major apps dealing with millions of records? > Are you producing major apps dealing with hundreds of users? > How do you go about distributing changes to an ACCESS/SQL Server app? > > > > From stuart at lexacorp.com.pg Sun Feb 27 14:44:18 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:44:18 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A65A6.2080604@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg>, <4D6A65A6.2080604@nanaimo.ark.com> Message-ID: <4D6AB7A2.29205.11E3A570@stuart.lexacorp.com.pg> Use the ALTER PROCEDURE procedure that you get when you modify a stored procedure in Management Studio. Just copy that script into a string in the updater application and Execute it as part of the update process. If it is a new procedure in the destination database, change the ALTER to CREATE. -- Stuart On 27 Feb 2011 at 6:54, Tony Septav wrote: > Hey Stuart > Thanks > Quickly and concisely cleared up many questions I had. > How to you about updating stored procedures on the SQL Server end?. > > Stuart McLachlan wrote: > > >A few thoughts on your questions: > > > >There is really no such thing as an SQL Server app. SQL Server is a > >RDMS, not an application development environment. You still need some > >sort of development enviroment for the front end, up to you whether > >you use a web server and PHP or ADO.net, VB.Net, C#, Access, > >PowerBasic or anything else which is you feel is appropriate. > > > >An SQLServer/Access is no more complex than an Access FE/BE app if > >you just use ODBC links to the SQL Server tables. That is all that > >you need sometimes. I tend to use Access this way for reporting > >applications. > > > >I generally don't use Access as the FE for data *management" since > >you should not as rule use linked table and bound forms to maintain > >data in SQL Server, you should be using CRUD (create, read, update, > >delete) stored procedures for this which implies going "unbound". I > >use PowerBasic/SQLTools for these applications. > > > >A major reason for using SQL Server is user security now that MS > >have depreciated it in Access. > > > >I update the same way that I update an Access FE/BE application. A > >user runs the FE by clicking on shortcut to a batch/cmd file or small > >application which copies the latest version of the FE to a local > >drive and then opens it. Updates to the BE are made by building a > >small Updater application which modifies the backend database using > >ODBC with CREATE and ALTER statements. > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 14:51:28 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:51:28 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A938F.1070900@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> Message-ID: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> John, How are your Access apps getting/putting data to the SQL Server? Are you using ODBC/linked tables and bound forms (or have you gone over to the dark side)? If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. -- Stuart On 27 Feb 2011 at 13:10, jwcolby wrote: > I am trying to use Access to quickly get small applications up which > can hit a database over the internet. > > An MDB is notorious for corrupting if accessed by an Access FE over > the internet. AFAICT SQL Server works great. > From Darryl.Collins at iag.com.au Sun Feb 27 15:13:53 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 28 Feb 2011 08:13:53 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <201102272114.p1RLE0tJ003528@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rusty.hammond at cpiqpc.com Sun Feb 27 15:25:28 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 15:25:28 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102272114.p1RLE0tJ003528@databaseadvisors.com> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Sun Feb 27 15:30:45 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 07:30:45 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <201102272114.p1RLE0tJ003528@databaseadvisors.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AC285.26719.120E2CD8@stuart.lexacorp.com.pg> Very good point! -- Stuart On 27 Feb 2011 at 15:25, Rusty Hammond wrote: > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Sun Feb 27 15:43:49 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 15:43:49 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <004501cbd6c7$6dd32060$49796120$@comcast.net> Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Sun Feb 27 16:33:22 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:33:22 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com><49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Both. Of course you have to be careful. If someone is linked directly to a table and you add a field to the middle of the table, then their app will likely error out until you relink the table in the front end. Adding the field to the end of the table usually allows people to keep on working. Then you refresh the links in your development front end, make your programming changes, and distribute the new front end. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and SQL Server Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Sun Feb 27 16:38:15 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:38:15 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 16:41:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:41:02 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rusty.hammond at cpiqpc.com Sun Feb 27 16:58:00 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:58:00 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00F@CPIEMAIL-EVS1.CPIQPC.NET> Never, but he asked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better cheers darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop a > SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From df.waters at comcast.net Sun Feb 27 17:17:19 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 17:17:19 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Message-ID: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> The reason I asked about data changes was because I wanted to be sure I surrounded your statement, since I didn't understand it. I can make same design changes in an MDB BE as you described for SQL Server, as long as the BE is in a client-server configuration. What would prevent you from making design changes in a working MDB BE file? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 27 17:45:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 09:45:52 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg>, <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> Message-ID: <4D6AE230.23695.1289E189@stuart.lexacorp.com.pg> If a user is accessing the data in a table in an Access database, you can't modify that table - you get a dialog saying: "You can't open the table 'tblSomething' for modification. A query or form bound to the table is open...." -- Stuart On 27 Feb 2011 at 17:17, Dan Waters wrote: > The reason I asked about data changes was because I wanted to be sure > I surrounded your statement, since I didn't understand it. > > I can make same design changes in an MDB BE as you described for SQL > Server, as long as the BE is in a client-server configuration. What > would prevent you from making design changes in a working MDB BE file? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Access and SQL Server > > Design changes. If you can't make data changes without kicking > everyone out, you must be using the wrong DBMS. > > -- > Stuart > > > On 27 Feb 2011 at 15:43, Dan Waters wrote: > > > Rusty, > > > > Do you mean data changes, design changes, or both? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > I would add: Ability to make changes to the backend tables without > > kicking everyone out of the database. > > > > Rusty > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > > > ____________________________________________________________________ > > __ __ _______________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ __ _______________ > > > > > > Tony, > > > > Why I like a SQL server BE. > > > > 1: Performance. It is faster and much more stable, especially if > > set up correctly and over a WAN / LAN. 2: Security of access and the > > actual data itself. 3: Audit: It is dead easy to set up triggers to > > show who changed what, when and from where. 4: Backup and restore is > > better > > cheers > > darryl > > > > > > > > ________________________________________ > > From: accessd-bounces at databaseadvisors.com > > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > > [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: > > Access Developers discussion and problem solving Subject: [AccessD] > > Access and SQL Server > > > > Hey All > > Well I have spent a couple of weeks now fooling around with ACCESS > > and SQL Server. Using fairly complex pass through queries, ADO > > connections with stored procedures and Views, I have still to buy > > Susan's book to answer some of my under lying questions. Other than > > being prepared for a client's request to use SQL Server, I keep > > asking myself when would I need to use this. Only a few of my > > applications I have out there are dealing with records greater than > > a million. Because the apps are user specific I don't usually have > > more than 10 users on a network. I don't think any of my clients > > (including the big companies) know what SQL Server is. In fact I > > have produced only one app for a client that linked into an Oracle > > database (that is the flavour in my area not SQL). Yes I know SQL > > Server has hundreds of nifty little features that ACCESS doesn't, > > many activities use a SQL Server link (Web Pages), so it begs the > > question "Should I be learning how to develop a SQL Server app from > > the bottom up?" > > > > What I am finding is that an ACCESS/SQL Server app becomes very code > > intensive (forms, queries, etc) much more so than just using ACCESS. > > > > My question to those of you proficient in using ACCESS and SQL > > Server, how exactly are you applying it? Are you producing major > > apps dealing with millions of records? Are you producing major apps > > dealing with hundreds of users? How do you go about distributing > > changes to an ACCESS/SQL Server app? > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ____________________________________________________________________ > > __ __ _______________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ __ _______________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ******************************************************************** > > ** WARNING: All e-mail sent to and from this address will be > > received, scanned or otherwise recorded by the CPI Qualified Plan > > Consultants, Inc. corporate e-mail system and is subject to > > archival, monitoring or review by, and/or disclosure to, someone > > other than the recipient. > > ******************************************************************** > > ** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 27 18:12:48 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:12:48 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> Message-ID: <4D6AE880.2000806@colbyconsulting.com> ODBC Linked tables. > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. No, the corruption occurs any time that a write occurs to an MDB and the connection is lost. Given the massive instability of the internet... John W. Colby www.ColbyConsulting.com On 2/27/2011 3:51 PM, Stuart McLachlan wrote: > John, > > How are your Access apps getting/putting data to the SQL Server? Are you using > ODBC/linked tables and bound forms (or have you gone over to the dark side)? > > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables > were held open over slow connections. > From jwcolby at colbyconsulting.com Sun Feb 27 18:19:16 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:19:16 -0500 Subject: [AccessD] Troubleshooting a runtime Message-ID: <4D6AEA04.6090107@colbyconsulting.com> I have installed a runtime package to a VM for testing. I have a FE and a library which, when accesses from other machines with full Access installed do not error in any way. I try to run this under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open any (bound) form "there was an error executing the command". Basically it is just opening a form. Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to install Office (Access) on the machine for troubleshooting. Does anyone on the group actually use runtimes? What do you do if there is an error? -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sun Feb 27 18:49:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 10:49:36 +1000 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> What happens if you try it with a FE that doesn't open open a startup form and leaves the database exposed. Can you access the data in the tables? And no, I don't use runtimes. -- Stuart On 27 Feb 2011 at 19:19, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE > and a library which, when accesses from other machines with full > Access installed do not error in any way. I try to run this under the > runtime and the switchboard opens, but I get an immediate error as > soon as I try to open any (bound) form "there was an error executing > the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are > you supposed to troubleshoot install issues? Suppose I install this > on computer XYZ and it gives me an error. I am not going to install > Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if > there is an error? > > -- > 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 Sun Feb 27 20:18:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:18:08 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> References: <4D6AEA04.6090107@colbyconsulting.com> <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> Message-ID: <4D6B05E0.2010905@colbyconsulting.com> The runtime doesn't leave the database exposed. Or any of the database tabs for that matter. Or any built-in menu. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:49 PM, Stuart McLachlan wrote: > What happens if you try it with a FE that doesn't open open a startup form and leaves the > database exposed. Can you access the data in the tables? > > And no, I don't use runtimes. > From jwcolby at colbyconsulting.com Sun Feb 27 20:21:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:21:00 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B068C.3090000@colbyconsulting.com> The switchboard is bound to a local table in the FE and it opens just fine. The bound forms that the switchboard opens without any complaint in a full on Access install appear to complain under the runtime. I just realized that the database is A2003 and the runtime is A2007. I guess I need to open it under A2007 full install and see what it says. The point really is that if you are going to use a runtime you really need feedback. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From jwcolby at colbyconsulting.com Sun Feb 27 20:38:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:38:59 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B0AC3.3070005@colbyconsulting.com> I got it. The library was referenced at c:\Dev\PrisonMinistry but I had placed the FE and FW at c:\Runtimes\LenoirPM on the VM which has the runtime installed.. As soon as I created the same directory structure as my dev machine and moved the FE/FW to that location, and run AddPath.exe on that location - it started working. So, I am running a VM with only an Access 2007 runtime, with my FE and framework running under that runtime, hitting a SQL Server at a specific Hamachi IP address. Bound forms, linked tables. The table links have the Hamachi IP address hard coded in the connection, as well as a username / password which has db_DataReader and db_DataWriter rights on that specific database. Not optimum I know but *it works*! ATM it is on my local network but I have hope at least that it will run under a 2007 runtime on another machine across the internet. Now what I need to do is to get this VM running on my laptop, then take the laptop back to Arby's to test with their internet back into my network. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From iggy at nanaimo.ark.com Mon Feb 28 06:56:40 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 04:56:40 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6B9B88.2000405@nanaimo.ark.com> Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? From accessd at shaw.ca Mon Feb 28 09:56:43 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Feb 2011 07:56:43 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 users on at the time. Added the table and re-populated in about 5 minutes and only 1 person complained about the BE being slower and having to do a refresh. Real SQL DBs are very rugged...everything is just queued, cached and applied through background processes. The one thing is that a Real SQL DB is not just another MDB...there is little or no resemblance other than the both hold data. (Not wanting to get into a heated discussion, I must admit I cringe every time I hear of someone attempting a bound MS SQL DB.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 11:01:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:01:27 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Message-ID: <4D6BD4E7.6040106@colbyconsulting.com> Cringe away, it seems to work just fine. Until I see evidence to the contrary... John W. Colby www.ColbyConsulting.com On 2/28/2011 10:56 AM, Jim Lawrence wrote: > Years ago I dropped a table in error, on a live MS SQL DB...had about 50 > users on at the time. Added the table and re-populated in about 5 minutes > and only 1 person complained about the BE being slower and having to do a > refresh. Real SQL DBs are very rugged...everything is just queued, cached > and applied through background processes. > > The one thing is that a Real SQL DB is not just another MDB...there is > little or no resemblance other than the both hold data. (Not wanting to get > into a heated discussion, I must admit I cringe every time I hear of someone > attempting a bound MS SQL DB.) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, February 27, 2011 2:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Both? > > When did you ever have to kick users out of Access or any other multi-user > DBMS to make > data changes? > From davidmcafee at gmail.com Mon Feb 28 11:37:13 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 09:37:13 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 11:46:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:46:38 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> References: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <4D6BDF7E.7000603@colbyconsulting.com> > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? From jwcolby at colbyconsulting.com Mon Feb 28 11:59:33 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:59:33 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6BE285.7010601@colbyconsulting.com> > SQL Server will do everything on the server and return only the result set, which is much faster. And this is key. I am attempting to use bound forms, bound to a sql server table, over the internet. If I were foolish I would just bind the form to a result set which included every record in the table. Or I could open the form with a control set to a specific record ID and have SQL Server go get and return the data for that specific record ID to display in the form. For parent forms this would seem to be a no-brainer. For subforms it is less clear, and probably set up on a case by case basis. Perhaps (as an example) all of the orders for a client for a specific date range or something like that. In any event, it seems that you need to coerce SQL Server into doing the filtering back in the server and just sending a limited set of records, already sorted etc. John W. Colby www.ColbyConsulting.com On 2/28/2011 12:37 PM, David McAfee wrote: > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jimdettman at verizon.net Mon Feb 28 12:29:21 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 13:29:21 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <6C1A3B79856049B1A846FE8C08D916B8@XPS> <> Um not quite right. Jet will pull indexes and read them before it starts doing a table scan if it can. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, February 28, 2011 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 12:48:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 13:48:39 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <6C1A3B79856049B1A846FE8C08D916B8@XPS> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <6C1A3B79856049B1A846FE8C08D916B8@XPS> Message-ID: <4D6BEE07.9090405@colbyconsulting.com> Right. It will pull some of all of the indexes required for joins and filters (where clause), and then ask for specific parts of the file (if going to an MDB) or specific records (if going to SQL Server). With SQL Server it is possible to just hand the filter and join info to SQL Server and have SQL Server do all of the work, returning just the data. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:29 PM, Jim Dettman wrote: > < BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set.>> > > Um not quite right. Jet will pull indexes and read them before it starts > doing a table scan if it can. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Monday, February 28, 2011 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other > multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From rusty.hammond at cpiqpc.com Mon Feb 28 12:57:14 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Mon, 28 Feb 2011 12:57:14 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BDF7E.7000603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- 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 Mon Feb 28 13:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:01:34 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BF10E.5050603@colbyconsulting.com> As soon as you say "use macros, not vba" I stop listening. Just me of course. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:57 PM, Rusty Hammond wrote: > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From iggy at nanaimo.ark.com Mon Feb 28 12:09:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 10:09:39 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6BE4E3.8050801@nanaimo.ark.com> Hey All Thank you all again, I am quickly learning many things from your responses. I am just an old fart trying to play catch up with you guys (Oops and gals). I am trying to learn how to do things with a SQL Server back end, by trying to duplicate what I can do with an old MDB back end application. I am finding at times when doing my research on the Internet that I will read "Do it this way" and then next read "No don't do it that way do it this way". Also when I complete one task I think "Now how can I do this slighty different", this becomes quite frustrating, after 2 to 3 hours of reading other forum responses and basically finding no "hits", I will find some esoteric little example, usually not on topic, that finally simply describes how to do what I was looking for. Anyway this is my problem to solve, thank you again for your all your help. Onward and upward. This is a scary path. From jimdettman at verizon.net Mon Feb 28 13:27:47 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 14:27:47 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: Very limited (I fired it up once to date). You must develop your app as a web database and not all Access features are available. And a existing database won't always convert to a web enabled database either, so it's not as cut and dry as one would think. There are restrictions on the data types, control events, primary keys (all must be longs). There is also an off-line caching mode that can be used, which so far looks messy (here's your replication replacement). But that may be my lack of understanding. It's come a very long way over what was offered in A2007, but I think it still has another version to go before I'd want to try anything with it. This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), which introduced a host of new features (and made Access really usable for the first time), but didn't become solid until Access 2.0. And I haven't checked the licensing yet, but I've heard a couple grumble that it's pricey. Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Monday, February 28, 2011 01:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 28 13:50:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:50:11 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BFC73.9030200@colbyconsulting.com> > Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Hmm... sounds pricey as well. John W. Colby www.ColbyConsulting.com On 2/28/2011 2:27 PM, Jim Dettman wrote: > > Very limited (I fired it up once to date). > > You must develop your app as a web database and not all Access features > are available. And a existing database won't always convert to a web > enabled database either, so it's not as cut and dry as one would think. > > There are restrictions on the data types, control events, primary keys > (all must be longs). > > There is also an off-line caching mode that can be used, which so far > looks messy (here's your replication replacement). But that may be my lack > of understanding. > > It's come a very long way over what was offered in A2007, but I think it > still has another version to go before I'd want to try anything with it. > > This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), > which introduced a host of new features (and made Access really usable for > the first time), but didn't become solid until Access 2.0. > > And I haven't checked the licensing yet, but I've heard a couple grumble > that it's pricey. > > Unless I had hundreds of users, I think I would stick with a TS setup and > Citrix and just run with one version of an app. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 01:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From stuart at lexacorp.com.pg Mon Feb 28 15:13:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:13:49 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com>, <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6C100D.29834.1725090E@stuart.lexacorp.com.pg> A few small tables and limited number of users it's fine. Try over 50 concurrent operators inserting/updating records in tables with up to 7 million rows with multiple large lookup tables on that data. At the same time have a number of others users pulling summaries of that data. Not fine. :-) -- Stuart On 28 Feb 2011 at 12:01, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > > Years ago I dropped a table in error, on a live MS SQL DB...had > > about 50 users on at the time. Added the table and re-populated in > > about 5 minutes and only 1 person complained about the BE being > > slower and having to do a refresh. Real SQL DBs are very > > rugged...everything is just queued, cached and applied through > > background processes. > > > > The one thing is that a Real SQL DB is not just another MDB...there > > is little or no resemblance other than the both hold data. (Not > > wanting to get into a heated discussion, I must admit I cringe every > > time I hear of someone attempting a bound MS SQL DB.) > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > Both? > > > > When did you ever have to kick users out of Access or any other > > multi-user DBMS to make data changes? > > > -- > 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 Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BF10E.5050603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6BF10E.5050603@colbyconsulting.com> Message-ID: <4D6C1247.11063.172DBB5C@stuart.lexacorp.com.pg> No, not just you! There's quite a few of us out there :-) -- Stuart On 28 Feb 2011 at 14:01, jwcolby wrote: > As soon as you say "use macros, not vba" I stop listening. > > Just me of course. > From stuart at lexacorp.com.pg Mon Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, Message-ID: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > From jimdettman at verizon.net Mon Feb 28 16:36:49 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 17:36:49 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Message-ID: <6AE34C2DB8F044CEB01B53602E59A855@XPS> Stuart, <> Occasionally on a lookup table if a client insists on having a short code along with a description. Then I do this: LookupCode - Text - PK Description - Text as I don't see any sense in doing this: LookupID - Autonumber - PK Code - Text - CK Description - Text However I do my best to steer them to: LookupID - Autonumber - PK Description - Text - CK And usually on straight lookup tables, I cheat a bit and do this: tblLookupTypes LookupTypeID - Autonumber - PK Description - Text UserModify - Yes/No tblLookupValues LookupID - Autonumber - PK LookupTypeID - Long - FK to tblLookupTypes Description - Text and then use views to represent the different types rather then going against multiple tables. But if I need any attributes outside of a code or description, then I break things into separate tables. This means one maintenance form for all the lookups. Not great relationally, but it works fine and saves a ton of work when a lot of lookups exist in an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 28, 2011 04:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Mon Feb 28 16:41:28 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 09:41:28 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <201102282241.p1SMfaRg026442@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ "Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it?" When I was at Coles Group a year or so back I was part of a team of developers that built and maintained a whole suite of custom applications that were built on a common template. All the apps were based on a template which in turn was based on a SQL Server BE with MS Access FE (mde of course). We were starting to move any new apps to a web UI and away from MS Access. Many of these apps were critical for the day to day running of large national retail businesses. To give you some idea Coles Group is one of Australia's largest retailers with more than 2,600 stores throughout Australia and New Zealand, over 400,000 shareholders and more than 190,000 employees. My good friend Beny build a complex logistics app, which was used for scheduling all store deliveries based on availablity and type of truck (Some trucks can only fit in certain bays for example, some truck have to be in the cold store etc). Damn clever with a great UI. Some of these apps had hundreds of concurrent users 24/7, although many also lead a far less demanding life. The financial control system I build had about 50 users over a WAN. It was fast, stable and accurate. Gotta love that :) The big advantage was even though each application was build for a totally different purpose, it had a common platform and build, which meant that any of the development team could work on it if the main developer was away or busy. I miss working with SQL Server. Current role is 100% access based. Feel a bit left behind to be honest... :-/ cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Monday, 28 February 2011 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From stuart at lexacorp.com.pg Mon Feb 28 17:00:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:00:10 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <6AE34C2DB8F044CEB01B53602E59A855@XPS> References: <4D6B9B88.2000405@nanaimo.ark.com>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg>, <6AE34C2DB8F044CEB01B53602E59A855@XPS> Message-ID: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why you should not use a natural key as your PK. What happens when the Description changes and the existing Code is no longer an accurate short representation of Description? Do you change it throughout all the tables which store it or do you leave your customer with strange Codes which don't match the description (And please don't tell me that you use Relationships with "Cascade Update" turned on.) -- Stuart On 28 Feb 2011 at 17:36, Jim Dettman wrote: > Stuart, > > <> > > Occasionally on a lookup table if a client insists on having a short > code > along with a description. Then I do this: > > LookupCode - Text - PK > Description - Text > > as I don't see any sense in doing this: > > LookupID - Autonumber - PK > Code - Text - CK > Description - Text > From newsgrps at dalyn.co.nz Mon Feb 28 17:01:15 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:01:15 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102282241.p1SMfaRg026442@databaseadvisors.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> Message-ID: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> > "Are any of your developing full blown ACCESS/SQL Server > applications for clients? If so what type of an app is it?" I have done a couple of apps like this. One was a full prospecting/client management/billing/reporting system for a gas company. Access XP ade with SQL2000. The other is a stock management and reporting system for oil companies. Access XP ade with SQL2005. Both cases are multi user and have lots of business logic that was done in SQL. Both required the better security and data integrity that SQL provided over Access. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From jimdettman at verizon.net Mon Feb 28 17:17:56 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:17:56 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: It's pretty rare that a description changes in relation to the code and I can't think of the last time that was an issue. In fact it's been quite some time since I used a design like that, but if I did and it was, then yes, cascading updates would get turned on. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 28 17:21:00 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:21:00 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: One other thing: keep in mind that the description reflects the code, not the other way around. It's basically a long form of the code. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > 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 Feb 28 17:24:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:24:36 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> .ade! Yuk! The best thing that MS ever did for Access was depreciating these :-) -- Stuart On 1 Mar 2011 at 12:01, David Emerson wrote: > > > "Are any of your developing full blown ACCESS/SQL Server > > applications for clients? If so what type of an app is it?" > > I have done a couple of apps like this. > > One was a full prospecting/client management/billing/reporting system > for a gas company. Access XP ade with SQL2000. The other is a stock > management and reporting system for oil companies. Access XP ade with > SQL2005. > > Both cases are multi user and have lots of business logic that was > done in SQL. Both required the better security and data integrity > that SQL provided over Access. > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Mon Feb 28 17:40:03 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:40:03 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: Really? I work in ADP/ADEs every day and think they are the best of both worlds. D On Mon, Feb 28, 2011 at 3:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > > -- > Stuart > > On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 17:42:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 18:42:08 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <4D6C32D0.7080709@colbyconsulting.com> I assume this is a compiled adp? I never used an adp so... John W. Colby www.ColbyConsulting.com On 2/28/2011 6:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > From newsgrps at dalyn.co.nz Mon Feb 28 17:43:00 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:43:00 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Why is that? Once the concepts were learnt (thanks to Susan and Martins book, along with Chipman and Baron's Microsoft Access Developers Guide to SQL Server) I found it much easier to do all the development in the Access environment (including table, view, sproc and functions) than switching between Access and enterprise manager. David At 1/03/2011, Stuart McLachlan wrote: >.ade! Yuk! > >The best thing that MS ever did for Access was depreciating these :-) > >-- >Stuart > >On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Feb 28 17:53:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:53:11 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: The ease of populating comboboxes and listboxes: Me.lstHistory.rowsource = "EXEC stpGetMachineHistory " & nz(me.txtMachineID,0) Cascading combobox (On Enter of comboBox): Me.cboModel.rowsource "EXEC stpSelectModels " & nz(me.cboMake.Column(0),0) On Mon, Feb 28, 2011 at 3:43 PM, David Emerson wrote: > Why is that? Once the concepts were learnt (thanks to Susan and Martins > book, along with Chipman and Baron's Microsoft Access Developers Guide to > SQL Server) I found it much easier to do all the development in the Access > environment (including table, view, sproc and functions) than switching > between Access and enterprise manager. > > David > > > At 1/03/2011, Stuart McLachlan wrote: > >> .ade! Yuk! >> >> The best thing that MS ever did for Access was depreciating these :-) >> >> -- >> Stuart >> >> On 1 Mar 2011 at 12:01, David Emerson wrote: >> >> > >> > > "Are any of your developing full blown ACCESS/SQL Server >> > > applications for clients? If so what type of an app is it?" >> > >> > I have done a couple of apps like this. >> > >> > One was a full prospecting/client management/billing/reporting system >> > for a gas company. Access XP ade with SQL2000. The other is a stock >> > management and reporting system for oil companies. Access XP ade with >> > SQL2005. >> > >> > Both cases are multi user and have lots of business logic that was >> > done in SQL. Both required the better security and data integrity >> > that SQL provided over Access. >> > >> > Regards >> > >> > David Emerson >> > Dalyn Software Ltd >> > Wellington, New Zealand >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marksimms at verizon.net Mon Feb 28 18:54:02 2011 From: marksimms at verizon.net (Mark Simms) Date: Mon, 28 Feb 2011 19:54:02 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <013801cbd7ab$2979aad0$7c6d0070$@net> Nope, but heard it is the typical Microsoft roll-out....a high, high wall of undocumented "features" and surprises. Some are finding this feature quite useful, but only after climbing up that wall. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 1:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > > From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on > database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a > local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the > IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer > or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each > of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: > > Hey All > > Thanks > > I have got to try out Stuart suggestion for updating stored > procedures > in SQL Server using ACCESS. > > I am not finding any significant differences in speed when using > ACCESS tables and queries versus > > SQL Server tables and pass through queries, I assume that is because > I > am doing my testing on my > > local machine and not on a network (or Web). > > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of > > an app is it? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. > corporate e-mail system and is subject to archival, monitoring or > review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 28 18:57:06 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 18:57:06 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <4D6BE285.7010601@colbyconsulting.com> Message-ID: We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal ?error handling? set up. When we ran tests to ensure that the ?No Duplicates? on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have ?DoCmd.SetWarnings True? Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other ?Status Code? available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From rockysmolin at bchacc.com Mon Feb 28 19:11:16 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 28 Feb 2011 17:11:16 -0800 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com><4D6BE285.7010601@colbyconsulting.com> Message-ID: I think I'd try the BeforeUpdate event, check for a duplicate in the event, and if there is, update your tracking table, give a message to the user and set Cancel = True. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, February 28, 2011 4:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal "error handling" set up. When we ran tests to ensure that the "No Duplicates" on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have "DoCmd.SetWarnings True" Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other "Status Code" available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From stuart at lexacorp.com.pg Mon Feb 28 19:26:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:26:22 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, Message-ID: <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > From stuart at lexacorp.com.pg Mon Feb 28 19:27:41 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:27:41 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, , Message-ID: <4D6C4B8D.5594.180D7684@stuart.lexacorp.com.pg> No BeforeUpdate event. This is updating via SQL in code, not through a form. -- Stuart On 28 Feb 2011 at 17:11, Rocky Smolin wrote: > I think I'd try the BeforeUpdate event, check for a duplicate in the > event, and if there is, update your tracking table, give a message to > the user and set Cancel = True. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, February 28, 2011 4:57 PM To: Access Developers > discussion and problem solving Subject: [AccessD] How to Trap ?Insert > Error? (Duplicate record) caused byIndexed Field (No Duplicates) > > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Mon Feb 28 20:03:55 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 20:03:55 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from ?DoCmd.RunSQL SQL_String? to ?CurrentDb.Execute SQL_String, dbFailOnError? I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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 Darryl.Collins at iag.com.au Mon Feb 28 20:08:11 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 13:08:11 +1100 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: Message-ID: <201103010208.p2128JV2008457@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ as a rule I don't recommend using Docmd.RunSQL. Using the other method seems to work far better and gives you more control. You can also avoid any confirmation messages (assuming the user has that option enabled). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, 1 March 2011 1:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from "DoCmd.RunSQL SQL_String" to "CurrentDb.Execute SQL_String, dbFailOnError" I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the "DoCmd.RunSQL SQL_String" method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 28 20:17:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 21:17:22 -0500 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: <4D6C5732.9050103@colbyconsulting.com> You can also get NoRecsAffected from the db.Execute John W. Colby www.ColbyConsulting.com On 2/28/2011 9:03 PM, Brad Marks wrote: > Stuart, > > Yes, thanks a million for the help. > > Here is what I learned tonight... > > By switching from > > ?DoCmd.RunSQL SQL_String? > > to > > ?CurrentDb.Execute SQL_String, dbFailOnError? > > I can trap Err.Number = 3022 (duplicate record) > > > > I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. > > Brad > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan > Sent: Mon 2/28/2011 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) > > Hi Brad, > > I just answered this for you on Linked In. > > Use CurrentDB.Execute str_SQL ,dbFailOnError > instead of DoCmd.RunSQL. > > Then look for Err.Number 3022 in your error trap. > > From stuart at lexacorp.com.pg Mon Feb 28 20:53:40 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 12:53:40 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: <4D6C5732.9050103@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, , <4D6C5732.9050103@colbyconsulting.com> Message-ID: <4D6C5FB4.22433.185C2E21@stuart.lexacorp.com.pg> But note: CurrentDb.Execute strSQL Debug.Print CurrentDB.RecordsAffected will always return 0. You need to do this instead: Dim db as DAO.Database Set db = CurrentDB() ... db.Execute StrSQL Debug.Print db.RecordsAffected ... -- Stuart On 28 Feb 2011 at 21:17, jwcolby wrote: > You can also get NoRecsAffected from the db.Execute > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 9:03 PM, Brad Marks wrote: > > Stuart, > > > > Yes, thanks a million for the help. > > > > Here is what I learned tonight... > > > > By switching from > > > > "DoCmd.RunSQL SQL_String" > > > > to > > > > "CurrentDb.Execute SQL_String, dbFailOnError" > > > > I can trap Err.Number = 3022 (duplicate record) > > > > > > > > I really appreciate the help. I was pulling my hair out as I > > thought that the "DoCmd.RunSQL SQL_String" method would allow me to > > see the 3022 error. > > > > Brad > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com on behalf of Stuart > > McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] How to Trap > > ?Insert Error? (Duplicate record) causedby Indexed Field (No > > Duplicates) > > > > Hi Brad, > > > > I just answered this for you on Linked In. > > > > Use CurrentDB.Execute str_SQL ,dbFailOnError > > instead of DoCmd.RunSQL. > > > > Then look for Err.Number 3022 in your error trap. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Tue Feb 1 07:14:09 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 08:14:09 -0500 Subject: [AccessD] From a reader References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p> <58225A873021488D947CD8EBB29A382E@nant> Message-ID: Thank you Shamil -- wow... I am impressed, but then, you always do impress me. :) Susan H. > Hello Susan -- > > What is given? - MS SQL backend with billions of rows? > What is missing? - Relatively inexpensive way to implement web solutions > to > present MS SQL backend data's small subsets/summary information? > > if the answer on both of the above questions is 'Yes' then I suppose > simple > ASP.NET applications + .NET MS ReportViewer control can be used. > One example: http://shamils-19.hosting.parking.ru/nw4 (ms access backend > is > used here but using MS SQL backend doesn't differ a lot - in fact that > online MS Access backend-based solution is a port from original MS > SQL-based > backend solution) > > Some informational links on used for the above sample reporting > technolgies: > > http://www.gotreportviewer.com/ > http://technet.microsoft.com/en-us/library/dd220460.aspx > > And here MS WebMatrix - it wasn't used in the above sample but it can be > used by your reader I suppose: > http://www.asp.net/webmatrix > http://weblogs.asp.net/scottgu/archive/2010/07/06/introducing-webmatrix.aspx From jimdettman at verizon.net Tue Feb 1 07:56:58 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 01 Feb 2011 08:56:58 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Susan, There is this company: www.eqldata.com Which will let you take your Access app as is and run it over the web through a web browser. Don't know of anyone that's used them yet. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 08:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. > Well, there are a few things that come immediately to mind. Using a MS > Access FE with SQL backend will work great (fast, reliable etc) but she is > going to need to understand how you need to set up access and the > connection to the SQL Server using ADO and the connection strings. > > Using linked tables and bound forms are going to cripple performance and > probably reliablility as well. Not linked tables and no bound forms. > > Each user should have their own FE version (locked down as an MDE in the > old language). The Front end should basically be an empty shell with > unbound forms. You only pull in the data you need, when you need it and > absolutely make the stored procs on the SQL Server do all the heavy > lifting. Understand how to use pass thru queries to pull data into > Access. > > You should only push (write) back to the server anything that has been > changed and needs to be updated. Normally much of the data can be pulled > in as read only anyway, this goes for combo box data as well (again I pull > into Access from the server using a Just in Time approach). > > Sharepoint isn't going to help at this stage, although I believe that > Access 2010 is rather neat with sharepoint integration. I have no > experience of it though, just what I have read. > > If you want true web based, you really should just bite the bullet and use > a C#.net (say ASP.net) front end to SQL Server back. ok, it will take > time and money to develop, but once you have it in place it will deliver. > > This reminds me of the ol' business triangle. Choose any two options, but > lose the 3rd option. Cheap, Fast, Good. > > I hope she can go for "Good" and "Fast" and make the investment in > effort/money. Of course that is not always an option... Be good to read > what others have to say. > > cheers > Darryl. > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, 1 February 2011 12:22 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] From a reader > > I've been corresponding (lightly) with a reader who needs to upsize an > Access 2007 database to SQL Server -- ultimately, she's looking for a web > solution. It sounds like an excruciating application -- she said it takes > hours to run queries. I think she's looking for two things. First, she > wants something to analyze the Access database to make it more efficient. > (I haven't asked who built it to begin with, her or a professional > developer.) I told her to start with the utilities already there, the > performance and table analyzers. Are there any third-party products that > do more or work better? Second, she wants a plug-in GUI -- I've never > heard of such a thing, but I'll let you guys read her request and if you > have something to suggest, I'll relay it. Thanks! > > Susan H. > "What I am asking is: Is there a design solution that would make a large > sluggish access application scalable, faster, easier to distribute to > remote sites? All that I have read to date - is that SQL Server as the > best and most practiced solution. But, I still see that as "tons" of data > still being pushed between ACCESS and SQL Server - so how is that really > better. Is there a WEB or Sharepoint solution that would work as the > ACCESS GUI front-end and a backend SQL Server to crunch the billions of > rows into the summary levels of data?" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ____________________________________________________________________________ ___________ > > The information transmitted in this message and its attachments (if any) > is intended > only for the person or entity to which it is addressed. > The message may contain confidential and/or privileged material. Any > review, > retransmission, dissemination or other use of, or taking of any action in > reliance > upon this information, by persons or entities other than the intended > recipient is > prohibited. > > If you have received this in error, please contact the sender and delete > this e-mail > and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, disclose or > distribute > the information contained in this e-mail and any attached files, with the > permission > of the sender. > > This message has been scanned for viruses. > ____________________________________________________________________________ ___________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Feb 1 08:04:58 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 1 Feb 2011 09:04:58 -0500 Subject: [AccessD] From a reader References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <851BE7E57C5043D8B0433DF1356CD092@salvationomc4p> Thanks Jim -- thanks everyone. I think you guys have really helped her! Susan H. > Susan, > > There is this company: > > www.eqldata.com > > Which will let you take your Access app as is and run it over the web > through a web browser. > > Don't know of anyone that's used them yet. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Monday, January 31, 2011 08:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > Darryl -- I agree. She's looking for a canned solution and I've told her > there isn't any such thing -- but I thought I'd ask. You never know. :) > > Susan H. > > >> Well, there are a few things that come immediately to mind. Using a MS >> Access FE with SQL backend will work great (fast, reliable etc) but she >> is > >> going to need to understand how you need to set up access and the >> connection to the SQL Server using ADO and the connection strings. >> >> Using linked tables and bound forms are going to cripple performance and >> probably reliablility as well. Not linked tables and no bound forms. >> >> Each user should have their own FE version (locked down as an MDE in the >> old language). The Front end should basically be an empty shell with >> unbound forms. You only pull in the data you need, when you need it and >> absolutely make the stored procs on the SQL Server do all the heavy >> lifting. Understand how to use pass thru queries to pull data into >> Access. >> >> You should only push (write) back to the server anything that has been >> changed and needs to be updated. Normally much of the data can be pulled >> in as read only anyway, this goes for combo box data as well (again I >> pull > >> into Access from the server using a Just in Time approach). >> >> Sharepoint isn't going to help at this stage, although I believe that >> Access 2010 is rather neat with sharepoint integration. I have no >> experience of it though, just what I have read. >> >> If you want true web based, you really should just bite the bullet and >> use > >> a C#.net (say ASP.net) front end to SQL Server back. ok, it will take >> time and money to develop, but once you have it in place it will deliver. >> >> This reminds me of the ol' business triangle. Choose any two options, >> but > >> lose the 3rd option. Cheap, Fast, Good. >> >> I hope she can go for "Good" and "Fast" and make the investment in >> effort/money. Of course that is not always an option... Be good to read >> what others have to say. >> >> cheers >> Darryl. >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> Sent: Tuesday, 1 February 2011 12:22 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] From a reader >> >> I've been corresponding (lightly) with a reader who needs to upsize an >> Access 2007 database to SQL Server -- ultimately, she's looking for a web >> solution. It sounds like an excruciating application -- she said it takes >> hours to run queries. I think she's looking for two things. First, she >> wants something to analyze the Access database to make it more efficient. >> (I haven't asked who built it to begin with, her or a professional >> developer.) I told her to start with the utilities already there, the >> performance and table analyzers. Are there any third-party products that >> do more or work better? Second, she wants a plug-in GUI -- I've never >> heard of such a thing, but I'll let you guys read her request and if you >> have something to suggest, I'll relay it. Thanks! >> >> Susan H. >> "What I am asking is: Is there a design solution that would make a large >> sluggish access application scalable, faster, easier to distribute to >> remote sites? All that I have read to date - is that SQL Server as the >> best and most practiced solution. But, I still see that as "tons" of data >> still being pushed between ACCESS and SQL Server - so how is that really >> better. Is there a WEB or Sharepoint solution that would work as the >> ACCESS GUI front-end and a backend SQL Server to crunch the billions of >> rows into the summary levels of data?" >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ____________________________________________________________________________ > ___________ >> >> The information transmitted in this message and its attachments (if any) >> is intended >> only for the person or entity to which it is addressed. >> The message may contain confidential and/or privileged material. Any >> review, >> retransmission, dissemination or other use of, or taking of any action in >> reliance >> upon this information, by persons or entities other than the intended >> recipient is >> prohibited. >> >> If you have received this in error, please contact the sender and delete >> this e-mail >> and associated material from any computer. >> >> The intended recipient of this e-mail may only use, reproduce, disclose >> or > >> distribute >> the information contained in this e-mail and any attached files, with the >> permission >> of the sender. >> >> This message has been scanned for viruses. >> > ____________________________________________________________________________ > ___________ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Feb 1 13:01:40 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:01:40 -0800 Subject: [AccessD] OT Yuma In-Reply-To: <001901cbbf11$9d3d7170$5bdea8c0@edz1> References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: My cousin lives in El Centro. She always wants us to come visit her. We're like, um, why don't you come out to us, by the beach. :) On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > > Yikes. > > I had an assignment in El Centro, not far > from Yuma, for a couple of months. > > The area brought a whole new meaning to > the word "hot". > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, January 27, 2011 1:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dual Monitors > > > > The 110 sounds like Phoenix. Did I guess correctly ? > > Even worse. Yuma. > > John W. Colby > www.ColbyConsulting.com > > > On 1/27/2011 3:05 PM, Edward Zuris wrote: > > > > When the Salmon come in to spawn, they > > would gather just a few miles from Everett > > near the San Juan area before heading to > > Canada or USA rivers. > > > > Great fishing, and very few people take > > advantage of it. > > > > I am in Albuquerque, NM. > > > > Starting in late May, or early June, the > > temperatures start climb up to the 100's. > > > > At the moment it is high dry cold winds > > with a few dust storms. Sometime maybe a > > half inch of snow every so often. After > > May it is total bake mode. But the desert > > and dry climate grows on you after awhile. > > > > I grew up in NM, so I know a number of good > > fishing holes. I go up into the mountains > > to fish for trout during the summer. But > > catching a ten pound king salmon really makes > > your day and puts any quarter pound mountain > > trout to shame. > > > > The 110 sounds like Phoenix. Did I guess > > correctly ? > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, January 27, 2011 10:06 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dual Monitors > > > > > > I grew up in the American southwest desert. > > 110 degrees F every day. I lived with my > > father for about 6 months in Everett > > Washington when I was a freshman in High School. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > On 1/27/2011 11:38 AM, Edward Zuris wrote: > >> > >> From what I hear from my friends overseas > >> a lot of computer related products in the > >> USA are rather inexpensive compared their > >> local markets. However, I am sure there > >> are places outside the USA has even cheaper > >> prices. > >> > >> Every Nation has its issues. Russian might, > >> or might not, be going back it's old USSR > >> ways. And in the USA we have more than our > >> fair share of crazy people. And we elect > >> a number of our crazies into high positions > >> into the government. > >> > >> Of the two, I'll think we are better off > >> with the cheaper computer monitors and some > >> crazies, in Congress. We also get to watch > >> them on CSPAN TV. It is like watching a > >> circus in slow motion. > >> > >> The USA has many cultures and climates. > >> > >> I live in the American Southwest desert. > >> One place I really liked was the American > >> Northwest. Fished for salmon around Everett. > >> Where John lives it can get hot and humid > >> in the summer, but there is good fishing > >> near by. I spent a summer near Asheville, > >> and the weekends at the Outer Banks. > >> > >> As far as I am concerned, Shamil, you are > >> welcome. > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > >> Salakhetdinov > >> Sent: Wednesday, January 26, 2011 12:56 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: Re: [AccessD] Dual Monitors > >> > >> > >> Hi John -- > >> > >> <<< > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >>>>> > >> That's a ridiculous price for St.Petersburg, Russia. > >> I should start thinking seriously how to get moved there in your > >> country... Especially taking into that Mr. Putin seems to be planning > > >> to get here at power on year 2012 for another 12 (or 14!?) years... > >> > >> Thank you. > >> > >> -- > >> Shamil > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: 26 ?????? 2011 ?. 21:26 > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Dual Monitors > >> > >> I bought two Acer G235H from Newegg.com when they were $129 each > >> shipped > >> - back just before Christmas. > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> On 1/26/2011 7:43 AM, Dan Waters wrote: > >>> Yowser!! :-) You must have to swivel in your chair to look from one > > >>> side to the other! > >>> > >>> What brand of monitors did you get? Any thoughts on those? I have > a > >>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - > >> still > >> great). > >>> These have 1600 X 1200 resolution, and the screens are non-glare. > >>> > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >>> Sent: Tuesday, January 25, 2011 9:25 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: Re: [AccessD] From Lake Woebegone > >>> > >>> LOL, yep those big monitors are great for that kind of stuff. > >>> > >>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 > >>> native resolution. Pretty darned awesome. > >>> > >>> John W. Colby > >>> www.ColbyConsulting.com > >>> > >>> On 1/25/2011 10:05 PM, Mark Simms wrote: > >>>> I LOVE that site. I joined !! > >>>> I'm also now posting from my new Hanns-G 28" monitor....pretty > >> impressive. > >>>> One must stay 2 FEET away from this "big boy". > >>>> > >>>> It's also funny, because Access 2007's tabbed interface almost > >>>> seems > > > >>>> to mandate a large format monitor. I can have 50 columns showing in > > >>>> datasheet view now ! > >>>> > >>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan > >>>>> wrote: > >>>>>> So common that there's a programmers' website out there - > >>>>> http:/www.thedailywtf.com > >>>> > >>>> > >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 1 13:08:45 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 1 Feb 2011 11:08:45 -0800 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: Can you make an ADP? On Mon, Jan 31, 2011 at 4:31 PM, Darren - Active Billing < darren at activebilling.com.au> wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, 1 February 2011 2:15 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] SQL constant harassment > > I am doing a demo Access database against a SQL Server BE. Access is > constantly "harassing" me with pop-ups to provide log in information. At > odd times, not always. But when it happens it is for each (bound) form > getting data. So a main form with subforms, and apparently even combo > boxes, it will pop up the box to select the user authorized to do this. > > What do I do to make this go away? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 1 13:59:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 01 Feb 2011 14:59:34 -0500 Subject: [AccessD] OT Yuma In-Reply-To: References: <4D41D9C2.70608@colbyconsulting.com> <001901cbbf11$9d3d7170$5bdea8c0@edz1> Message-ID: <4D486626.9040605@colbyconsulting.com> LOL. Yup, El Centro, the hotbed of things to do. John W. Colby www.ColbyConsulting.com On 2/1/2011 2:01 PM, David McAfee wrote: > My cousin lives in El Centro. She always wants us to come visit her. > > We're like, um, why don't you come out to us, by the beach. :) > > > On Fri, Jan 28, 2011 at 9:34 AM, Edward Zuris wrote: > >> >> Yikes. >> >> I had an assignment in El Centro, not far >> from Yuma, for a couple of months. >> >> The area brought a whole new meaning to >> the word "hot". >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, January 27, 2011 1:47 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Dual Monitors >> >> >> > The 110 sounds like Phoenix. Did I guess correctly ? >> >> Even worse. Yuma. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> On 1/27/2011 3:05 PM, Edward Zuris wrote: >>> >>> When the Salmon come in to spawn, they >>> would gather just a few miles from Everett >>> near the San Juan area before heading to >>> Canada or USA rivers. >>> >>> Great fishing, and very few people take >>> advantage of it. >>> >>> I am in Albuquerque, NM. >>> >>> Starting in late May, or early June, the >>> temperatures start climb up to the 100's. >>> >>> At the moment it is high dry cold winds >>> with a few dust storms. Sometime maybe a >>> half inch of snow every so often. After >>> May it is total bake mode. But the desert >>> and dry climate grows on you after awhile. >>> >>> I grew up in NM, so I know a number of good >>> fishing holes. I go up into the mountains >>> to fish for trout during the summer. But >>> catching a ten pound king salmon really makes >>> your day and puts any quarter pound mountain >>> trout to shame. >>> >>> The 110 sounds like Phoenix. Did I guess >>> correctly ? >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, January 27, 2011 10:06 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Dual Monitors >>> >>> >>> I grew up in the American southwest desert. >>> 110 degrees F every day. I lived with my >>> father for about 6 months in Everett >>> Washington when I was a freshman in High School. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 1/27/2011 11:38 AM, Edward Zuris wrote: >>>> >>>> From what I hear from my friends overseas >>>> a lot of computer related products in the >>>> USA are rather inexpensive compared their >>>> local markets. However, I am sure there >>>> are places outside the USA has even cheaper >>>> prices. >>>> >>>> Every Nation has its issues. Russian might, >>>> or might not, be going back it's old USSR >>>> ways. And in the USA we have more than our >>>> fair share of crazy people. And we elect >>>> a number of our crazies into high positions >>>> into the government. >>>> >>>> Of the two, I'll think we are better off >>>> with the cheaper computer monitors and some >>>> crazies, in Congress. We also get to watch >>>> them on CSPAN TV. It is like watching a >>>> circus in slow motion. >>>> >>>> The USA has many cultures and climates. >>>> >>>> I live in the American Southwest desert. >>>> One place I really liked was the American >>>> Northwest. Fished for salmon around Everett. >>>> Where John lives it can get hot and humid >>>> in the summer, but there is good fishing >>>> near by. I spent a summer near Asheville, >>>> and the weekends at the Outer Banks. >>>> >>>> As far as I am concerned, Shamil, you are >>>> welcome. >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Wednesday, January 26, 2011 12:56 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> >>>> Hi John -- >>>> >>>> <<< >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>>>>> >>>> That's a ridiculous price for St.Petersburg, Russia. >>>> I should start thinking seriously how to get moved there in your >>>> country... Especially taking into that Mr. Putin seems to be planning >> >>>> to get here at power on year 2012 for another 12 (or 14!?) years... >>>> >>>> Thank you. >>>> >>>> -- >>>> Shamil >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: 26 ?????? 2011 ?. 21:26 >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Dual Monitors >>>> >>>> I bought two Acer G235H from Newegg.com when they were $129 each >>>> shipped >>>> - back just before Christmas. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> On 1/26/2011 7:43 AM, Dan Waters wrote: >>>>> Yowser!! :-) You must have to swivel in your chair to look from one >> >>>>> side to the other! >>>>> >>>>> What brand of monitors did you get? Any thoughts on those? I have >> a >>>>> pair of Viewsonic VP2030b monitors which I do like (> 3 yrs old - >>>> still >>>> great). >>>>> These have 1600 X 1200 resolution, and the screens are non-glare. >>>>> >>>>> Dan >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>>> Sent: Tuesday, January 25, 2011 9:25 PM >>>>> To: Access Developers discussion and problem solving >>>>> Subject: Re: [AccessD] From Lake Woebegone >>>>> >>>>> LOL, yep those big monitors are great for that kind of stuff. >>>>> >>>>> I have a matched pair of 23.5" monitors on my laptop - 1920 x 1080 >>>>> native resolution. Pretty darned awesome. >>>>> >>>>> John W. Colby >>>>> www.ColbyConsulting.com >>>>> >>>>> On 1/25/2011 10:05 PM, Mark Simms wrote: >>>>>> I LOVE that site. I joined !! >>>>>> I'm also now posting from my new Hanns-G 28" monitor....pretty >>>> impressive. >>>>>> One must stay 2 FEET away from this "big boy". >>>>>> >>>>>> It's also funny, because Access 2007's tabbed interface almost >>>>>> seems >>> >>>>>> to mandate a large format monitor. I can have 50 columns showing in >> >>>>>> datasheet view now ! >>>>>> >>>>>>> On Mon, Jan 24, 2011 at 3:35 AM, Stuart McLachlan >>>>>>> wrote: >>>>>>>> So common that there's a programmers' website out there - >>>>>>> http:/www.thedailywtf.com >>>>>> >>>>>> >>>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Thu Feb 3 10:19:37 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 08:19:37 -0800 Subject: [AccessD] OT: Access and SQL server Message-ID: <4D4AD599.4020606@nanaimo.ark.com> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From Gustav at cactus.dk Thu Feb 3 10:45:25 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Feb 2011 17:45:25 +0100 Subject: [AccessD] OT: Access and SQL server Message-ID: Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks From jwcolby at colbyconsulting.com Thu Feb 3 10:51:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 11:51:25 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <4D4ADD0D.8000207@colbyconsulting.com> >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks From ssharkins at gmail.com Thu Feb 3 11:01:04 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:01:04 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: > >I'll find a book with great reviews and the next review they basically > >say it is not so good and > so on and so on. > > What I have found is that is true for any product anywhere. There are > some people who just don't like *anything* and they are the biggest > complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I > try and get 85% to be 5, 4, and 3 star. ==========Sometimes -- I've run into this myself, at least twice -- they're not even reviewing the right book. :( You get trashed, and it's not even your book. Susan H. From jm.hwsn at gmail.com Thu Feb 3 11:04:11 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 3 Feb 2011 11:04:11 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4ADD0D.8000207@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> Message-ID: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> I agree, but I also take into consideration who recommends a book. If I recognize someone on this list that reviews a book, I'd give them more weight than anyone else. On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." by Phil Mitchell? Reviews are good on Amazon. Although it might be a little dated (2006). Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server >I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. What I have found is that is true for any product anywhere. There are some people who just don't like *anything* and they are the biggest complainers. I look for the highest average, and simultaneously not a huge 1 star. I try and get 85% to be 5, 4, and 3 star. John W. Colby www.ColbyConsulting.com On 2/3/2011 11:19 AM, Tony Septav wrote: > Hey All > Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with > great reviews and the next review they basically say it is not so good and so on and so on. Any > suggestions. > > Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Feb 3 11:14:10 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:14:10 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4AE262.7030001@nanaimo.ark.com> Hey All That is why I am asking the list, I value their expert opinions. Rather than relying on someone who is either having a good or bad day. Also I don't want to be spending $50 or $60 on the wrong book. Susan and Martin I think I have heard those names before, they sound familiar. Just kidding. jm.hwsn wrote: >I agree, but I also take into consideration who recommends a book. >If I recognize someone on this list that reviews a book, I'd give them more >weight than anyone else. >On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." >by Phil Mitchell? Reviews are good on Amazon. Although it might be a little >dated (2006). >Thanks, >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >Sent: Thursday, February 03, 2011 10:51 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say >it is not so good and so on and so on. > >What I have found is that is true for any product anywhere. There are some >people who just don't like *anything* and they are the biggest complainers. > >I look for the highest average, and simultaneously not a huge 1 star. I try >and get 85% to be 5, 4, and 3 star. > > >John W. Colby >www.ColbyConsulting.com > >On 2/3/2011 11:19 AM, Tony Septav wrote: > > >>Hey All >>Can anyone recommend a good book for learning "how to". I have googled and >> >> >a I'll find a book with > > >>great reviews and the next review they basically say it is not so good and >> >> >so on and so on. Any > > >>suggestions. >> >>Thanks >> >> From ssharkins at gmail.com Thu Feb 3 11:22:13 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:22:13 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> Message-ID: <20D251F9002D438789F292A4EB233918@salvationomc4p> > That is why I am asking the list, I value their expert opinions. Rather > than relying on someone who is either having a good or bad day. Also I > don't want to be spending $50 or $60 on the wrong book. > Susan and Martin I think I have heard those names before, they sound > familiar. > Just kidding. ========I don't think either one of us spend as much time here as we use to! ;) The book that Martin and I wrote is my best one -- I am very proud of it. The SQL sections are timeless -- not much is going to change there. A lot of the upsizing and using information is going to be different of course. It just depends on why you need the book -- if you need a SQL companion and comparison for Jet and T-SQL, it's a good choice. Martin can chime in if he sees this. I haven't done anything with Access 2007/1010 to SQL Server 8, but I would assume that the general process/preparations is still very similar, even though, the actual step-by-step instructions aren't going to be the same. We wrote that book in 2001! Susan H. From iggy at nanaimo.ark.com Thu Feb 3 11:31:07 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 09:31:07 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <20D251F9002D438789F292A4EB233918@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com> <20D251F9002D438789F292A4EB233918@salvationomc4p> Message-ID: <4D4AE65B.8000805@nanaimo.ark.com> Hey Susan I am leaning towards your and Martin's book (I like to buy locally). The 3 books I have focused in on are all dated and that is kind of the conundrum. Yes I kind of want a SQL companion that I can learn from with the book sitting on my lap. Susan Harkins wrote: >> That is why I am asking the list, I value their expert opinions. >> Rather than relying on someone who is either having a good or bad >> day. Also I don't want to be spending $50 or $60 on the wrong book. >> Susan and Martin I think I have heard those names before, they sound >> familiar. >> Just kidding. > > > ========I don't think either one of us spend as much time here as we > use to! ;) The book that Martin and I wrote is my best one -- I am > very proud of it. The SQL sections are timeless -- not much is going > to change there. A lot of the upsizing and using information is going > to be different of course. It just depends on why you need the book -- > if you need a SQL companion and comparison for Jet and T-SQL, it's a > good choice. Martin can chime in if he sees this. I haven't done > anything with Access 2007/1010 to SQL Server 8, but I would assume > that the general process/preparations is still very similar, even > though, the actual step-by-step instructions aren't going to be the > same. We wrote that book in 2001! > > Susan H. > > From df.waters at comcast.net Thu Feb 3 11:33:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 11:33:24 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <075701507B7443FBB72A9B2003835317@DanWaters> Hi Tony, 1) Microsoft Access Developer's Guide to SQL Server Available new or used - 5-stars on Amazon. http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 /ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 2) Access 2002 Enterprise Developer's Guide + Access 2002 Desktop Developer's Guide Available new or used - 5-stars on Amazon. http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 Both of these cover mdb's and adp's. My thoughts - if you're going to use an mdb, then all you really need to learn is how to set up the table links between the mdb application file and the SQL Server database. If you're going to go the extra mile and set up an adp, then you may want to consider going a mile and a half and use a .Net language and SQL Server. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 10:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Feb 3 11:45:17 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 12:45:17 -0500 Subject: [AccessD] OT: Access and SQL server References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> Message-ID: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Check for a used one -- if I had any author copies left, I'd send it to you myself! Susan H. > Hey Susan > I am leaning towards your and Martin's book (I like to buy locally). The 3 > books I have focused in on are all dated and that is kind of the > conundrum. Yes I kind of want a SQL companion that I can learn from with > the book sitting on my lap. > From iggy at nanaimo.ark.com Thu Feb 3 12:08:25 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:08:25 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <075701507B7443FBB72A9B2003835317@DanWaters> References: <4D4AD599.4020606@nanaimo.ark.com> <075701507B7443FBB72A9B2003835317@DanWaters> Message-ID: <4D4AEF19.6040501@nanaimo.ark.com> Hey Dan Thanks for the mdb and adp advice. Dan Waters wrote: >Hi Tony, > >1) Microsoft Access Developer's Guide to SQL Server > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Microsoft-Access-Developers-Guide-Server/dp/0672319446 >/ref=sr_1_1?ie=UTF8&qid=1296753887&sr=8-1 > > >2) Access 2002 Enterprise Developer's Guide + > Access 2002 Desktop Developer's Guide > Available new or used - 5-stars on Amazon. > >http://www.amazon.com/Access-2002-Enterprise-Developers-Handbook/dp/07821401 >06/ref=sr_1_1?ie=UTF8&s=books&qid=1296754084&sr=1-1 > >http://www.amazon.com/Access-2002-Desktop-Developers-Handbook/dp/0782140092/ >ref=sr_1_3?ie=UTF8&s=books&qid=1296754084&sr=1-3 > > >Both of these cover mdb's and adp's. > >My thoughts - if you're going to use an mdb, then all you really need to >learn is how to set up the table links between the mdb application file and >the SQL Server database. If you're going to go the extra mile and set up an >adp, then you may want to consider going a mile and a half and use a .Net >language and SQL Server. > >Good Luck! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Thursday, February 03, 2011 10:20 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Access and SQL server > >Hey All >Can anyone recommend a good book for learning "how to". I have googled >and a I'll find a book with great reviews and the next review they >basically say it is not so good and so on and so on. Any suggestions. > >Thanks > > From iggy at nanaimo.ark.com Thu Feb 3 12:09:49 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 03 Feb 2011 10:09:49 -0800 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com><4d4ae00d.1e1d640a.248f.3b94@mx.google.com> <4D4AE262.7030001@nanaimo.ark.com><20D251F9002D438789F292A4EB233918@salvationomc4p> <4D4AE65B.8000805@nanaimo.ark.com> <17CE5DEBFC2C43FB81C1188BA6F2C87A@salvationomc4p> Message-ID: <4D4AEF6D.5020808@nanaimo.ark.com> Hey Susan I am kind of disappointed I was hoping for an autographed edition. Thanks for the thought though. Susan Harkins wrote: > Check for a used one -- if I had any author copies left, I'd send it > to you myself! > > Susan H. > >> Hey Susan >> I am leaning towards your and Martin's book (I like to buy locally). >> The 3 books I have focused in on are all dated and that is kind of >> the conundrum. Yes I kind of want a SQL companion that I can learn >> from with the book sitting on my lap. >> > From jimdettman at verizon.net Thu Feb 3 12:19:53 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 03 Feb 2011 13:19:53 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4AD599.4020606@nanaimo.ark.com> References: <4D4AD599.4020606@nanaimo.ark.com> Message-ID: <3556A738030B4920ADB3B0052805FFA8@XPS> Tony, Check out "The Best of Both Worlds: Access-SQL Server Optimization" here: http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp Has some invaluable tips and insights on using Access as a FE with a SQL Server backend. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Thursday, February 03, 2011 11:20 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Access and SQL server Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 3 12:39:39 2011 From: john at winhaven.net (John Bartow) Date: Thu, 3 Feb 2011 12:39:39 -0600 Subject: [AccessD] OT: Access and SQL server In-Reply-To: References: Message-ID: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Hey Tony, I've been reviewing the book (that Gustav recommends below) over the last couple of months. I have an older Access 97 FE/BE system that I have to upgrade to Access 2003 and (unbelievably) then have to upgrade again next year to 2010/SQLServer. I'd prefer to do it in one but not my decision. I'm reviewing this so the second upgrade goes smooth as ice :o) The book is dated (of course, its early century material) but there's good, timeless advice in it. And Susan's writing style always makes technical materials easier to read. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 03, 2011 10:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Access and SQL server Hi Tony How about some writing from two names you should be familiar with: SQL: Access to SQL Server [Paperback] Susan Sales Harkins (Author), Martin W.P. Reid (Author) http://www.amazon.com/SQL-Access-Susan-Sales-Harkins/dp/1893115305 I haven't read it but it sounds like what you are looking for even though it is some years old. /gustav >>> iggy at nanaimo.ark.com 03-02-2011 17:19 >>> Hey All Can anyone recommend a good book for learning "how to". I have googled and a I'll find a book with great reviews and the next review they basically say it is not so good and so on and so on. Any suggestions. Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 13:05:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:05:11 -0500 Subject: [AccessD] Opening an Access application multiple times Message-ID: <4D4AFC67.7070902@colbyconsulting.com> I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- John W. Colby www.ColbyConsulting.com From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:09:46 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:09:46 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:13:19 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:13:19 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4AFC67.7070902@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 2:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Opening an Access application multiple times I am trying to open an access application more than once - two instances open at the same time. When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. I can live with having to open it from a batch file but I am just wondering why this is happening. -- 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 13:23:35 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 14:23:35 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Message-ID: Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? From ssharkins at gmail.com Thu Feb 3 13:30:43 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 3 Feb 2011 14:30:43 -0500 Subject: [AccessD] OT: Access and SQL server References: <01bc01cbc3d1$b834f290$289ed7b0$@winhaven.net> Message-ID: And Susan's writing style always makes technical > materials easier to read. ======Thank you John -- that was very nice of you to say. I appreciate it a great deal! Susan H. From jwcolby at colbyconsulting.com Thu Feb 3 13:37:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:37:27 -0500 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com> Message-ID: <4D4B03F7.9050409@colbyconsulting.com> I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks From jwcolby at colbyconsulting.com Thu Feb 3 13:40:52 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 14:40:52 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> Message-ID: <4D4B04C4.2080602@colbyconsulting.com> >I usually just open another instance of Access and then.. Yea. These are end users so... batch file it is. John W. Colby www.ColbyConsulting.com On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > Don't know why but I see the same thing happening. I usually just open another instance of Access and then have it open the second instance of the MDB file via the File menu. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 2:05 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Opening an Access application multiple times > > I am trying to open an access application more than once - two instances open at the same time. > When I double click the FE (in explorer) it opens. When I go back to explorer and double click it again, it just switches me back to the open instance. Shouldn't it open the application a second time? > > When, from a batch file, I so something like "SomePath\Access.exe" SomeAccessFe.mdb it in fact opens the application a second time. > > I can live with having to open it from a batch file but I am just wondering why this is happening. > > -- > 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 davidmcafee at gmail.com Thu Feb 3 14:01:23 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 3 Feb 2011 12:01:23 -0800 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B04C4.2080602@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: John, I do it as Lambert described. Quick question. Why do the users need to open two copies of the database? On Thu, Feb 3, 2011 at 11:40 AM, jwcolby wrote: > >I usually just open another instance of Access and then.. > > Yea. These are end users so... batch file it is. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 2:13 PM, Heenan, Lambert wrote: > >> Don't know why but I see the same thing happening. I usually just open >> another instance of Access and then have it open the second instance of the >> MDB file via the File menu. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto: >> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 03, 2011 2:05 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Opening an Access application multiple times >> >> I am trying to open an access application more than once - two instances >> open at the same time. >> When I double click the FE (in explorer) it opens. When I go back to >> explorer and double click it again, it just switches me back to the open >> instance. Shouldn't it open the application a second time? >> >> When, from a batch file, I so something like "SomePath\Access.exe" >> SomeAccessFe.mdb it in fact opens the application a second time. >> >> I can live with having to open it from a batch file but I am just >> wondering why this is happening. >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 14:35:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 15:35:37 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> Message-ID: <4D4B1199.7060605@colbyconsulting.com> LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just open >>> another instance of Access and then have it open the second instance of the >>> MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two instances >>> open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back to >>> explorer and double click it again, it just switches me back to the open >>> instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 Lambert.Heenan at chartisinsurance.com Thu Feb 3 14:42:49 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 3 Feb 2011 15:42:49 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: <4D4B1199.7060605@colbyconsulting.com> References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: One other thing: I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 03, 2011 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Opening an Access application multiple times LOL. Because they do. Not uncommon really. In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. Can you say *busy*? The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? John W. Colby www.ColbyConsulting.com On 2/3/2011 3:01 PM, David McAfee wrote: > John, I do it as Lambert described. > > Quick question. Why do the users need to open two copies of the database? > > > > On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: > >>> I usually just open another instance of Access and then.. >> >> Yea. These are end users so... batch file it is. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >> >>> Don't know why but I see the same thing happening. I usually just >>> open another instance of Access and then have it open the second >>> instance of the MDB file via the File menu. >>> >>> Lambert >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com [mailto: >>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Thursday, February 03, 2011 2:05 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Opening an Access application multiple times >>> >>> I am trying to open an access application more than once - two >>> instances open at the same time. >>> When I double click the FE (in explorer) it opens. When I go back >>> to explorer and double click it again, it just switches me back to >>> the open instance. Shouldn't it open the application a second time? >>> >>> When, from a batch file, I so something like "SomePath\Access.exe" >>> SomeAccessFe.mdb it in fact opens the application a second time. >>> >>> I can live with having to open it from a batch file but I am just >>> wondering why this is happening. >>> >>> -- >>> 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 >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 3 15:02:47 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:02:47 -0500 Subject: [AccessD] Opening an Access application multiple times In-Reply-To: References: <4D4AFC67.7070902@colbyconsulting.com> <4D4B04C4.2080602@colbyconsulting.com> <4D4B1199.7060605@colbyconsulting.com> Message-ID: <4D4B17F7.4020505@colbyconsulting.com> >*At their instance* (I need to stress that) It is pretty bad when I am stressing my own mis-spellings. ;) *At their insistance* (I need to stress that) John W. Colby www.ColbyConsulting.com On 2/3/2011 3:42 PM, Heenan, Lambert wrote: > One other thing: > > I can open multiple instances if they are opened from a shortcut, rather than directly clicking the MDB/MDE file. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 3:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Opening an Access application multiple times > > LOL. Because they do. Not uncommon really. > > In this case, it is a call center for disability insurance claims, they take calls all day. When they are not on the phone they are "working claims". *At their instance* (I need to stress that) they have their main form be the center of their world and it opens to a claim for a specific person. It is tabbed with as many as 22 different tabs, although only about a dozen actually show under normal circumstances - some tabs only unhide for certain claim types etc. However some tabs have tabs. > > Can you say *busy*? > > The tabs are JIT so they can switch between tabs and only pull that tab's info if / when they visit the tab. > > Never the less, the claim form can take many seconds to open. Now, they are working on a claim, and a phone call comes in... > > Do we switch away from what we were doing... or open a second instance (keep it open is actually what they do) and just switch away to that other open instance and locate the claim of the person on the phone? > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 3:01 PM, David McAfee wrote: >> John, I do it as Lambert described. >> >> Quick question. Why do the users need to open two copies of the database? >> >> >> >> On Thu, Feb 3, 2011 at 11:40 AM, jwcolbywrote: >> >>>> I usually just open another instance of Access and then.. >>> >>> Yea. These are end users so... batch file it is. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> On 2/3/2011 2:13 PM, Heenan, Lambert wrote: >>> >>>> Don't know why but I see the same thing happening. I usually just >>>> open another instance of Access and then have it open the second >>>> instance of the MDB file via the File menu. >>>> >>>> Lambert >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com [mailto: >>>> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Thursday, February 03, 2011 2:05 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: [AccessD] Opening an Access application multiple times >>>> >>>> I am trying to open an access application more than once - two >>>> instances open at the same time. >>>> When I double click the FE (in explorer) it opens. When I go back >>>> to explorer and double click it again, it just switches me back to >>>> the open instance. Shouldn't it open the application a second time? >>>> >>>> When, from a batch file, I so something like "SomePath\Access.exe" >>>> SomeAccessFe.mdb it in fact opens the application a second time. >>>> >>>> I can live with having to open it from a batch file but I am just >>>> wondering why this is happening. >>>> >>>> -- >>>> 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 >>> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 3 15:13:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 16:13:26 -0500 Subject: [AccessD] I need an archive / copy widget Message-ID: <4D4B1A76.5010507@colbyconsulting.com> I use library (MDA) files. I use nested library files, the FE references one lib which references another lib. For whatever reason, if I don't do a full decompile / compile / compact etc on all libs / FE starting at the deepest referenced lib, and then use all the freshly DCCRed parts, the FE will hand (refuse to close). Do a full DCCR on all the parts, *in order* and then use all the parts and voila, no more hang. Which means that I now have a matched set of files where the FE only works with the libs that it was DCCRed with. So I need something that allows me to zip up all the files in the set in a (production or test) directory, then transfer into that (production or test) directory the freshly DCCRed files from my dev directory. Make sense? Has anyone got such a widget? -- John W. Colby www.ColbyConsulting.com From BradM at blackforestltd.com Thu Feb 3 16:34:57 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 3 Feb 2011 16:34:57 -0600 Subject: [AccessD] Modifying Charts with VBA References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad From Darryl.Collins at iag.com.au Thu Feb 3 16:38:51 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:38:51 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: References: Message-ID: <201102032242.p13MgRnk010389@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From Darryl.Collins at iag.com.au Thu Feb 3 16:43:08 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Fri, 4 Feb 2011 09:43:08 +1100 Subject: [AccessD] OT: Access and SQL server In-Reply-To: <4D4B03F7.9050409@colbyconsulting.com> References: <4D4AD599.4020606@nanaimo.ark.com> <4D4ADD0D.8000207@colbyconsulting.com> <4d4ae00d.1e1d640a.248f.3b94@mx.google.com>, <4D4B03F7.9050409@colbyconsulting.com> Message-ID: <201102032243.p13MhLhA015541@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ HAHAHAHAHA! nice one John. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: Friday, 4 February 2011 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Access and SQL server I'd buy a copy and send it to Microsoft! ;) John W. Colby www.ColbyConsulting.com On 2/3/2011 12:04 PM, jm.hwsn wrote: > I agree, but I also take into consideration who recommends a book. > If I recognize someone on this list that reviews a book, I'd give them more > weight than anyone else. > On the same topic... Has anyone reviewed/used "Fixing Access Annoyances..." > by Phil Mitchell? Reviews are good on Amazon. Although it might be a little > dated (2006). > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 03, 2011 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Access and SQL server > > >I'll find a book with great reviews and the next review they basically say > it is not so good and so on and so on. > > What I have found is that is true for any product anywhere. There are some > people who just don't like *anything* and they are the biggest complainers. > > I look for the highest average, and simultaneously not a huge 1 star. I try > and get 85% to be 5, 4, and 3 star. > > > John W. Colby > www.ColbyConsulting.com > > On 2/3/2011 11:19 AM, Tony Septav wrote: >> Hey All >> Can anyone recommend a good book for learning "how to". I have googled and > a I'll find a book with >> great reviews and the next review they basically say it is not so good and > so on and so on. Any >> suggestions. >> >> Thanks -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From df.waters at comcast.net Thu Feb 3 16:56:28 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 3 Feb 2011 16:56:28 -0600 Subject: [AccessD] Modifying Charts with VBA In-Reply-To: References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> Message-ID: <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> This is a link to the MS Graph 10 Object Model. http://msdn.microsoft.com/en-us/library/aa141052(office.10).aspx Could be a different version for Access 2007. Per this you should have a file on your PC name VBAGR10.chm if you've installed Access XP. I've got it and it's in C:\Program Files(x86)\Microsoft Office\Office11\vbagr10.chm. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Thursday, February 03, 2011 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Modifying Charts with VBA All, I am starting to explore the use of Charts in a small Access 2007 application. >From the Access 2007 Design tab I have used the "Insert Chart" button to fire up the "Chart Wizard" to create some test charts. Once created, I have used the "Chart Object / Edit" facility to modify the generated chart. I don't really like the build-in facility to Edit the Chart Object to make changes. I have experimented a bit with VBA code to make cosmetic changes. I understand how to make simple changes to a chart, such as changing the colors with commands like this. Reports.report2.Graph1.ChartArea.Interior.ColorIndex = 5 Reports.report2.Graph1.PlotArea.Interior.ColorIndex = 6 I would like to find an example of how to change other things such as chart type, size, font sizes, etc. Does anyone have examples of how to do this with VBA? Perhaps there is a resource on the web that explains this. I have done some digging but no luck so far. Thanks, Brad -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 3 17:01:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 3 Feb 2011 17:01:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: Not to mention that if she is running into problems with the current system, a 'canned' solution would most likely carry those same issues along with it. A long time ago, I built a 'canned' solution that would display reports from an access database across the web (and any 'UI' prompts, like [Enter Product Number] that were in the query would be read, recreated into a web format to be displayed to the user, and then the user's response sent back to the actual .mdb). It worked great. Toyed with the idea of doing the same for forms, and ran into a huge brick wall with how Access subclasses the windows in its forms. So I never took it any further. But to take an Access mdb, and just 'dump it' into a web application loses the benefit of some of the great features a web application can incorporate. For instance, if you were to just create a Dropdown box, that 'populated' some fields in an ASP.NET application, ASP.Net would let you make it 'look' like an access combobox, and act like it, but what's happening in the background is clunky. First, .Net is creating javascript on the client side that is reacting to the 'OnClick' of the combobox (or index changed event), then it's sending all the current web form info back to the server (as a PostBack), where the web server then does what your .Net (VB or C#) code wants to do, in filling in the fields, and sends all that back to the user. UGLY. Works, but ugly. If it's a huge form, or a very slow connection, that creates noticeable pauses and reloads on the web page. There is another solution: You can create a generic handler, that uses JQuery (AJAX) on the client side to just 'ask' the web server for the applicable data. Here's a generic handler (.ashx file) <%@ WebHandler Language="VB" Class="LoadDoctorInfo" %> Imports System Imports System.Web Public Class LoadDoctorInfo : Implements IHttpHandler Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest Dim intID As String = context.Request.QueryString("DoctorID") Dim strDocInfo As New StringBuilder Dim dr As New Doctor(intID) strDocInfo.Append("[{""DoctorName"":""" & dr.Name & """,") strDocInfo.Append("""Address1"":""" & dr.Address1 & """,") strDocInfo.Append("""Address2"":""" & dr.Address2 & """,") strDocInfo.Append("""City"":""" & dr.City & """,") strDocInfo.Append("""State"":""" & dr.State & """,") strDocInfo.Append("""Zip"":""" & dr.ZipCode & """,") strDocInfo.Append("""Phone"":""" & dr.Phone & """}]") context.Response.ContentType = "application/json" context.Response.ContentEncoding = Encoding.UTF8 context.Response.Write(strDocInfo.ToString()) context.Response.End() End Sub Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable Get Return False End Get End Property End Class The above file is stored on the web server, and is called using the follow javascript on the client end: The drop down list is filled with doctors and their IDs, the jquery-1.2.6.js file (which you can download from the web) has all the code necessary to make the above code work. It takes the ID of the combo, queries the webserver's generic handler ('LoadDoctorInfo.ashx') and then populates controls on the end user's form using data from what's returned by the handler. The user's form doesn't have to 'reload' against the webserver, and that interaction 'appears' to work just like a combo box on an Access form would work. There are several other tricks you can do with .asp pages which will help increase the performance of an application. While there may be 'canned' apps out there, which can stuff an application into a .Net solution, I doubt it will be very finely tuned or optimized. Heck, one of the features of ASP.Net that I fell in love with, is how easy it is to create a 'downloaded file' on the fly. (Say on a data form, you want to give the user the ability to download a .csv file of the data they are working on, with .asp, I would create the .csv file in a temp file, and then redirect them to that file... with ASP.Net, it's extremely easy to just interrupt the outbound feed, and just send the file on the fly. Probably could have done that in classic asp, but the tutorial to do that in asp.Net was quick and easy to find). No more temp files. Very slick. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, January 31, 2011 7:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Darryl -- I agree. She's looking for a canned solution and I've told her there isn't any such thing -- but I thought I'd ask. You never know. :) Susan H. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI 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 newsgrps at dalyn.co.nz Thu Feb 3 17:39:01 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 12:39:01 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade Message-ID: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From bill_patten at embarqmail.com Thu Feb 3 19:54:59 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Thu, 3 Feb 2011 17:54:59 -0800 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: ?David, I don't know if this will help as I do not have Access XP any more, I do however have an adp Access2003 and did the following tests. Created and ADE restored a Sql Server 2000 backup into a 2008 Sql Server Opened a Win7 32 bit VM with Office 2010 installed in it Opened the 2003 ADE with 2010 and used my built in change SQL Server routine to connect to the 2008 Server. My program then prompted me for the database update to the latest version. I pointed my update routine to the correct .Sql file and it updated the server correctly, this is good that means some things are working OK. I opened a few forms and made a few entries and everything seemed to work with one exception. My automatic throw away the ribbon and use the old Office menus did not work. I suspect this is because it is an ADE and can't make the changes to the program. Selecting Add-ins does show the Office Menus but on top of the ribbon. I don't use ADE's any more, but lock down the ADP as much as possible to keep users out. If they get in and screw it up then they can pay me to fix it. The good news is 2010 did open a 2003 ade and didn't complain, obviously more testing is needed but at least on the surface it appears to work. By the way, there are some free Office 2010 downloads available, I think good for 30 days or so and if you have any Virtual machines or spare tests machines you can easily do some testing without screwing up you development system. HTH Bill -------------------------------------------------- From: "David Emerson" Sent: Thursday, February 03, 2011 3:39 PM To: "Access Developers discussion and problem solving" ; Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade I have a client who is looking at upgrading their SQL2005 to SQL2008. Currently we are running an Access XP ade connected to SQL2005. Does anyone have any experience or know if an Access XP ade will connect to an SQL2008 database Will an Access XP ade run in Access 2010? Can Access 2010 be used to create an ade? Are there any issues I should be aware of in upgrading an SQL2005 database to SQL2008? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Thu Feb 3 20:25:16 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 04 Feb 2011 15:25:16 +1300 Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade In-Reply-To: References: <20110203233916.SWTF5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <20110204022539.UKGH3726.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Thanks Bill, That looks very promising. Much appreciated. Regards David At 4/02/2011, Bill Patten wrote: >?David, >I don't know if this will help as I do not have Access XP any more, I do >however have an adp Access2003 and did the following tests. >Created and ADE >restored a Sql Server 2000 backup into a 2008 Sql Server >Opened a Win7 32 bit VM with Office 2010 installed in it >Opened the 2003 ADE with 2010 and used my built in change SQL Server routine >to connect to the 2008 Server. My program then prompted me for the database >update to the latest version. >I pointed my update routine to the correct .Sql file and it updated the >server correctly, this is good that means some things are working OK. >I opened a few forms and made a few entries and everything seemed to work >with one exception. >My automatic throw away the ribbon and use the old Office menus did not >work. I suspect this is because it is an ADE and can't make the changes to >the program. Selecting Add-ins does show the Office Menus but on top of the >ribbon. > >I don't use ADE's any more, but lock down the ADP as much as possible to >keep users out. If they get in and screw it up then they can pay me to fix >it. > > >The good news is 2010 did open a 2003 ade and didn't complain, obviously >more testing is needed but at least on the surface it appears to work. > >By the way, there are some free Office 2010 downloads available, I think >good for 30 days or so and if you have any Virtual machines or spare tests >machines you can easily do some testing without screwing up you development >system. > >HTH > >Bill > >-------------------------------------------------- >From: "David Emerson" >Sent: Thursday, February 03, 2011 3:39 PM >To: "Access Developers discussion and problem solving" >; >Subject: [AccessD] Running Access XP ade With Access 10 and SQL2008 upgrade > >I have a client who is looking at upgrading their SQL2005 to SQL2008. > >Currently we are running an Access XP ade connected to SQL2005. > >Does anyone have any experience or know if an Access XP ade will >connect to an SQL2008 database > >Will an Access XP ade run in Access 2010? > >Can Access 2010 be used to create an ade? > >Are there any issues I should be aware of in upgrading an SQL2005 >database to SQL2008? > > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From marksimms at verizon.net Thu Feb 3 20:29:55 2011 From: marksimms at verizon.net (Mark Simms) Date: Thu, 03 Feb 2011 21:29:55 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <013601cbc413$698b9850$3ca2c8f0$@net> I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From jwcolby at colbyconsulting.com Thu Feb 3 21:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 03 Feb 2011 22:21:46 -0500 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <4D4B70CA.1070107@colbyconsulting.com> And that is exactly why I am going to C# apps. I *hate* clunky web apps and I don't want to be the author of one. Eventually I will do C# and services. Maybe. If I can ever figure it out. ;) There's just too much to know. I think I'll turn it all over to Robbie and let him figure it all out. He can already tell me how to do all the stuff on the Windows 7 HTPC that I can't figure out. John W. Colby www.ColbyConsulting.com On 2/3/2011 9:29 PM, Mark Simms wrote: > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From Lambert.Heenan at chartisinsurance.com Fri Feb 4 08:15:56 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 4 Feb 2011 09:15:56 -0500 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: <201102032242.p13MgRnk010389@databaseadvisors.com> References: <201102032242.p13MgRnk010389@databaseadvisors.com> Message-ID: Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Feb 4 09:42:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 04 Feb 2011 07:42:39 -0800 Subject: [AccessD] OT: Hey Susan Message-ID: <4D4C1E6F.9080701@nanaimo.ark.com> Hey Susan Thought this may give you a laugh. Just checked out the price of your book at amazon.ca List price $54.95 CDN Amazon price $34.62 CDN Checked out the other sellers new and used price. Vary's from $28.72 to $147.00 CDN Look's like it is becoming a collector's item. From ssharkins at gmail.com Fri Feb 4 10:16:31 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 4 Feb 2011 11:16:31 -0500 Subject: [AccessD] OT: Hey Susan References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <3B1F14CD1ABB42CEB708EED0AA569DE3@salvationomc4p> Well, if you send me $147.00, I'll send you MY copy! ;) AHAHAHAHHAAH Susan H. > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From jwcolby at colbyconsulting.com Fri Feb 4 10:26:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 04 Feb 2011 11:26:03 -0500 Subject: [AccessD] OT: Hey Susan In-Reply-To: <4D4C1E6F.9080701@nanaimo.ark.com> References: <4D4C1E6F.9080701@nanaimo.ark.com> Message-ID: <4D4C289B.2050504@colbyconsulting.com> LOL. I've seen that with other books. I think some people put a book up for sale at an outrageous price and just hope for the occasional dunce to click buy. John W. Colby www.ColbyConsulting.com On 2/4/2011 10:42 AM, Tony Septav wrote: > Hey Susan > Thought this may give you a laugh. > Just checked out the price of your book at amazon.ca > List price $54.95 CDN > Amazon price $34.62 CDN > > Checked out the other sellers new and used price. > Vary's from $28.72 to $147.00 CDN > Look's like it is becoming a collector's item. From pcs.accessd at gmail.com Sat Feb 5 02:14:52 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 18:14:52 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server Message-ID: Hi all, I have created both a view and a SP based on tables in another Db (call it Db1) on the same instance of the SQL Server (2008). I created the view and SP in say Db2. A simple Select ... When I want to use either the View or the SP in a join with other tables in Db2 I am stuck. The SP containing the join to either view or SP based on Db1 tables and saved in Db2 will save Ok but not execute. Both the view and the SP that I am trying to join up will execute ok when running on their own. Funny thing is that in the Access FE I can create a pass through query based on the view and join the pass through query to an odbc linked table from Db2. Any one who can shed light on this? borge From paul.hartland at googlemail.com Sat Feb 5 02:56:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 5 Feb 2011 08:56:51 +0000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Have you got an example of the view and SP, if you want to run a view or SP in DB2 that uses tables/views in DB1 then you have to reference the database (which I am assuming that you are doing), but if not example is below: in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 Paul On 5 February 2011 08:14, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From pcs.accessd at gmail.com Sat Feb 5 03:22:06 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 5 Feb 2011 19:22:06 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Yes, I am referencing the Db. I have created viewDb1 in Db2. The view executes ok in Db2 When I try and use viewDb1 in a join in another select SP in Db2 I can create and save the SP but it will not execute. It does not recognize the viwDb1. ?? I will now create the ViewDb1 in Db1 and on the SP in question in Db2 try and join up the Db1.viewDb1 ... We'll see. Thanks for the input. borge On Saturday, February 5, 2011, Paul Hartland wrote: > Have you got an example of the view and SP, if you want to run a view or SP > in DB2 that uses tables/views in DB1 then you have to reference the database > (which I am assuming that you are doing), but if not example is below: > > in DB1 you have a view call it say ViewInDB1, to reference the view in DB1 > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > Paul > > On 5 February 2011 08:14, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > Paul Hartland > paul.hartland at googlemail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at roadrunner.com Sat Feb 5 08:02:40 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 5 Feb 2011 09:02:40 -0500 Subject: [AccessD] Archives In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> Message-ID: <374E68B7D75E4258B8C2AE40475D03A8@DCYN3T81> Are the archives down? I am unable to search ... http://databaseadvisors.com/mailman/mmsearch/accessd "The webpage cannot be found" Thanks Bob Gajewski From pcs.accessd at gmail.com Sat Feb 5 18:58:43 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sun, 6 Feb 2011 10:58:43 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: Follow up to this issue: I have these DBs: RMS_ADMIN and RMS_DATA I have created a view call vAppUsers in both RMS_ADMIN and RMS_DATA based on tables in RMS_ADMIN. The view created in RMS_DATA references the RMS_ADMIN. In RMS_DATA I can create a SP that joins the vAppUsers view; I can use the local vAppUsers created in RMS_DATA or I can use the RMS_ADMIN.dbo.vAppUsers. However, in both SPs whenever I hover over the vAppUsers object, the intellisense responds with: Invalid Object Name 'RMS_ADMIN.dbo.vAppUsers' or Invalid Object Name 'dbo.vAppUsers' (when using the local RMS_DATA.dbo.vAppUsers) and when hovering over a column: The Multi-part identifier "RMS_ADMIN.dbo.vAppUsers.User_ID" could not be bound or The Multi-part identifier "dbo.vAppUsers.User_ID" could not be bound (when using the local RMS_DATA.dbo.vAppUsers) The SPs executes OK Is it just a limitation on the part of the intellisense that I can just disregard. Or do I need to do something here? One of the SPs looks like that references the view in RMS_ADMIN looks like this: SELECT dbo.tlkpRS_CCAreas.*, dbo.tlkpAreaGroup.AreaGroupDescription, dbo. tlkpAreaGroup.DesignatedUserID, RMS_ADMIN.dbo.vAppUsers.User_LoginName FROM dbo.tlkpRS_CCAreas INNER JOIN dbo.tlkpAreaGroup ON dbo.tlkpRS_CCAreas.AreaGroup = dbo.tlkpAreaGroup.AreaGroupID INNER JOIN RMS_ADMIN.dbo.vAppUsers ON dbo.tlkpAreaGroup.DesignatedUserID = RMS_ADMIN. dbo.vAppUsers.User_ID --- regards borge On Sat, Feb 5, 2011 at 7:22 PM, Borge Hansen wrote: > Yes, I am referencing the Db. > I have created viewDb1 in Db2. > The view executes ok in Db2 > When I try and use viewDb1 in a join in another select SP in Db2 I > can create and save the SP but it will not execute. It does not > recognize the viwDb1. > ?? > I will now create the ViewDb1 in Db1 and on the SP in question in Db2 > try and join up the Db1.viewDb1 ... We'll see. > Thanks for the input. > borge > > On Saturday, February 5, 2011, Paul Hartland > wrote: > > Have you got an example of the view and SP, if you want to run a view or > SP > > in DB2 that uses tables/views in DB1 then you have to reference the > database > > (which I am assuming that you are doing), but if not example is below: > > > > in DB1 you have a view call it say ViewInDB1, to reference the view in > DB1 > > from DB2 you would use something like SELECT * FROM DB1.dbo.ViewInDB1 > > > > Paul > > > > On 5 February 2011 08:14, Borge Hansen wrote: > > > >> Hi all, > >> I have created both a view and a SP based on tables in another Db > >> (call it Db1) on the same instance of the SQL Server (2008). I created > >> the view and SP in say Db2. A simple Select ... > >> When I want to use either the View or the SP in a join with other > >> tables in Db2 I am stuck. The SP containing the join to either view or > >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. > >> Both the view and the SP that I am trying to join up will execute ok > >> when running on their own. > >> Funny thing is that in the Access FE I can create a pass through query > >> based on the view and join the pass through query to an odbc linked > >> table from Db2. > >> Any one who can shed light on this? > >> borge > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > -- > > Paul Hartland > > paul.hartland at googlemail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > From Darryl.Collins at iag.com.au Sun Feb 6 17:29:13 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 7 Feb 2011 10:29:13 +1100 Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) In-Reply-To: Message-ID: <201102062329.p16NTG9m003348@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hey Lambert, If you want, send me a copy of the target XL file and the Access code modules used to call it, I will see if I can replicate the problem here, or see if there is anything funky with the XL file. Always interested in these sort of issues. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Saturday, 5 February 2011 1:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Darryl, Negative on all counts, unfortunately. It's an Excel 2002 file, there are certainly only two tabs, and the names are "Data" and "Values". Also I if there were any hidden tabs the count would be greater than 2. ??? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, February 03, 2011 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Hi Lambert. A couple of things spring to mind. Firstly I would absolutely check no user has changed the sheetname from "Data" and "Values" to something else. Secondly - is the workbook a legacy .xls format or one of the post XL2007 .xlsx .xlsm etc formats? Sound to me like the sheet name has been changed? That is the immediate suspect. Check for things like HIDDEN Sheets. A user may have hidden a worksheet so it is now Sheet2 in the count, but not visible. regards Darryl. ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert [Lambert.Heenan at chartisinsurance.com] Sent: Friday, 4 February 2011 6:23 AM To: Access-D Email (accessd at databaseadvisors.com) Subject: [AccessD] Bizarro-land: Excel and Access not playing (Access 2002) Cross posted to Access-L and AccessD I have some code that has been running just find for years on end. It opens an Excel file and then does a quick check for the existence of a particular worksheet name in the file, as the first step to ensure that it is a correctly formatted file. A correct file has two tabs, the first named "Data" and the other named "Values". Here is the code that all of a sudden does not work: Dim xlObj As Excel.Application Dim i as Integer Dim bInvalidFile as Boolean ... Set xlObj = Excel_OpenWorkBookHidden(mod_sExcelPath) ' opens the file with the standard automation methods*, see below bInvalidFile = True For i = 1 To xlObj.Worksheets.Count ' xlObj.Worksheets.Count evaluates to 2 If (xlObj.Worksheets(i).Name = "Values") Then ' when i = 1 the expression xlObj.Worksheets(i).Name evaluated to "Data", as expected ' but as soon as the Next i statement is executed xlObj.Worksheets(i).Name shows up in the ' Watch window as "Application-defined or object-defined error" bInvalidFile = False Exit For End If Next i ' I have a function that was written some time after the above problematic code which looks for a given tab name in an Excel file... Function Excel_WorkSheetExists(xlApp As Excel.Application, strName As String) As Boolean Dim xlWs As Excel.Worksheet On Error Resume Next Set xlWs = xlApp.Worksheets(strName) Excel_WorkSheetExists = (Err.Number = 0) Set xlWs = Nothing On Error GoTo 0 End Function When I call this function using a reference to the exact same file as was causing trouble above... Set xlApp = Excel_OpenWorkBookHidden(strPORFile) ' now check for the presence of some worksheets... boolHit = Excel_WorkSheetExists(xlApp, "Data") If boolHit Then boolHit = boolHit And Excel_WorkSheetExists(xlApp, "Values") End If ... the function happily finds both the "Data" and the "Values" tab and returns True. I am simply going to blink and replace the old For Loop at the top of this posting with a call to the Excel_WorkSheetExists function, which will get me past the problem, but I cannot for the life of me figure out what the problem might be with the old code that has work fine for so long. * my method for opening the Excel file ... 70 If IsExcelRunning() Then 80 Set xlApp = GetObject(, "Excel.Application") 90 Else 100 Do 110 Set xlApp = CreateObject("Excel.Application") 120 Loop Until IsExcelRunning() 130 End If Lambert ???? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 7 07:15:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 08:15:23 -0500 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: References: Message-ID: <4D4FF06B.9010304@colbyconsulting.com> It feels like a security issue. At my office I am the owner of all the databases. I have many (hundreds) of databases and I have always used the db.dbo.table.view addressing to create views, dynamic SQL etc. most of which references other databases. I have a handful of (a dozen) databases which are what I call "data" databases, which hold name / address lists. In the past I used SPs heavily which operated on data from each other. I also use C# to execute code updating or appending records from one database to another. the key to me is the dbname.dbo. syntax, as long as I have that the queries work fine. Again though, all of the databases are owned by the same owner so rights are not an issue. John W. Colby www.ColbyConsulting.com On 2/5/2011 3:14 AM, Borge Hansen wrote: > Hi all, > I have created both a view and a SP based on tables in another Db > (call it Db1) on the same instance of the SQL Server (2008). I created > the view and SP in say Db2. A simple Select ... > When I want to use either the View or the SP in a join with other > tables in Db2 I am stuck. The SP containing the join to either view or > SP based on Db1 tables and saved in Db2 will save Ok but not execute. > Both the view and the SP that I am trying to join up will execute ok > when running on their own. > Funny thing is that in the Access FE I can create a pass through query > based on the view and join the pass through query to an odbc linked > table from Db2. > Any one who can shed light on this? > borge From jwcolby at colbyconsulting.com Mon Feb 7 11:05:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 07 Feb 2011 12:05:04 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> Message-ID: <4D502640.50309@colbyconsulting.com> > I sent a demo SQL dB to you off-list. Did you get it? AFAICT I did not get that offline. I am trying to build an access application which installs on a user's system somewhere out in the world. 1) They are not local to my machine, they come in to my SQL Server instance over Hamachi. 1a) They have no means to login directly to the server instance with a username / password. 2) They are going to run on a 2007 run-time. 3) The runtime is intentionally unhelpful. 4) In testing it just gives me a "there was an error executing the command" when I try to open a form. When I try to open the same thing under the full version Access it is asking for a logon as it attempts to open the first form. My guess is that the runtime is attempting to open this SQl Server login form and isn't allowed to by the runtime. Thus I have to set up the linked tables to just use a correct username / password. I think I can embed this directly into the sql connect string that is part of the tabledef.connect but was attempting to avoid that. That will be my next test just to ensure that it is in fact the issue here. John W. Colby www.ColbyConsulting.com On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > Hi JC > > I sent a demo SQL dB to you off-list. Did you get it? > It shows how to use Pass through queries > It has a sample to store your username and password and pass it in your SQL > connection requests > There is also the option to set the "Trusted Connection" to yes in the SQL > connections strings > > Many thanks > > Darren From markamatte at hotmail.com Mon Feb 7 13:27:19 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:27:19 +0000 Subject: [AccessD] Access Limits In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com> Message-ID: Hello All, Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. What is the limitation on linking a text/csv file? Thanks, Mark A. Matte From garykjos at gmail.com Mon Feb 7 13:34:58 2011 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 7 Feb 2011 13:34:58 -0600 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: I don't usually link to CSV files, but I often import them and get a similar error if the file is not formatted correctly with end of record CTRL/LF combinations. Here are Access 2007 limits. http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx No mention of a limit for linked files. GK On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From markamatte at hotmail.com Mon Feb 7 13:41:17 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 7 Feb 2011 19:41:17 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte > Date: Mon, 7 Feb 2011 13:34:58 -0600 > From: garykjos at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > I don't usually link to CSV files, but I often import them and get a > similar error if the file is not formatted correctly with end of > record CTRL/LF combinations. > > Here are Access 2007 limits. > > http://office.microsoft.com/en-us/access-help/access-2007-specifications-HA010030739.aspx > > No mention of a limit for linked files. > > GK > > On Mon, Feb 7, 2011 at 1:27 PM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > 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 gustav at cactus.dk Mon Feb 7 15:01:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 07 Feb 2011 22:01:26 +0100 Subject: [AccessD] Access Limits Message-ID: Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte From Lambert.Heenan at chartisinsurance.com Mon Feb 7 15:31:15 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Mon, 7 Feb 2011 16:31:15 -0500 Subject: [AccessD] Access Limits In-Reply-To: References: Message-ID: And for a text file editor with which to do the split you could do a lot worse that Notepad++ http://notepad-plus-plus.org/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 07, 2011 4:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access Limits Hi Mark Split the file in two and try to link each of these. If success, then the size of the original file is the source of your trouble. /gustav >>> markamatte at hotmail.com 07-02-2011 20:41 >>> This CSV is almost 4 gig...The error clearly states that the file could be"too large". I didn't see any limit referenced in the link you sent...or any other that I looked at. Anyone know what the limit is? Thanks, Mark A. Mattte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 7 16:37:54 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 7 Feb 2011 16:37:54 -0600 Subject: [AccessD] Order of Data on Access 2007 Chart References: <7AFFF381B3C24CC98BD1CEEC905B83E6@salvationomc4p><58225A873021488D947CD8EBB29A382E@nant> <323BEAFC099746F8A521A5D75BF6DCAE@DanWaters> Message-ID: All, I am just starting to experiment with charts in Access 2007. I have a really dumb question. How can I make the order of a chart the same as the order of its underlying query? I have set up a small test table, query, and report. The table only has two fields, Customer_Name and Customer_Amount The query sorts the data on Customer_Amount. The report is based on the query and shows the data sorted on Customer_Amount I added a chart with the "Insert Chart" button on the Access 2007 ribbon. I stepped through the chart wizard and picked the underlying query. I was expecting to see the generated chart to be sorted the same as the query and the report. Instead, it is sorted on Customer_Name. I can't seem to figure out what I am missing here. Thanks, Brad From pcs.accessd at gmail.com Mon Feb 7 18:25:02 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 10:25:02 +1000 Subject: [AccessD] [dba-SQLServer] Using view or sp from other Db on same Instance of Server In-Reply-To: <4D4FF06B.9010304@colbyconsulting.com> References: <4D4FF06B.9010304@colbyconsulting.com> Message-ID: SOLVED The same situation here. I am the owner of the databases.... I use SQL Server Authentication and am logged in using sa .... I don't think it is a security issue.... I replicated the issue. It turns out the intellisense only kicks in after you have exited the Management Studio and then logged in again 1. Create a view in Db2 using tables from Db1 - save as view1Db2 and run 2. Create a new view based on view1Db2 and copy the sql string 3. into a new SP in Db2 - sp1Db2 - save it. Execute. 4. Close the sp and open again as alter sp - You should see the intellisense is not working. 5. Close and reopen Management Studio. Open the sp as alter sp - You should now see the intellisense working ok. regards, borge On Mon, Feb 7, 2011 at 11:15 PM, jwcolby wrote: > It feels like a security issue. > > At my office I am the owner of all the databases. I have many (hundreds) > of databases and I have always used the db.dbo.table.view addressing to > create views, dynamic SQL etc. most of which references other databases. I > have a handful of (a dozen) databases which are what I call "data" > databases, which hold name / address lists. In the past I used SPs heavily > which operated on data from each other. > > I also use C# to execute code updating or appending records from one > database to another. the key to me is the dbname.dbo. syntax, as long as I > have that the queries work fine. Again though, all of the databases are > owned by the same owner so rights are not an issue. > > John W. Colby > www.ColbyConsulting.com > > > On 2/5/2011 3:14 AM, Borge Hansen wrote: > >> Hi all, >> I have created both a view and a SP based on tables in another Db >> (call it Db1) on the same instance of the SQL Server (2008). I created >> the view and SP in say Db2. A simple Select ... >> When I want to use either the View or the SP in a join with other >> tables in Db2 I am stuck. The SP containing the join to either view or >> SP based on Db1 tables and saved in Db2 will save Ok but not execute. >> Both the view and the SP that I am trying to join up will execute ok >> when running on their own. >> Funny thing is that in the Access FE I can create a pass through query >> based on the view and join the pass through query to an odbc linked >> table from Db2. >> Any one who can shed light on this? >> borge >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pcs.accessd at gmail.com Mon Feb 7 19:35:51 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Tue, 8 Feb 2011 11:35:51 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D502640.50309@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: John, We use a system / machine ODBC dsn with SQL Server Authentication Login ID and password We drop and relink tables on opening of the runtime using hardcoded Login ID and password Even if user can access properties of linked table, the Login ID and password will not be shown, see sample below: ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest I am curious about the hamachi, please provide link for more information and instrucitons for how to set up regards, borge On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > > I sent a demo SQL dB to you off-list. Did you get it? > > AFAICT I did not get that offline. > > I am trying to build an access application which installs on a user's > system somewhere out in the world. > > 1) They are not local to my machine, they come in to my SQL Server instance > over Hamachi. > 1a) They have no means to login directly to the server instance with a > username / password. > 2) They are going to run on a 2007 run-time. > 3) The runtime is intentionally unhelpful. > 4) In testing it just gives me a "there was an error executing the command" > when I try to open a form. When I try to open the same thing under the full > version Access it is asking for a logon as it attempts to open the first > form. > > My guess is that the runtime is attempting to open this SQl Server login > form and isn't allowed to by the runtime. Thus I have to set up the linked > tables to just use a correct username / password. I think I can embed this > directly into the sql connect string that is part of the tabledef.connect > but was attempting to avoid that. That will be my next test just to ensure > that it is in fact the issue here. > > > John W. Colby > www.ColbyConsulting.com > > On 1/31/2011 7:31 PM, Darren - Active Billing wrote: > >> Hi JC >> >> I sent a demo SQL dB to you off-list. Did you get it? >> It shows how to use Pass through queries >> It has a sample to store your username and password and pass it in your >> SQL >> connection requests >> There is also the option to set the "Trusted Connection" to yes in the SQL >> connections strings >> >> Many thanks >> >> Darren >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Feb 8 07:00:54 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 08:00:54 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: <4D513E86.5000401@colbyconsulting.com> Borge, I need your help. I will open my system to you, I will teach you about Hamachi and you can teach me about authentication in a run time world. I cannot give you the keys in AccessD though so contact me off line. Anyone else too who knows any part of this and wants to learn any part. We will keep all discussions other than actual user name / passwords on this list. Thanks, John W. Colby www.ColbyConsulting.com On 2/7/2011 8:35 PM, Borge Hansen wrote: > John, > > We use a system / machine ODBC dsn with SQL Server Authentication Login > ID and password > > We drop and relink tables on opening of the runtime using hardcoded Login ID > and password > > Even if user can access properties of linked table, the Login ID and > password will not be shown, see sample below: > > ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office > 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest > I am curious about the hamachi, please provide link for more information and > instrucitons for how to set up > > regards, > borge > > > > On Tue, Feb 8, 2011 at 3:05 AM, jwcolby wrote: > >>> I sent a demo SQL dB to you off-list. Did you get it? >> >> AFAICT I did not get that offline. >> >> I am trying to build an access application which installs on a user's >> system somewhere out in the world. >> >> 1) They are not local to my machine, they come in to my SQL Server instance >> over Hamachi. >> 1a) They have no means to login directly to the server instance with a >> username / password. >> 2) They are going to run on a 2007 run-time. >> 3) The runtime is intentionally unhelpful. >> 4) In testing it just gives me a "there was an error executing the command" >> when I try to open a form. When I try to open the same thing under the full >> version Access it is asking for a logon as it attempts to open the first >> form. >> >> My guess is that the runtime is attempting to open this SQl Server login >> form and isn't allowed to by the runtime. Thus I have to set up the linked >> tables to just use a correct username / password. I think I can embed this >> directly into the sql connect string that is part of the tabledef.connect >> but was attempting to avoid that. That will be my next test just to ensure >> that it is in fact the issue here. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >> >>> Hi JC >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>> It shows how to use Pass through queries >>> It has a sample to store your username and password and pass it in your >>> SQL >>> connection requests >>> There is also the option to set the "Trusted Connection" to yes in the SQL >>> connections strings >>> >>> Many thanks >>> >>> Darren >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From charlotte.foust at gmail.com Tue Feb 8 10:27:42 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Tue, 8 Feb 2011 08:27:42 -0800 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> Message-ID: This is just a SWAG, but would assume that the limit on a linked file would be the same as on a linked table or database. It may also depend on the database format you're using, mdb or acdb. Charlotte Foust On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > Hello All, > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > What is the limitation on linking a text/csv file? > > Thanks, > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Feb 8 11:12:30 2011 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 8 Feb 2011 17:12:30 +0000 Subject: [AccessD] Access Limits In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com>, <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au>, <4D502640.50309@colbyconsulting.com>, , Message-ID: I have, in the past, linked to 5 gig txt files using Access 03. This however is a CSV...not sure if that is the difference. I have not tried using an acdb. > Date: Tue, 8 Feb 2011 08:27:42 -0800 > From: charlotte.foust at gmail.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access Limits > > This is just a SWAG, but would assume that the limit on a linked file > would be the same as on a linked table or database. It may also > depend on the database format you're using, mdb or acdb. > > Charlotte Foust > > On Mon, Feb 7, 2011 at 11:27 AM, Mark A Matte wrote: > > > > Hello All, > > > > Using Access 07 I'm trying to LINK to a large(3.8gig) CSV file...I get an error that the file has no data or is too large. > > > > What is the limitation on linking a text/csv file? > > > > Thanks, > > > > Mark A. Matte > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 13:30:10 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 13:30:10 -0600 Subject: [AccessD] From a reader In-Reply-To: <013601cbc413$698b9850$3ca2c8f0$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 accessd at shaw.ca Tue Feb 8 14:45:24 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 12:45:24 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> Message-ID: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 jwcolby at colbyconsulting.com Tue Feb 8 15:12:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 08 Feb 2011 16:12:15 -0500 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <4D51B1AF.6050204@colbyconsulting.com> > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > From accessd at shaw.ca Tue Feb 8 15:42:16 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 13:42:16 -0800 Subject: [AccessD] From a reader In-Reply-To: <4D51B1AF.6050204@colbyconsulting.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <4D51B1AF.6050204@colbyconsulting.com> Message-ID: <3B6F14CED7D7428DBCC6E90F3A8DDD78@creativesystemdesigns.com> Now you are talking... that should thin out the ranks considerable. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, February 08, 2011 1:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader > No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Likewise an access database and a database. ;) John W. Colby www.ColbyConsulting.com On 2/8/2011 3:45 PM, Jim Lawrence wrote: > No one should be able to build a web site with any tool until they can prove > they can build a commercial site with note-pad. ;-) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, February 08, 2011 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] From a reader > > The funny thing is, the reason Access gets such a bad name is that it > can be used by amateurs, and when that happens, you get clunky. > > A professional Access developer understands what an .mdb is. They > understand the inner-workings enough to optimize performance. > > This is the same reason so many 'clunky' web applications have been > made. > > How many Access pro's could tell you EXACTLY what Jet is doing when you > are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a > backend .mdb? Probably very few. How many could give you a conceptual > statement as to what is happening, like 'Jet is reading the index values > from the b/e .mdb, and then using that information to determine where to > start reading the table data'? Probably most. Yet how many 'amateurs' > have even a conceptual understanding? They don't need to, Access just > does things for them. > > Same problem with the web. There are a WIDE variety of tools available, > that let someone with little to no understanding of a > website/webserver/browser system throw a 'fully functioning' (<--- term > used very loosely) 'website' (<---also used very loosely) up into > production. It has been this way for a while. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, February 03, 2011 8:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > I just LOVE that word "Clunky" to describe a web app !! > > When everyone says how great the web is, I just point out all of the > "clunky" webapps I have to tolerate....from my bank, to my insurance > company, and on and on it goes. Then I get to a client site and have to > tolerate all of THEIR clunky webapps. They are slow, they don't respond, > they forget to validate, etc, etc., they don't integrate with windows, > they > don't cut-and-paste properly, and the list just goes on forever. > > I'm going for a long, long winternight's sleep. Someone wake me up when > all > clunky web apps have been upgraded to Web 2.0 standards. > > >> make it 'look' like an access combobox, and act like it, but what's >> happening in the background is clunky. First, .Net is creating >> javascript on the client side that is reacting to the 'OnClick' of the >> combobox (or index changed event), then it's sending all the current > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 8 18:21:06 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 8 Feb 2011 18:21:06 -0600 Subject: [AccessD] From a reader In-Reply-To: <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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 marksimms at verizon.net Tue Feb 8 20:48:26 2011 From: marksimms at verizon.net (Mark Simms) Date: Tue, 08 Feb 2011 21:48:26 -0500 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <004d01cbc803$d3fe0c10$7bfa2430$@net> > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. From accessd at shaw.ca Wed Feb 9 01:17:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 8 Feb 2011 23:17:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 9 04:23:09 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 11:23:09 +0100 Subject: [AccessD] From a reader Message-ID: Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. From shamil at smsconsulting.spb.ru Wed Feb 9 05:24:20 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 14:24:20 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From pcs.accessd at gmail.com Wed Feb 9 06:48:35 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Wed, 9 Feb 2011 22:48:35 +1000 Subject: [AccessD] [dba-SQLServer] index-defrag-script-v4-0 Message-ID: Hi all, I thought I'd share this link to a very interesting script for defragmenting indexes in one table, one Db or all non system databases: http://sqlfool.com/2010/04/index-defrag-script-v4-0/ regards borge From DWUTKA at Marlow.com Wed Feb 9 09:27:42 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 09:27:42 -0600 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: What are you talking about Jim, there is such an app, I think you already mentioned it... it's called Notepad.... ;) I actually really like ASP.Net. It has some wonderful features. But someone coming from a non-web GUI, may not realize how ASP.Net is actually 'mimicking' the interface interactions they are used too, and it just gets ugly then. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 09, 2011 1:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim 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 Wed Feb 9 11:12:01 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:12:01 -0600 Subject: [AccessD] From a reader In-Reply-To: <004d01cbc803$d3fe0c10$7bfa2430$@net> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <004d01cbc803$d3fe0c10$7bfa2430$@net> Message-ID: I've gotten pretty familiar with ASP.Net, and I must say, for smaller sites, I would probably still just use classic asp. I can already hear a future me grumbling about it a decade from now... LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Tuesday, February 08, 2011 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader > What is the most striking issue, in my book, is just understanding the > concepts of what your 'tools' are really doing in the back ground. > ASP.Net is pretty slick, but boy, if you don't really understand what > it > is doing in the background, you are going to create one heck of a mess > if you aren't careful. > Amen. On top of that, 90% of current ASP sites are obsolete. Implementing the new ASP MVC framework requires a complete rewrite. -- 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 Wed Feb 9 11:17:12 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 9 Feb 2011 11:17:12 -0600 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Yes, exactly, although, that is a mixed post. A developer that doesn't optimize right (though he is using Access 2007, how many pros would use that version if they had a choice? ;) ), and a customer that doesn't want to listen to reason. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 4:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Drew And these - or trolls - are out there, watch out: http://www.codeproject.com/News.aspx?ntag=32765867337454104 /gustav >>> DWUTKA at marlow.com 08-02-2011 20:30 >>> The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. -- 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 accessd at shaw.ca Wed Feb 9 12:12:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 10:12:12 -0800 Subject: [AccessD] From a reader In-Reply-To: References: <201102010146.p111k4Bj022869@databaseadvisors.com> <013601cbc413$698b9850$3ca2c8f0$@net> <7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> Message-ID: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Feb 9 12:25:01 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 21:25:01 +0300 Subject: [AccessD] From a reader In-Reply-To: <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> References: <201102010146.p111k4Bj022869@databaseadvisors.com><013601cbc413$698b9850$3ca2c8f0$@net><7EC11F15178D451BBA2BD977CF2AFEA9@creativesystemdesigns.com> <21AE9F4E43514A3DA2E3AD1EB75BB868@creativesystemdesigns.com> Message-ID: Hi Jim -- Yes, I also wanted to give a try to Razor + jQuery. Have a look they say: <<< Razor is already part of DNN5.6.1. The engine itself can be hosted even in Non Web Applications. >>> http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/118/postid/4070 62/scope/posts/Default.aspx#407062 Hosting the Razor Engine for Templating in Non-Web Applications http://www.west-wind.com/weblog/posts/864461.aspx <<< Microsoft SQL Server Migration Assistant 2005 for Access" >>> I'm not sure which version of MS SQL Server Migration Assitant I used last time - that could have been Microsoft SQL Server Migration Assistant 2005 for Access as I used it for MS Access 2003 database somewhere year 2004 or later. And it worked smoothly AFAIKR. As for queries - simple ones get converted OK but something more complicated and especially with VBA functions - all that needed additional manual work. And Migration Assitant does try to export a lot of MS Access tables and their fields properties' as Extended properties of MS SQL tables and their columns - I'd better switch off that feature as it creates a lot of unneeded "garbage" extended properties - just IMO. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 21:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That looks like it could be a good product...I will have to investigate. I do not do 'bound' forms and have not done any serious work, except when supporting existing client applications, for going on 15 years. I am even getting away from desktop apps and moving everything to web/browser based. It's not a perfect solution but with a careful effort to produce a FE, very heavy with JavaScript (JQuery) coding, a nice MS SQL BE, ASP.Net to do the heavy lifting/roughing in the app (ASP.Net uses lots of JQuery code) and then using managed and mostly hand-written AJAX connections...it seems to be the best of all worlds. I will definitely check out this Razor IDE. Question: Has anyone used the MS product "Microsoft SQL Server Migration Assistant 2005 for Access" to migrate an existing MDB to a MS SQL BE. What type of preparation is necessary...any gottchas? Currently, I am moving two MS Access apps to a MS SQL BE and want to expedite the process of moving the data and queries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 09, 2011 3:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 9 ??????? 2011 ?. 10:18 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I think that ASP.Net is a great program but if you just let the system create the forms for you, there will be so much traffic going on behind the scene that a big commercial application would have to have a server farm just to run it. By default the program wants to create some kind of bound BE... total insanity as far I can see. (duck and cover) ;-) What has to be done after the FE is boiler-plated together, is you have to go in and remove hundreds of lines of extra code and hand code the data connection... I know just how you feel. I have written very few applications compared to the dozens I have had to come in and cleaned up. When the app is completed it just snaps in comparison...and this is not rocket science...if I can do it anyone can. I think if any mid-range commercial application (20K hits per hour) needs more that 2 servers to manage the operations BE; this is not counting data storage, backup, fail-over, security or mail boxes but the real BE manager, there is a problem with how the app was written. I have seen so many systems where the techs just keep throwing more hardware at a blotted web application when just cleaning up the code, would solve so many problems. One day there may be a web building program that can build super tight code but not today. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader Hmmmm, actually, I'd be leery of a 'commercial site' using strictly notepad. What about data? Now if you gave them a blank .mdb, or access to a blank SQL Database, and they created the entire data structure using T-SQL, ok, I'd be impressed! LOL What is the most striking issue, in my book, is just understanding the concepts of what your 'tools' are really doing in the back ground. ASP.Net is pretty slick, but boy, if you don't really understand what it is doing in the background, you are going to create one heck of a mess if you aren't careful. I just went through the wringer with a side project. It's a rebuild of a web form I built about 6 or 7 years ago. The original form was built using classic ASP, and VB 6 (for .dll's that did the business logic with the database). Way back then, I wasn't very good with javascript, so I was kind of limited on what I was doing from the client scripting side. They wanted several changes to that form, so we rebuilt it in .Net. There's a very long story as to what put me through the most hell, but one of the things that just boggled my mind was a 'custom' application they used on their end. They called it Passport. Basically, it was a custom 'user login' platform. In an NT environment, with multiple forests/domains, an 'intranet' in such an environment can't truly utilize Active Directory accounts. Not without some serious workarounds. So they built a 'system' to allow users to 'log in' to their Intranet, that controlled what applications various users could use. Now, technically, all my system needed to know was the username of the person currently 'logged in'. That allowed me to filter certain information for just that user. That's it. The rest of my application was strictly its own system, with its own database, etc. I had my project setup so that there were only 3 places where I needed to 'inject' this custom systems 'logged in user', which I was using a querystring value for development/placeholder purposes. Instead of just saying, ok, use this 'code', what I ended up having to do, is setup a complete server (virtual) with SQL Server, and VS 2010, so they could 'install' their system, because they wanted me to send them a 'complete' project. The reality was, I had to take my project, and make it a 'sub' project to theirs. What a pain. And what OVERKILL when it comes to that system. Lord have mercy, the complexity they threw into this thing...... it was the equivalent of using Airforce 1 as a golf cart..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, February 08, 2011 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader No one should be able to build a web site with any tool until they can prove they can build a commercial site with note-pad. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 08, 2011 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] From a reader The funny thing is, the reason Access gets such a bad name is that it can be used by amateurs, and when that happens, you get clunky. A professional Access developer understands what an .mdb is. They understand the inner-workings enough to optimize performance. This is the same reason so many 'clunky' web applications have been made. How many Access pro's could tell you EXACTLY what Jet is doing when you are running 'SELECT * FROM tblSomething WHERE ID=1' against a table in a backend .mdb? Probably very few. How many could give you a conceptual statement as to what is happening, like 'Jet is reading the index values from the b/e .mdb, and then using that information to determine where to start reading the table data'? Probably most. Yet how many 'amateurs' have even a conceptual understanding? They don't need to, Access just does things for them. Same problem with the web. There are a WIDE variety of tools available, that let someone with little to no understanding of a website/webserver/browser system throw a 'fully functioning' (<--- term used very loosely) 'website' (<---also used very loosely) up into production. It has been this way for a while. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, February 03, 2011 8:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I just LOVE that word "Clunky" to describe a web app !! When everyone says how great the web is, I just point out all of the "clunky" webapps I have to tolerate....from my bank, to my insurance company, and on and on it goes. Then I get to a client site and have to tolerate all of THEIR clunky webapps. They are slow, they don't respond, they forget to validate, etc, etc., they don't integrate with windows, they don't cut-and-paste properly, and the list just goes on forever. I'm going for a long, long winternight's sleep. Someone wake me up when all clunky web apps have been upgraded to Web 2.0 standards. > make it 'look' like an access combobox, and act like it, but what's > happening in the background is clunky. First, .Net is creating > javascript on the client side that is reacting to the 'OnClick' of the > combobox (or index changed event), then it's sending all the current From Gustav at cactus.dk Wed Feb 9 12:37:14 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 19:37:14 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Feb 9 13:16:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 9 Feb 2011 22:16:27 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From iggy at nanaimo.ark.com Wed Feb 9 11:42:59 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Wed, 09 Feb 2011 09:42:59 -0800 Subject: [AccessD] Hey Susan Message-ID: <4D52D223.6060108@nanaimo.ark.com> Hey Susan Can you give me an EMail off-line that I can use to discuss with you somethings about your book. I am down to about 4 choices, like to go with yours and Martin's but just have a couple of questions. Thanks Tony From gustav at cactus.dk Wed Feb 9 15:51:26 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 09 Feb 2011 22:51:26 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil OK, that's a good point. Slow response can kill you. But one trick around this is to have a fast main page and fast landing pages - then you have caught the attention and can go from there. That said, I think I'll go and download the Razor beta and have a closer look ... Could we ever settle at some level? You gave the answer: Yes, when we retire. Thanks for the links by the way. /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 20:16 >>> Hi Gustav -- I see as an issue relatively slow start-up of classical ASP.NET applications - for any large enough but not so big ASP.NET classical applications it takes about 5 seconds to start from idle state. It's not a big issue for Intranet applications, it's not a big issue for Internet applications with a stable registered users base but for web application with casual users or for web applications, which do not have a lot of users (yet) - that is an important issue (IMO) which makes PHP, Ruby, ... solutions more attractive for customers - it's not easy to prove them that ASP.NET based on .NET is so powerful platform that it allows to develop a lot of new functionality in short time etc. - they answer we don't need that (yet) - give us nice design and instant start-up. What can I say? And for Windows Phone 7 (/smart phones) that slow start-up issue can be a "killer" one - people will just not wait that long (3-5 seconds) for an application to start - they have so many other applications to use with instant start-up. Of course "keep-alive" trick can be used to partially solve this issue but "keep-alive" poses additional workload on computer systems, while a web application is in fact is in idle state - that is not a "Green Solution", bad influence on global ecosystem you know :) And as Jim noted ASP.NET default web form's generated HTML is quite clunky - compare that for usually clean HTML generated by PHP-based engines.... I'd expect Razor helps to solve both slow start-up issue (but not sure about that) and "clunky HTML" issue, and combined with jQuery and RIA (RESTFul) web services that should be "what doctor ordered"... And Razor and jQuery AFAIHH they do have Intellisense when used from within VS2010. Of course in current technology context I'd prefer to make a small but good enough fortune to get retired ASAP, and I'd use computers and programming just for pleasure in my spare time from hobbies, travelling etc. :) - that whole "n-th turnaround of implementations of quite old programming and database modeling/development concepts" on new hardware and on new (but looking so old inside) operating systems looks boring sometimes - at least I do not try to learn and master "all and every" new technology - I'm first trying to get comfortable with the most promising for quick and good enough fortune. (I can make a wrong selection of course.) Dreams, dreams... :) I'm just back from a flat skiing walk with my small son (from that area you've seen posted photos here of some time ago) - and that was his first skiing experience - I found I'd like much more to spend rest of my life helping him to learn and master skiing and other usual human beings hobbies than programming: he is quite good with computers already, he can make animation movies and many other things - I do hope he will not need to learn & apply programming that much as I did - and that he will have some other profession - he seems to have an engineering mind - that for sure - Discovery Channel and similar local TV broadcasts are his favorite ones... And I do love software development profession - you know that :) But it's so heavy I must admit, and there are so many things I have been already doing so many times on every software development evolution spiral I was "screwed by" :) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 9 ??????? 2011 ?. 21:37 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From accessd at shaw.ca Wed Feb 9 18:21:07 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 9 Feb 2011 16:21:07 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs.accessd at gmail.com Thu Feb 10 01:01:00 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Thu, 10 Feb 2011 17:01:00 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D513E86.5000401@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Thu Feb 10 07:00:08 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 08:00:08 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: Borge, <> On a 64 bit machine, there are two ODBC managers; one for 64 bit data sources and one for 32 bit. Your probably creating it as a 64 bit data source, which your 32 bit Office install will not be able to see. The 32 bit version is located in the %systemdrive%\Windows\SysWoW64 folder and must be directly invoked. Here's a MSKB article on it with some details: http://support.microsoft.com/kb/942976 Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Thursday, February 10, 2011 02:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL constant harassment Hi John, I hope the stuff I am sending you may be useful to you. I spent a bit of time today putting together a demo app that demonstrates: Linked tables to any SQL Server Db or mdb with temp tables are established only as part of running a startup procedure (form sfrmSplash) When closing the app the linked tables are removed (on close event of a hidden form called sfrmSystem; this form also prevents User from accidentally closing the app by clicking on the red cross of the Access Window - User will be alerted and have to confirm they really want to close the application). Consequently if a User is able to open the mde with the shift key down there will be no linked tables on display. It is assumed that when the app is opened via the startup Form the application is locked down as per your requirements (access window removed; application menu structure in place etc.) Linking to SQL Server is via ODBC systems DSN .... I created an ODBC systems DSN by clicking File - Get Extenal Data - Link Tables. On the resulting Link dialog window I choose Files of Type: ODBC Databases(). On the resulting Select Data Structure dialog window I click the Machine Data Source tab and then click New.... Following the prompts I create a native client SQL 10 dsn - I called it jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called JColby_DATA. I use SQL Server authentication. You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA and use SQL Server authentication. In the table called *usysSQLdb *(mdb and mde) change the parameters to fit your username and password. See below for more details. Your circumstances may dictate that these parameters are hardcoded. Some observations and questions here: I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - Office 2003 and SQL Server 2008 R2 On this laptop I can from the start menu get up the ODBC Data Source Administrator. The funny thing is* NONE *of the System DSN data sources I create from here are visible from the File - Get External Data - Link Tables route within Access.... That is very strange, as on other machines / laptop I could create the ODBC source data in the ODBC Data Source Administrator, and access from within Access when linking tables. Could someone throw light on what is missing here: The configuration is as described above. I thought that perhaps I needed to install MDAC2.8 or something like that, I even think I tried .... I'll have to re-visit that - at the time I just had to press on.... Ok, back to the demo app: The odbc connection string parameters are kept in a hidden sys table called *usysSQLdb* and required for setting up the linking of the sql tables of course. If you place the parameters hardcoded in the mde users should not be able to get to the user name and password. And even if the User should be able to look at the sql linked table in the table object window, the odbc connection string will not show the user name and password information. General question: Is there a way to keep using the usysSQLdb table and preventing the ordinary user from accessing the table?? Without using .mdw security?? The code also sets and clears the odbc connection string on any pass through queries you may have. I didn't create any pass through query - so you will have to check that out yourself. Some of the code for checking connection to the sql server and setting up the connection strings appears to be running twice.... Without having stepped through the code in fine detail, I think that is because we can have tables linked to several sql dbs - when the code is stepping through the linked sql table information in usysLinkTablesSQL and comes across a table from another SQL Db, the code will set up the connection string against this new SQL db from the usysSQLdb (or hardcoded if you choose to do so). Finally, there are procedures in place in the demo that are not necessary for the demo. Just disregard those.... I am sending you separately a zipped folder called JColby with JColby.mdb JColby.mde JColby_TEMP.mdb (mdb holding temporary tables - if required) JColby_DATA.BAK (SQL backup of Db) Regards, borge The connection parameters If the .mde is opening with the shift key down - there will be n On Tue, Feb 8, 2011 at 11:00 PM, jwcolby wrote: > Borge, > > I need your help. I will open my system to you, I will teach you about > Hamachi and you can teach me about authentication in a run time world. I > cannot give you the keys in AccessD though so contact me off line. Anyone > else too who knows any part of this and wants to learn any part. We will > keep all discussions other than actual user name / passwords on this list. > > Thanks, > > > John W. Colby > www.ColbyConsulting.com > > On 2/7/2011 8:35 PM, Borge Hansen wrote: > >> John, >> >> We use a system / machine ODBC dsn with SQL Server Authentication Login >> ID and password >> >> We drop and relink tables on opening of the runtime using hardcoded Login >> ID >> and password >> >> Even if user can access properties of linked table, the Login ID and >> password will not be shown, see sample below: >> >> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >> >> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=db o.tblBookingRequest >> I am curious about the hamachi, please provide link for more information >> and >> instrucitons for how to set up >> >> regards, >> borge >> >> >> >> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >> wrote: >> >> I sent a demo SQL dB to you off-list. Did you get it? >>>> >>> >>> AFAICT I did not get that offline. >>> >>> I am trying to build an access application which installs on a user's >>> system somewhere out in the world. >>> >>> 1) They are not local to my machine, they come in to my SQL Server >>> instance >>> over Hamachi. >>> 1a) They have no means to login directly to the server instance with a >>> username / password. >>> 2) They are going to run on a 2007 run-time. >>> 3) The runtime is intentionally unhelpful. >>> 4) In testing it just gives me a "there was an error executing the >>> command" >>> when I try to open a form. When I try to open the same thing under the >>> full >>> version Access it is asking for a logon as it attempts to open the first >>> form. >>> >>> My guess is that the runtime is attempting to open this SQl Server login >>> form and isn't allowed to by the runtime. Thus I have to set up the >>> linked >>> tables to just use a correct username / password. I think I can embed >>> this >>> directly into the sql connect string that is part of the tabledef.connect >>> but was attempting to avoid that. That will be my next test just to >>> ensure >>> that it is in fact the issue here. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com < >>> http://www.colbyconsulting.com/> >>> >>> >>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>> >>> Hi JC >>>> >>>> I sent a demo SQL dB to you off-list. Did you get it? >>>> It shows how to use Pass through queries >>>> It has a sample to store your username and password and pass it in your >>>> SQL >>>> connection requests >>>> There is also the option to set the "Trusted Connection" to yes in the >>>> SQL >>>> connections strings >>>> >>>> Many thanks >>>> >>>> Darren >>>> >>>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 07:57:40 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 07:57:40 -0600 Subject: [AccessD] Access 2007 FE/BE speed Message-ID: <4d53eed6.0431640a.4399.01f5@mx.google.com> Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim From jimdettman at verizon.net Thu Feb 10 08:52:01 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 10 Feb 2011 09:52:01 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53eed6.0431640a.4399.01f5@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Thu Feb 10 09:01:55 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 09:01:55 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> Message-ID: <4d53fde5.841dec0a.2285.05a6@mx.google.com> Good points Jim, thanks. I have turned off the sub-datasheets... I usually do that regardless of the version. I don't have any control over the servers, but I can ask them to make some changes. I never thought about the virus scan... I'll check into that. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 10, 2011 8:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed Jim, The exclusive point is in regards to the FE in a split design, which each user should have their own copy of, so opening exclusive would be appropriate. Some other items: 1. Make sure the new ACE DB's are not being virus scanned. Since the extension has changed, anti-virus sometimes kicks in. 2. Turn off the sub datasheets feature on all tables (FE and BE). Not specific to A2007, but often overlooked. 3. Turning off OPLOCKs on the server, but that impacts all apps and again, this applies to all versions (not A2007 specifically). 4. Often, A2007 is used in conjunction with a new server like 2008. It appears that the SMB 2.0 specification is giving some apps headaches, although this is not fully clear yet. Some report the app works better when the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage may vary. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 08:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 FE/BE speed Access 2007 is inherently slow on a network configured using FE/BE scenario. I have scoured several websites and spent a lot of hours, to see if A2007 can be modified to speed it up. Several "tips" were obscure on the sites and might only be mentioned in passing. Here is what I've found: 1) ensure there is a persistent connection to the BE. Code can be found on the FMS, Inc. site. 2) Ensure the BE location is in a "Trusted Location" in the FE. 3) Change record-level locking. I set the following: OLE/DDE timeout: 30 Refresh interval: 30 Number of update retries: 2 ODBC refresh interval: 120 Update retry interval: 250 4) Turn off unused user interface features such as: Show animations and Show Smart Tags on Datasheets In my somewhat limited test, my FE runs almost as fast as an integrated file. I know it's running little slower, but I can barely see the difference - I can live with it. The biggest improvement came when I did 2 and 3 above. I still haven't done or tested number 1 above. Other items that are recommended are: change the default open mode: Exclusive default record locking: Edited Record. However, I don't think these would work with a shared BE. I don't think there is a way to make these different for two separate files. Do you have any other ideas or words of wisdom or comments? Thanks, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 10:13:55 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:13:55 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d53fde5.841dec0a.2285.05a6@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> Message-ID: <4D540EC3.2020605@colbyconsulting.com> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless of the > version. > I don't have any control over the servers, but I can ask them to make some > changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which each > user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and again, > this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. It > appears that the SMB 2.0 specification is giving some apps headaches, > although this is not fully clear yet. Some report the app works better when > the server is forced to use SMB 1.0 protocol, others 2.0, so your mileage > may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if A2007 > can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned in > passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be found on > the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations and Show > Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an integrated > file. I know it's running little slower, but I can barely see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't think > there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Feb 10 10:21:07 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 11:21:07 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D541073.1040809@colbyconsulting.com> Borge, Wow, thanks! I am right in the middle of rush work but this is my immediate need for my unpaid work so I will work on it in the next day or so, probably after work tonight and the next few days. In the meantime, to start boning up on Hamachi we are going to make you your own network just for you to learn how Hamachi works. 1) Go to https://secure.logmein.com/login.asp 2) Click the "New user? Create an account" link *under* the login button. 3) Create yourself an account and log in to that account 4) Once logged in, click the "NETWORK" link in the left hand margin 5) Click the "Add Network" under the big bold My Networks in the center of the page 6) Fill in the network name and description. I suggest that you use a prefix such as BHNetworkName (BH for Borge Hansen) for your own personal networks. Not necessary but it may help you organize. 7) Fill in the network type radio button. You can come back here later to change the network type. for now select mesh. 8) Click the Continue button at the bottom of the page 9) On the next page you set up how new users can be added to the network and a password for joining the network. For now click "Accept automatically" and create a password. You can change these parameters later if you wish by revisiting this page. 10) Click continue. I believe that you will end up in a "finish dialog". I created a hub and spoke network for this discussion to get in to my machine so I am on a different path through the page now. So you should now have your first personal mesh network. A mesh network allows every computer to see every other computer, much like a router / switch does on a normal network on your system. At this instant you do not have any computer with Hamachi installed so you need to get Hamachi installed on at least two machines so that they can join this new network of yours and can talk to each other. There are two ways to do this. The first is to email an invitation to join your network from this HAMACHI web page you are on. This will send an email to an email address with a hotlink which when clicked will apply to join your network. Whether or not it is instantly allowed in to the network depends on whether you selected "immediate acceptance" as you were setting up the network. Let us use this method now so that you can see how it works and what the recipient will experience. 1) On the left hand side of the web page, click the "NETWORK" hotlink. You will be back at the page showing "MY NETWORKS" and you will now have a network, named whatever you chose as your name. 2) Click the "Add client" hot link next to the green +. Click Deploy LogMeIn Hamachi to a remote computer. Click continue. 3) The next page will be used to send an email. It allows you to send a hotlink which can be used N times within a time period to join the network. Select 1 time if it is just going to be used once, select N times if it is going to be shared by several individuals which are all in an office but you may not have all of their emails. 4) Select the network(s) that you want them to be allowed to join. 5) Click continue LogmeIn's web page apparently has a bug. For me it did *not* take me to the page I am about to describe I had to poke around and find the page. It is *supposed* to take to this next page where... 6) You will see a big bold "ADD CLIENT" in the middle of the page and three buttons - Copy, Send and test. Click the SEND button and (in my case) Thunderbird opens with a hotlink in the body for your user to click on. 7) Fill in the person that you want to join your network and the subject (join my network!) and send the email. I'll send more later. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jm.hwsn at gmail.com Thu Feb 10 10:32:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 10:32:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D540EC3.2020605@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> Message-ID: <4d541317.02f2960a.41cf.0c8e@mx.google.com> That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 df.waters at comcast.net Thu Feb 10 10:51:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 10 Feb 2011 10:51:25 -0600 Subject: [AccessD] Turn Off Sub Datasheets Message-ID: <599935DC8C564030B2932B984D19468A@utc.com> To quickly turn off the subdatasheets in tables, run this code in a module in your database where the actual tables are located. '--------------------------------------------------------------------------- -------- Private Sub TurnOffSubDataSheets() On Error GoTo EH '-- Before running this module, set Error Trapping to 'Break on Unhandled Errors' Dim dbs As DAO.Database Dim prop3270 As DAO.Property Dim propName As String, propVal As String, rplpropValue As String Dim propType As Integer, i As Integer Dim intCount As Integer Set dbs = CurrentDb propName = "SubDataSheetName" propType = 10 propVal = "[None]" rplpropValue = "[Auto]" intCount = 0 For i = 0 To dbs.TableDefs.Count - 1 If (dbs.TableDefs(i).Attributes And dbSystemObject) = 0 Then If dbs.TableDefs(i).Properties(propName).Value = rplpropValue Then dbs.TableDefs(i).Properties(propName).Value = propVal intCount = intCount + 1 End If End If XH: Next i dbs.Close MsgBox "The " & propName & " value for " & intCount & " non-system tables has been updated to " & propVal & "." Exit Sub EH: If Err.Number = 3270 Then Set prop3270 = dbs.TableDefs(i).CreateProperty(propName) prop3270.Type = propType prop3270.Value = propVal dbs.TableDefs(i).Properties.Append prop3270 intCount = intCount + 1 Resume XH Else MsgBox Err.Description & vbCrLf & vbCrLf & " in TurnOffSubDataSheets routine." End If End Sub From Lambert.Heenan at chartisinsurance.com Thu Feb 10 11:25:18 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 12:25:18 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4d541317.02f2960a.41cf.0c8e@mx.google.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > 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 jm.hwsn at gmail.com Thu Feb 10 12:21:21 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Thu, 10 Feb 2011 12:21:21 -0600 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4d542ca3.0348960a.0f48.1437@mx.google.com> Essentially, I'm doing this, I just didn't realize I was keeping the connection open. When the FE opens, the user fills in their credentials in the log in form. Once verified, the user's Personal ID populates a couple of fields in the bound log in form. When the next button is clicked the log in form is hidden throughout the entire session. The fields are used for various processes during the session. The fields are tied to all the forms and results that the database represents to the user. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 10, 2011 11:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Thursday, February 10, 2011 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 FE/BE speed That sounds more elegant than the code I found. Would you mind sharing the code? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. Voila, persistent connections. John W. Colby www.ColbyConsulting.com On 2/10/2011 10:01 AM, jm.hwsn wrote: > Good points Jim, thanks. > I have turned off the sub-datasheets... I usually do that regardless > of the version. > I don't have any control over the servers, but I can ask them to make > some changes. > I never thought about the virus scan... I'll check into that. > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Thursday, February 10, 2011 8:52 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Jim, > > The exclusive point is in regards to the FE in a split design, which > each user should have their own copy of, so opening exclusive would be > appropriate. > > Some other items: > > 1. Make sure the new ACE DB's are not being virus scanned. Since the > extension has changed, anti-virus sometimes kicks in. > > 2. Turn off the sub datasheets feature on all tables (FE and BE). Not > specific to A2007, but often overlooked. > > 3. Turning off OPLOCKs on the server, but that impacts all apps and > again, this applies to all versions (not A2007 specifically). > > 4. Often, A2007 is used in conjunction with a new server like 2008. > It appears that the SMB 2.0 specification is giving some apps > headaches, although this is not fully clear yet. Some report the app > works better when the server is forced to use SMB 1.0 protocol, others > 2.0, so your mileage may vary. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 08:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access 2007 FE/BE speed > > Access 2007 is inherently slow on a network configured using FE/BE scenario. > > I have scoured several websites and spent a lot of hours, to see if > A2007 can be modified to speed it up. > > Several "tips" were obscure on the sites and might only be mentioned > in passing. > > Here is what I've found: > > 1) ensure there is a persistent connection to the BE. Code can be > found on the FMS, Inc. site. > > 2) Ensure the BE location is in a "Trusted Location" in the FE. > > 3) Change record-level locking. I set the following: > > OLE/DDE timeout: 30 > > Refresh interval: 30 > > Number of update retries: 2 > > ODBC refresh interval: 120 > > Update retry interval: 250 > > 4) Turn off unused user interface features such as: Show animations > and Show Smart Tags on Datasheets > > > > In my somewhat limited test, my FE runs almost as fast as an > integrated file. I know it's running little slower, but I can barely > see the difference > - I can live with it. The biggest improvement came when I did 2 and 3 > above. I still haven't done or tested number 1 above. > > > > Other items that are recommended are: > > change the default open mode: Exclusive > > default record locking: Edited Record. > > However, I don't think these would work with a shared BE. I don't > think there is a way to make these different for two separate files. > > > > Do you have any other ideas or words of wisdom or comments? > > Thanks, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 10 12:59:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 10 Feb 2011 13:59:31 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> Message-ID: <4D543593.1050307@colbyconsulting.com> But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, which >> each user should have their own copy of, so opening exclusive would be >> appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). Not >> specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, others >> 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and 3 >> above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> 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 shamil at smsconsulting.spb.ru Thu Feb 10 13:01:10 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 10 Feb 2011 22:01:10 +0300 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From Lambert.Heenan at chartisinsurance.com Thu Feb 10 13:23:27 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 10 Feb 2011 14:23:27 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D543593.1050307@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: Ya got me there John. What do you mean by "for the FE that is the application"? I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. So again, what did you mean by "for the FE that is the application"? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 10, 2011 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed But that opens a persistent connection *for that fe* but not for the FE that is the application. John W. Colby www.ColbyConsulting.com On 2/10/2011 12:25 PM, Heenan, Lambert wrote: > I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. > > That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Thursday, February 10, 2011 11:32 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access 2007 FE/BE speed > > That sounds more elegant than the code I found. > Would you mind sharing the code? > Thanks, > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. > > I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. > > I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. > > Voila, persistent connections. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 10:01 AM, jm.hwsn wrote: >> Good points Jim, thanks. >> I have turned off the sub-datasheets... I usually do that regardless >> of the version. >> I don't have any control over the servers, but I can ask them to make >> some changes. >> I never thought about the virus scan... I'll check into that. >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Dettman >> Sent: Thursday, February 10, 2011 8:52 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Jim, >> >> The exclusive point is in regards to the FE in a split design, >> which each user should have their own copy of, so opening exclusive >> would be appropriate. >> >> Some other items: >> >> 1. Make sure the new ACE DB's are not being virus scanned. Since the >> extension has changed, anti-virus sometimes kicks in. >> >> 2. Turn off the sub datasheets feature on all tables (FE and BE). >> Not specific to A2007, but often overlooked. >> >> 3. Turning off OPLOCKs on the server, but that impacts all apps and >> again, this applies to all versions (not A2007 specifically). >> >> 4. Often, A2007 is used in conjunction with a new server like 2008. >> It appears that the SMB 2.0 specification is giving some apps >> headaches, although this is not fully clear yet. Some report the app >> works better when the server is forced to use SMB 1.0 protocol, >> others 2.0, so your mileage may vary. >> >> Jim. >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 08:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Access 2007 FE/BE speed >> >> Access 2007 is inherently slow on a network configured using FE/BE > scenario. >> >> I have scoured several websites and spent a lot of hours, to see if >> A2007 can be modified to speed it up. >> >> Several "tips" were obscure on the sites and might only be mentioned >> in passing. >> >> Here is what I've found: >> >> 1) ensure there is a persistent connection to the BE. Code can be >> found on the FMS, Inc. site. >> >> 2) Ensure the BE location is in a "Trusted Location" in the FE. >> >> 3) Change record-level locking. I set the following: >> >> OLE/DDE timeout: 30 >> >> Refresh interval: 30 >> >> Number of update retries: 2 >> >> ODBC refresh interval: 120 >> >> Update retry interval: 250 >> >> 4) Turn off unused user interface features such as: Show animations >> and Show Smart Tags on Datasheets >> >> >> >> In my somewhat limited test, my FE runs almost as fast as an >> integrated file. I know it's running little slower, but I can barely >> see the difference >> - I can live with it. The biggest improvement came when I did 2 and >> 3 above. I still haven't done or tested number 1 above. >> >> >> >> Other items that are recommended are: >> >> change the default open mode: Exclusive >> >> default record locking: Edited Record. >> >> However, I don't think these would work with a shared BE. I don't >> think there is a way to make these different for two separate files. >> >> >> >> Do you have any other ideas or words of wisdom or comments? >> >> Thanks, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 10 14:43:40 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 10 Feb 2011 12:43:40 -0800 Subject: [AccessD] From a reader In-Reply-To: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Feb 10 15:40:37 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 00:40:37 +0300 Subject: [AccessD] From a reader In-Reply-To: References: <7D45E42007104FA3B679B1D8D7C4A3C4@nant> Message-ID: Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 10, 2011 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Jim -- Thank you for your reference on 1st JavaScript Editor. I have question on jQuery, which I'm not familiar with at all, and RESTFul web services, which I know just a bit of: - assuming I have a RESTFul webservice performing whole CRUD set of operations for a given datamodel/database - would it be possible (in principle) to develop a pure HTML + jQuery web application with paged (datasheet) forms and usual view/add/edit,delete forms - are there any jQuery samples for such solutions? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 3:21 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader I write a lot of an application with VS but then go in and clean it up and speed it up with a healthy dose of manual intervention. :-) I love the programmers notepad as it produces nice structure, a bit of code validation and does not suck up 2GB of RAM and then there is a little JavaScript IDE called the 1st JavaScript Editor (It costs a few bucks but worth it) and finally Firefox's' Firebug. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 09, 2011 10:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim > And "Razor(CSHTML)" seems to be so much classical ASP like? Yes, but who - except for Drew - is writing code this way these days? I know you can create a complete site with Notepad only and lots of handwork but why? Don't you use Visual Studio or the like to create the in-line code? /gustav >>> shamil at smsconsulting.spb.ru 09-02-2011 12:24 >>> Hi Jim -- MS does realize the issues "bound" to classical ASP.NET view engine - they seems to have a solution: Introducing "Razor" - a new view engine for ASP.NET http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx It "works with any Text Editor: Razor doesn't require a specific tool and enables you to be productive in any plain old text editor (notepad works great)." :) Well, but this "Razor" view engine seems to be bound to ASP.NET MVC? No, wait.... "Razor" view engine and DNN - they say it will be part of DNN 5.6.2 http://www.dotnetnuke.com/Resources/Blogs/tabid/825/BlogID/15/Default.aspx So - ASP.NET - "Razor" View Engine - jQuery (it's supported by MS) ===================== Totals as a very advanced yet lightweight, fluid (flexible) Web development platform resulting in clean HTML "by definition"? (I'm kidding about the latter of course - one have to be very skilled in HTML and CSS to produce clean HTML IMO). And "Razor(CSHTML)" seems to be so much classical ASP like? Thank you. -- Shamil From davidmcafee at gmail.com Thu Feb 10 17:49:16 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 15:49:16 -0800 Subject: [AccessD] Forgot old Access 2.0 password Message-ID: A coworker needs to open an old A2.0 database. They don't have the password. Anyway to bypass the mdw? From rlister at actuarial-files.com Thu Feb 10 18:42:19 2011 From: rlister at actuarial-files.com (Ralf Lister) Date: Thu, 10 Feb 2011 20:42:19 -0400 Subject: [AccessD] Recordset Movements Message-ID: <002701cbc984$8b3edd10$a1bc9730$@com> Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From davidmcafee at gmail.com Thu Feb 10 18:51:48 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 10 Feb 2011 16:51:48 -0800 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg> <4D548323.80805@emilia-maxim.de> Message-ID: Sorry Emilia, I forgot Access-L replies directly to the person replying rather than the list. ---------- Forwarded message ---------- They got it. They found some pw cracker that unlocked the first few characters, which was enough for one of the old timers to remember. Thanks. :) 2011/2/10 Emilia Maxim David, > > > A coworker needs to open an old A2.0 database. >> >> They don't have the password. >> >> Anyway to bypass the mdw? >> > > If A2007 or A2010 "understand" A2.0, then they might have a chance. At > least I could import data from a secured A97 DB in A2007 without the mdw. > > -- > Regards > Emilia, TWIG > > Emilia Maxim > PC-SoftwareService > Stuttgart, Germany > From rockysmolin at bchacc.com Thu Feb 10 18:58:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 10 Feb 2011 16:58:47 -0800 Subject: [AccessD] Recordset Movements In-Reply-To: <002701cbc984$8b3edd10$a1bc9730$@com> References: <002701cbc984$8b3edd10$a1bc9730$@com> Message-ID: <4BFC9413470B4F6C82A793044BE2369A@HAL9005> I'd look at the record source for the report. But if you want to print a report of just that record, I would pass the PK of the record you want to print and in the _Open event set the report filter to just that record's PK. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ralf Lister Sent: Thursday, February 10, 2011 4:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Recordset Movements Hello, In a form I enter the name of a person, the person's gender and some other stuff and store the entire data in a recordset with AddNew/Update. Then I calculate the pension of this person and store it in the same set. Finally I go to a report and want to print out the person's name, his gender and his pension. Therefore the pointer of the recordset has to point at the last set, right? But I put this rst.MoveLast in the Report's Load-Event with no success at all. I always get the very first set in my report. But I want the last. What can I do to get what I want? Saludos Actuary Ralf Lister La Paz, Bolivia Registrado en ASFI No. Registro: Act.Mat. 001 NIT: 1016725022 Skype Name: ralf.martin.lister Tel.: 222 26 61, Cel. 70136531 rlister at actuarial-files.com www.actuarial-files.com Environment From stuart at lexacorp.com.pg Thu Feb 10 19:07:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 11 Feb 2011 11:07:56 +1000 Subject: [AccessD] Fwd: [ACCESS-L] Forgot old Access 2.0 password In-Reply-To: References: <6D.11.02961.E79745D4@lychee-msg>, , Message-ID: <4D548BEC.9197.49664D2@stuart.lexacorp.com.pg> No it doesn't. You email program does. :-) Obviously it is not honouring the "Reply-To" header in the message: Reply-To: Access Developers discussion and problem solving -- Stuart On 10 Feb 2011 at 16:51, David McAfee wrote: > Sorry Emilia, I forgot Access-L replies directly to the person > replying rather than the list. > > ---------- Forwarded message ---------- From Gustav at cactus.dk Fri Feb 11 02:03:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Feb 2011 09:03:48 +0100 Subject: [AccessD] From a reader Message-ID: Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim From paul.hartland at googlemail.com Fri Feb 11 04:03:56 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 11 Feb 2011 10:03:56 +0000 Subject: [AccessD] Upgrading SSRS 2005 To SSRS 2008 On Different Server Message-ID: To all, I am getting an error when reports have been migrated from SSRS 2005 to SSRS 2008 which is 'The data source 'Connection_To_AL_SQL_Genesis' cannot be found. The data source name in SSRS 2005 is actually 'Connection To AL-SQL Genesis', I looked around on the internet and apparently when migrating to SSRS 2008 any spaces and hyphens in the connection name get replaced by underscores. So I went back to the data sources on SSRS 2005 and renamed my connection to 'ConnectionToALSQLGenesis' and relinked all the reports to the new name. So then went through the process of backing up the reportserver and reportservertempdb databases, and the reporting services encryption keys, copied the files to the new server, restored the databases and the reporting services encryption keys. However I am still getting the same error message when trying to open the reports, if I go to the properties of the report and re-connect to the data source I still get the same error. However if I reload the report and connect to the data source then it works !!!!! Can anyone shed any light as to what I am doing wrong or what I need to do to resolve this, as I dont really want to reload all the reports and re-connect the data sources. -- Paul Hartland paul.hartland at googlemail.com From shamil at smsconsulting.spb.ru Fri Feb 11 08:35:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 11 Feb 2011 17:35:00 +0300 Subject: [AccessD] "Next Big Technology Things" - Was:RE: From a reader In-Reply-To: References: Message-ID: <94457126BED34D7FB1D867E8CEBE6F25@nant> Hi Gustav -- Thank you for your note. Shouldn't we move this discussion thread to dba-vb? No, I'm not fiddling with semi-boiled frameworks (I hope) - I'm mainly trying to find and "keep my eyes open" on the "next big" technology things I should be aware of. And Jim has already found them AFAIS. And that "next big technologies things" I'm (mainly) watching not yet using in my everyday real work or test projects should be generally accepted not only by MS shops... Then I will wait as much as possible until MS will make this "next big technology things" mature enough to use in real life applications. And that "next big technology things" for me currently are: - JavaScript (+jQuery) (yes, it's an "old thing" but MS started to support jQuery not that long ago); - RESTFul services + JSON (WCF + .NET Framework support them naturally); - HTML5 (IE9 and FireFox7(?)); - ADO.NET EF; - Silverlight and Windows Phone 7; - Azure. Did I miss some? <<< For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. >>> Yes, I'm "more than busy" here too... ...if I've had time to learn PERL (or Python or Ruby) I'd probably leave just: - 1) VS20xx + C# + MS Access + MS SQL - for desktop development; - 2) PERL (Python(?)/Ruby(?))+ HTML(5) + CSS + JavaScrip(jQuery)t + mySQL/MS SQL + a partnership with advanced web designer - for "classical" web development. - 3) Silverlight for Windows Pnone 7 development Thank you. -- Shamil P.S. BTW here is QCon short announcement for this year London conference - you can find that my "next big technology things" list is mainly covered by QCon list. And I will have to skip all the other subjects or just glance them - no time at all: - Enterprise Agile Transformation - Teams, Learning, Contracts & Collaboration; - Lean and Kanban: Learning Through Systems Thinking - Kanban at BBC, Design Thinking, Complexity vs. Lean, System Design; - Building Systems with REST - REST at BestBuy, Hypermedia-driven apps & integration, REST in .NET; - Architectures You've Always Wondered About - Facebook, Twitter, Netflix, OnLive, Visa; - When Things Break - "Let it crash", operating during Failure, Continuous Deployment, Unreliable Components; - Software Architecture Improvements - Architecture Refactoring, Re-engingeering, Erosion, Arch Assessment; - Design and Objects 2011 - OO at Facebook, OO at Government, Onion Design, OO in Java, Event-driven design; - Next-Generation Financial Technology- Futures Trade Flow, Millisecond latencies @ Linear Scale, CEP, and more; - NoSQL: Where and How - HBase at Facebook, MongoDB at Guardian.co.uk, and more NoSQL; - Software Craftsmanship - Craftsmanship & Engineering, Deliberate Practice, Leadership, Quality, Learning; - Functional Web - Node.JS, Haskell, Webmachine, Clojure, Conversational Web; - HTML5, the Platform - HTML5 at Facebook, WebSockets, Mobile, Secure browser OO; - Future of Java- JVM Languages, Java EE, Spring, OSGi, Virtualization & Cloud, GC; - .NET State of the Art - Azure, Rx Async Programming, Code Contracts, Reflection; - iOS4 and Android - Advanced iOS4 and Android stuff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 11 ??????? 2011 ?. 11:04 To: accessd at databaseadvisors.com Subject: Re: [AccessD] From a reader Hi Shamil and Jim Of course, as a developer, you have to be curious and look around searching to keep up and be familiar with the trends ... but aren't you two constantly beating yourself by fiddling with semi-boiled frameworks and techniques? For my part, just trying to get up to speed with Visual Studio 2010 and Silverlight and EF and (still) some Access and ... can keep me more than busy. /gustav >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> Hi Jim -- Thank you for your reply. AFAIK MS is one of the leaders in this area: WCF Data Services (OData - http://msdn.microsoft.com/en-us/data/bb931106) naturally support RESTFul web service concept and WCF Data Services can implement full CRUD set of operations for a given entity datamodel/database using ... yes, ADO.NET Entity Framework (http://msdn.microsoft.com/en-us/library/bb399572.aspx) - all that stuff can be generated within VS2010 AFAIU... And as I have just found there already exists "New JavaScript library for OData and beyond" (http://www.odata.org/blog/2011/2/9/new-javascript-library-for-odata-and-bey ond). The part which is missing is HTML forms generator for the HTML forms to be used together with jQuery and RESTFul Data Services (for the same entity datamodel/database) - I guess IronSpeed (http://www.ironspeed.com/) will make something like that soon... Then all the raw stuff can be generated for custom applications? And here you are with your advanced skills to customize raw stuff produced by code generators?... As for security - HTTPS doesn't solve this issue? I mean if a user gets authenticated by entering their user name/password (or use LiveID or ...) to setup an HTTPS session between browser and web server what could malicious users do here? Why VPN is considered more secure there? Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 ??????? 2011 ?. 23:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] From a reader Hi Shamil: That is a series of good question. I am basically unfamiliar with the RESTful concept as, interesting enough; it only caught my eye a couple of days ago. There are a number of people working a GNU JQuery RESTful API but there are not finished products out there yet, that I am aware of. For example: http://mike-hostetler.com/representational-state-transfer-rest-client-testin g JAVA and PHP programmers seem to be a little ahead in this right now. All the major site have FEs build: Facebook, Amazon, EBay etc. As for a full database interface with all the bells and whistles, a complete CRUD type thing; again no complete interface. I have my own ASP.Net/JQuery hybrids. Here is one of my sources for the initial base code but I have removed much of the BE direct processing and replaced that connection with JQuery AJAX calls: http://www.dotnetfunda.com/articles/article970-aspnet-gridview--jquery-tips- and-tricks--part-1-.aspx There are many other ones out there again using PHP/JAVA. For example: (watch the wrap..) http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud-interface/?u tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro DevTips+-+dev+related+notes+and+tutorials) ...and... http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter-iii/ Connecting to the database can always be a danger as if some outside and unauthorized individual gets access to your UI they may find a way to hack in. To that end most of my clients run their sites as only Intranet or through their company VPNs. Recently, I was shown an excellent open source GNU product at: http://openvpn.net/ (You do have to pay for multiple remote connections as it is needed to cover the company's hardware costs but it is really cheap.) This functions similar to Hamachi/Logmein and allows you as the senior tech to encompass a fixed set of users and offices anywhere in the world. I am currently working on a JQuery POS (header/detail/footer), in my spare time but it is turning out to be a huge time-consuming project, with many re-writes, as I continue to learn more, with hundreds (thousands?) of lines of code...all the heavy lifting, like the data management will be done at the back end. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 08:39:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 09:39:01 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> Message-ID: <4D554A05.6000002@colbyconsulting.com> Borg, I have the database restored and available. If you were to attach to the Hamachi network that you received the invite to join, you would see the SQL Server database at 5.203.167.79. If you were to use the Access Fe that you sent to me, and edit the DSN to use that IP as the server name, you would be connecting directly into the server on my VM. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:01 AM, Borge Hansen wrote: > Hi John, > > I hope the stuff I am sending you may be useful to you. > > I spent a bit of time today putting together a demo app that demonstrates: > > Linked tables to any SQL Server Db or mdb with temp tables are established > only as part of running a startup procedure (form sfrmSplash) > > When closing the app the linked tables are removed (on close event of a > hidden form called sfrmSystem; this form also prevents User from > accidentally closing the app by clicking on the red cross of the Access > Window - User will be alerted and have to confirm they really want to close > the application). > > Consequently if a User is able to open the mde with the shift key down there > will be no linked tables on display. > It is assumed that when the app is opened via the startup Form the > application is locked down as per your requirements (access window removed; > application menu structure in place etc.) > > Linking to SQL Server is via ODBC systems DSN .... > > I created an ODBC systems DSN by clicking File - Get Extenal Data - Link > Tables. > On the resulting Link dialog window I choose Files of Type: ODBC > Databases(). > On the resulting Select Data Structure dialog window I click the Machine > Data Source tab and then click New.... > > Following the prompts I create a native client SQL 10 dsn - I called it > jcnc10_JColby_DATA and set it up against a small SQL2008 Db I have called > JColby_DATA. > I use SQL Server authentication. > > You need to create your own ODBC machine DSN - call it jcnc10_JColby_DATA > and use SQL Server authentication. > In the table called *usysSQLdb *(mdb and mde) change the parameters to fit > your username and password. > See below for more details. Your circumstances may dictate that these > parameters are hardcoded. > > Some observations and questions here: > I am currently running a Windows7 Ultimate 64bit machine with 4Gb RAM - > Office 2003 and SQL Server 2008 R2 > On this laptop I can from the start menu get up the ODBC Data Source > Administrator. > The funny thing is* NONE *of the System DSN data sources I create from here > are visible from the File - Get External Data - Link Tables route within > Access.... > That is very strange, as on other machines / laptop I could create the ODBC > source data in the ODBC Data Source Administrator, and access from within > Access when linking tables. > Could someone throw light on what is missing here: > The configuration is as described above. I thought that perhaps I needed to > install MDAC2.8 or something like that, I even think I tried .... I'll have > to re-visit that - at the time I just had to press on.... > > Ok, back to the demo app: > The odbc connection string parameters are kept in a hidden sys table called > *usysSQLdb* > and required for setting up the linking of the sql tables of course. > If you place the parameters hardcoded in the mde users should not be able to > get to the user name and password. > And even if the User should be able to look at the sql linked table in the > table object window, the odbc connection string will not show the user name > and password information. > > General question: > Is there a way to keep using the usysSQLdb table and preventing the ordinary > user from accessing the table?? Without using .mdw security?? > > The code also sets and clears the odbc connection string on any pass through > queries you may have. > I didn't create any pass through query - so you will have to check that out > yourself. > > Some of the code for checking connection to the sql server and setting up > the connection strings appears to be running twice.... > Without having stepped through the code in fine detail, I think that is > because we can have tables linked to several sql dbs - when the code is > stepping through the linked sql table information in usysLinkTablesSQL and > comes across a table from another SQL Db, the code will set up the > connection string against this new SQL db from the usysSQLdb (or hardcoded > if you choose to do so). > > Finally, there are procedures in place in the demo that are not necessary > for the demo. > Just disregard those.... > > I am sending you separately a zipped folder called JColby with > JColby.mdb > JColby.mde > JColby_TEMP.mdb (mdb holding temporary tables - if required) > JColby_DATA.BAK (SQL backup of Db) > > Regards, > borge > > > > > > > > > The connection parameters > > If the .mde is opening with the shift key down - there will be n > > On Tue, Feb 8, 2011 at 11:00 PM, jwcolbywrote: > >> Borge, >> >> I need your help. I will open my system to you, I will teach you about >> Hamachi and you can teach me about authentication in a run time world. I >> cannot give you the keys in AccessD though so contact me off line. Anyone >> else too who knows any part of this and wants to learn any part. We will >> keep all discussions other than actual user name / passwords on this list. >> >> Thanks, >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/7/2011 8:35 PM, Borge Hansen wrote: >> >>> John, >>> >>> We use a system / machine ODBC dsn with SQL Server Authentication Login >>> ID and password >>> >>> We drop and relink tables on opening of the runtime using hardcoded Login >>> ID >>> and password >>> >>> Even if user can access properties of linked table, the Login ID and >>> password will not be shown, see sample below: >>> >>> ODBC;DSN=bhnc10_RMS_DATA;Description=RMS_DATA;APP=Microsoft Office >>> >>> 2003;WSID=GODWIT;DATABASE=RMS_DATA;QueryLog_On=Yes;StatsLog_On=Yes;;TABLE=dbo.tblBookingRequest >>> I am curious about the hamachi, please provide link for more information >>> and >>> instrucitons for how to set up >>> >>> regards, >>> borge >>> >>> >>> >>> On Tue, Feb 8, 2011 at 3:05 AM, jwcolby >>> wrote: >>> >>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> >>>> >>>> AFAICT I did not get that offline. >>>> >>>> I am trying to build an access application which installs on a user's >>>> system somewhere out in the world. >>>> >>>> 1) They are not local to my machine, they come in to my SQL Server >>>> instance >>>> over Hamachi. >>>> 1a) They have no means to login directly to the server instance with a >>>> username / password. >>>> 2) They are going to run on a 2007 run-time. >>>> 3) The runtime is intentionally unhelpful. >>>> 4) In testing it just gives me a "there was an error executing the >>>> command" >>>> when I try to open a form. When I try to open the same thing under the >>>> full >>>> version Access it is asking for a logon as it attempts to open the first >>>> form. >>>> >>>> My guess is that the runtime is attempting to open this SQl Server login >>>> form and isn't allowed to by the runtime. Thus I have to set up the >>>> linked >>>> tables to just use a correct username / password. I think I can embed >>>> this >>>> directly into the sql connect string that is part of the tabledef.connect >>>> but was attempting to avoid that. That will be my next test just to >>>> ensure >>>> that it is in fact the issue here. >>>> >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com< >>>> http://www.colbyconsulting.com/> >>>> >>>> >>>> On 1/31/2011 7:31 PM, Darren - Active Billing wrote: >>>> >>>> Hi JC >>>>> >>>>> I sent a demo SQL dB to you off-list. Did you get it? >>>>> It shows how to use Pass through queries >>>>> It has a sample to store your username and password and pass it in your >>>>> SQL >>>>> connection requests >>>>> There is also the option to set the "Trusted Connection" to yes in the >>>>> SQL >>>>> connections strings >>>>> >>>>> Many thanks >>>>> >>>>> Darren >>>>> >>>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From accessd at shaw.ca Fri Feb 11 08:57:32 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 06:57:32 -0800 Subject: [AccessD] From a reader In-Reply-To: References: Message-ID: Hi Gustav: In my type of business my clients are not necessarily Microsoft...in fact the largest clients are totally Linux/Unix based and their web systems and BE are build with PHP/Java, Oracle etc. I have my feet firmly in both worlds.? Many require mixed support with MS desktops and Linux/Unix Servers. In addition, clients are moving away from desktop?dependency?and are starting to request all web-based solutions. OTOH that does not mean I will not always be required to support MS products, it is just that they are far from the entire world in computing. Having limited time I have to guess at which products have staying power, work on the widest range of platforms, support who's paying the bills and devote?attention?to their application requirements first and foremost. ? Jim ?? ----- Original Message ----- From: Gustav Brock Date: Thursday, February 10, 2011 11:54 pm Subject: Re: [AccessD] From a reader To: accessd at databaseadvisors.com > Hi Shamil and Jim > > Of course, as a developer, you have to be curious and look > around searching to keep up and be familiar with the trends ... > but aren't you two constantly beating yourself by fiddling with > semi-boiled frameworks and techniques? For my part, just trying > to get up to speed with Visual Studio 2010 and Silverlight and > EF and (still) some Access and ... can keep me more than busy. > > /gustav > > > >>> shamil at smsconsulting.spb.ru 10-02-2011 22:40 >>> > Hi Jim -- > > Thank you for your reply. > > AFAIK MS is one of the leaders in this area: WCF Data Services > (OData - > http://msdn.microsoft.com/en-us/data/bb931106) naturally support > RESTFul web > service concept and WCF Data Services can implement full CRUD > set of > operations for a given entity datamodel/database using ... yes, > ADO.NETEntity Framework (http://msdn.microsoft.com/en- > us/library/bb399572.aspx) - > all that stuff can be generated within VS2010 AFAIU... > > And as I have just found there already exists "New JavaScript > library for > OData and beyond" > (http://www.odata.org/blog/2011/2/9/new-javascript-library-for- > odata-and-bey > ond). > > The part which is missing is HTML forms generator for the HTML > forms to be > used together with jQuery and RESTFul Data Services (for the > same entity > datamodel/database) - I guess IronSpeed > (http://www.ironspeed.com/) will > make something like that soon... > > Then all the raw stuff can be generated for custom applications? > And here > you are with your advanced skills to customize raw stuff > produced by code > generators?... > > As for security - HTTPS doesn't solve this issue? I mean if a > user gets > authenticated by entering their user name/password (or use > LiveID or ...) to > setup an HTTPS session between browser and web server what could > malicioususers do here? Why VPN is considered more secure there? > > > Thank you. > > -- > Shamil > ? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: 10 ??????? 2011 ?. 23:44 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] From a reader > > Hi Shamil: > > That is a series of good question. I am basically unfamiliar > with the > RESTful concept as, interesting enough; it only caught my eye a > couple of > days ago. There are a number of people working a GNU JQuery > RESTful API but > there are not finished products out there yet, that I am aware > of. For > example: > > http://mike-hostetler.com/representational-state-transfer-rest- > client-testin > g > > JAVA and PHP programmers seem to be a little ahead in this right > now. All > the major site have FEs build: Facebook, Amazon, EBay etc. > > As for a full database interface with all the bells and > whistles, a complete > CRUD type thing; again no complete interface. I have my own > ASP.Net/JQueryhybrids. Here is one of my sources for the initial > base code but I have > removed much of the BE direct processing and replaced that > connection with > JQuery AJAX calls: > > http://www.dotnetfunda.com/articles/article970-aspnet-gridview-- > jquery-tips- > and-tricks--part-1-.aspx > > There are many other ones out there again using PHP/JAVA. For example: > (watch the wrap..) > > http://www.prodevtips.com/2010/01/10/simple-jquery-and-php-crud- > interface/?u > tm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+prodevtips/LVkG+(Pro > DevTips+-+dev+related+notes+and+tutorials) > ...and... > http://www.ifadey.com/2010/07/crud-using-jquery-and-codeigniter- > iii/ > > Connecting to the database can always be a danger as if some > outside and > unauthorized individual gets access to your UI they may find a > way to hack > in. To that end most of my clients run their sites as only > Intranet or > through their company VPNs. Recently, I was shown an excellent > open source > GNU product at: http://openvpn.net/ (You do have to pay for > multiple remote > connections as it is needed to cover the company's hardware > costs but it is > really cheap.) > > This functions similar to Hamachi/Logmein and allows you as the > senior tech > to encompass a fixed set of users and offices anywhere in the world. > > I am currently working on a JQuery POS (header/detail/footer), > in my spare > time but it is turning out to be a huge time-consuming project, > with many > re-writes, as I continue to learn more, with hundreds > (thousands?) of lines > of code...all the heavy lifting, like the data management will > be done at > the back end. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Feb 11 10:11:51 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 11 Feb 2011 08:11:51 -0800 Subject: [AccessD] CDO Message-ID: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From jimdettman at verizon.net Fri Feb 11 10:33:33 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 11 Feb 2011 11:33:33 -0500 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <25B63CE25E444FB3B740A456DF3A93AC@XPS> Rocky, CDO is the "middle of the road" approach. It still relies on software being installed on the machine, but gives you support for things outside of simply sending mail. I don't believe it's dead yet. If all your doing is sending mail with attachments, then the simplest thing I've ever found is BLAT.EXE. It's a command line utility for sending mail directly via a SMTP server. You simply need the server address and possibly a login. Outside of that, that's it. However it also gives you the least amount of control over the process (you need to shell() to use it). The only thing you can run afoul of is a firewall that blocks the program the first time you use it (and the user needs to click allow or block). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 11 12:30:11 2011 From: john at winhaven.net (John Bartow) Date: Fri, 11 Feb 2011 12:30:11 -0600 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <001201cbca19$b8506220$28f12660$@winhaven.net> It's not dead yet but from all I've read it's going to be. They haven't updated it for 2007/2010. I'm doing a bunch of stuff with Outlook directly now and will send you some stuff when I get it finished. What I like to do is check if Outlook is being used and if so I use that otherwise I use DoCmd.SendObject (which has somewhat basic capabilities) Outlook Redemption has been updated for 2010. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 11 12:58:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 13:58:49 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> Message-ID: <4D5586E9.8090409@colbyconsulting.com> It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 10, 2011 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 FE/BE speed > > But that opens a persistent connection *for that fe* but not for the FE that is the application. > > John W. Colby > www.ColbyConsulting.com > > On 2/10/2011 12:25 PM, Heenan, Lambert wrote: >> I just open a recordset on a table in the back end (as it happens a dedicated dummy table that is not used for anything else) in a Front End application form that opens hidden when the application starts up. >> >> That form's main purpose in life is to check if any user is not doing anything for n minutes, and if so it automatically shuts the database down. In the Close event of the form the recordset object is closed. >> >> Lambert >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >> Sent: Thursday, February 10, 2011 11:32 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> That sounds more elegant than the code I found. >> Would you mind sharing the code? >> Thanks, >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Thursday, February 10, 2011 10:14 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access 2007 FE/BE speed >> >> Persistent connection means that you open one recordset to each BE and *hold it open*. What this does for you is gets the lock used to open the BE and holds it open. It is that first "connect to the BE file" lock that takes the longest and can be quite time consuming (5-10 seconds) if there are dozens of users in the BE. >> >> I have written code which opens a recordset and stores a pointer to the open recordset in a list. I actually use about a half dozen BEs at one client so I have a half dozen recordsets open and held open. >> >> I went so far as to create a tblHoldOpen with zero records in it, one tblHoldOpen in each BE. I then open a recordset SELECT * FROM tblHoldOpenXYZ. These are LINKED to tblHoldopen in BE XYZ. So i open each tblHoldOpen in each BE and then throw a pointer to that recordset into a collection where it stays open until the FE closes. >> >> Voila, persistent connections. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/10/2011 10:01 AM, jm.hwsn wrote: >>> Good points Jim, thanks. >>> I have turned off the sub-datasheets... I usually do that regardless >>> of the version. >>> I don't have any control over the servers, but I can ask them to make >>> some changes. >>> I never thought about the virus scan... I'll check into that. >>> Thanks, >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Dettman >>> Sent: Thursday, February 10, 2011 8:52 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] Access 2007 FE/BE speed >>> >>> Jim, >>> >>> The exclusive point is in regards to the FE in a split design, >>> which each user should have their own copy of, so opening exclusive >>> would be appropriate. >>> >>> Some other items: >>> >>> 1. Make sure the new ACE DB's are not being virus scanned. Since the >>> extension has changed, anti-virus sometimes kicks in. >>> >>> 2. Turn off the sub datasheets feature on all tables (FE and BE). >>> Not specific to A2007, but often overlooked. >>> >>> 3. Turning off OPLOCKs on the server, but that impacts all apps and >>> again, this applies to all versions (not A2007 specifically). >>> >>> 4. Often, A2007 is used in conjunction with a new server like 2008. >>> It appears that the SMB 2.0 specification is giving some apps >>> headaches, although this is not fully clear yet. Some report the app >>> works better when the server is forced to use SMB 1.0 protocol, >>> others 2.0, so your mileage may vary. >>> >>> Jim. >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn >>> Sent: Thursday, February 10, 2011 08:58 AM >>> To: 'Access Developers discussion and problem solving' >>> Subject: [AccessD] Access 2007 FE/BE speed >>> >>> Access 2007 is inherently slow on a network configured using FE/BE >> scenario. >>> >>> I have scoured several websites and spent a lot of hours, to see if >>> A2007 can be modified to speed it up. >>> >>> Several "tips" were obscure on the sites and might only be mentioned >>> in passing. >>> >>> Here is what I've found: >>> >>> 1) ensure there is a persistent connection to the BE. Code can be >>> found on the FMS, Inc. site. >>> >>> 2) Ensure the BE location is in a "Trusted Location" in the FE. >>> >>> 3) Change record-level locking. I set the following: >>> >>> OLE/DDE timeout: 30 >>> >>> Refresh interval: 30 >>> >>> Number of update retries: 2 >>> >>> ODBC refresh interval: 120 >>> >>> Update retry interval: 250 >>> >>> 4) Turn off unused user interface features such as: Show animations >>> and Show Smart Tags on Datasheets >>> >>> >>> >>> In my somewhat limited test, my FE runs almost as fast as an >>> integrated file. I know it's running little slower, but I can barely >>> see the difference >>> - I can live with it. The biggest improvement came when I did 2 and >>> 3 above. I still haven't done or tested number 1 above. >>> >>> >>> >>> Other items that are recommended are: >>> >>> change the default open mode: Exclusive >>> >>> default record locking: Edited Record. >>> >>> However, I don't think these would work with a shared BE. I don't >>> think there is a way to make these different for two separate files. >>> >>> >>> >>> Do you have any other ideas or words of wisdom or comments? >>> >>> Thanks, >>> >>> Jim >>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Fri Feb 11 13:37:15 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Fri, 11 Feb 2011 13:37:15 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at chartisinsurance.com Fri Feb 11 13:48:16 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 11 Feb 2011 14:48:16 -0500 Subject: [AccessD] Access 2007 FE/BE speed In-Reply-To: <4D5586E9.8090409@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Ah. I see. Another example of how email is amongst the poorest forms of communication homo sapiens has come up with so far. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, February 11, 2011 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 FE/BE speed It sounded as if you created a special FE to do something. On reread I understand that I just misread your post. John W. Colby www.ColbyConsulting.com On 2/10/2011 2:23 PM, Heenan, Lambert wrote: > Ya got me there John. > > What do you mean by "for the FE that is the application"? > > I'm talking about the usual split: a front end with forms and queries and all that other good stuff, along with a back end that has the data. > > In actual fact the front end is using more than one back end, but there is only one back end in the set that actually gets updated. The others are there for read only purposes. So I open a persistent connection to the back end that gets data written to it and just use the others when needed. > > So again, what did you mean by "for the FE that is the application"? > > Lambert > From steve at datamanagementsolutions.biz Fri Feb 11 13:53:23 2011 From: steve at datamanagementsolutions.biz (Steve Schapel) Date: Sat, 12 Feb 2011 08:53:23 +1300 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA From df.waters at comcast.net Fri Feb 11 15:43:10 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 11 Feb 2011 15:43:10 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <071A30A392964280AF4AC02A6FA9F97B@DanWaters> Hi Rocky, Another good choice is Outlook Security Evader from www.everythingaccess.com. It's $79 for a single developer. It consists of 4 classes that are added to your access file - no external .dll. I've two experiences with customer support - both resulted in an update in less than a day. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Friday, February 11, 2011 1:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Rocky, Last year, I did a fair amount of research and experimenting in the area of sending Emails automatically from a Microsoft Access application (at night, unattended). I went with a product from www.febooti.com. This product costs $50 - $90 depending on if it is for personal use or commercial use. The product seems to be very stable and is well documented. I have used their customer support a small number of times and I have been impressed with the responses that I have received. On their website, they have an example of how to "call" their product from Access. Overall, I have been very pleased with this product. In my research, I did look at Blat, but I had trouble with the install and when I submitted a question, I did not receive a reply. I thought that it was worth a little money to have good product support. This is a trial version available... easy to install and experiment with. Brad ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 11, 2011 10:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 11 18:07:58 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:07:58 +1000 Subject: [AccessD] CDO In-Reply-To: <0A3DD195162F4FD08D868A00C981475B@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> Message-ID: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Ambiguous question :-) Does "which would need to be registered" relate to "dlls or activex controls" or just to "activex controls" I generally go with Blat. A proper native code DLL which doesn't require registering. -- Stuart On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without > using dlls or activex controls which would need to be registered? > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:09:13 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:09:13 +1000 Subject: [AccessD] CDO In-Reply-To: <25B63CE25E444FB3B740A456DF3A93AC@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> Message-ID: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). From stuart at lexacorp.com.pg Fri Feb 11 18:11:21 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:11:21 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > From accessd at shaw.ca Fri Feb 11 18:15:58 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:15:58 -0800 Subject: [AccessD] CDO In-Reply-To: <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55CF5E.17798.4472EF@stuart.lexacorp.com.pg> Message-ID: Hi Stuart: I will back you up on that one. BLAT is so simple that if it does not work the last place you look is at BLAT. Start checking to see if your ports are open or whether you can actually see the web. It resided all in one directory, runs of a client or server without issues. The only trouble you may have is working at the CMD prompt and for some of you new boys it may be a real problem. ;-) Jim ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:08 pm Subject: Re: [AccessD] CDO To: Access Developers discussion and problem solving > Ambiguous question :-) > > Does "which would need to be registered" relate to "dlls or > activex controls" or just to > "activex controls" > > I generally? go with Blat.? A proper native code DLL > which doesn't require registering. > > -- > Stuart > > On 11 Feb 2011 at 8:11, Rocky Smolin wrote: > > > Is CDO dead or alive?? Use it or lose it?? > > > > What's the best way to automatically send emails from an app without > > using dlls or activex controls which would need to be > registered?? > > > > MTIA > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > Skype: rocky.smolin > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 11 18:19:44 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:19:44 -0800 Subject: [AccessD] CDO - RE: What's the best way to automatically send emails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Hi Brad: If you ever have a problem with BLAT just ask Stuart for a sample piece of code or in a real pinch ask me. ;-) Jim ? ----- Original Message ----- From: Stuart McLachlan Date: Friday, February 11, 2011 4:11 pm Subject: Re: [AccessD] CDO - RE: What's the best way to automatically send emails from an app To: Access Developers discussion and problem solving > What "install"???? Just stick the EXE or DLL > anywhere appropriate and call it.? There is no > need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a > reply.? I thought > > that it was worth a little money to have good product support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 11 18:22:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 12 Feb 2011 10:22:56 +1000 Subject: [AccessD] Sparkline like graphs in Acces Reports In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <4D55D2E0.28767.52276E@stuart.lexacorp.com.pg> A neat demo database with simple code for adding mini-graphs to each row of a report. http://blogs.office.com/b/microsoft-access/archive/2011/02/10/power-tip-add-sparkline-like- graphs-to-access-reports.aspx or http://goo.gl/Wd8lE -- Stuart From accessd at shaw.ca Fri Feb 11 18:34:52 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 16:34:52 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? From jwcolby at colbyconsulting.com Fri Feb 11 20:21:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 11 Feb 2011 21:21:46 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <4D55EEBA.9090206@colbyconsulting.com> Unfortunately the tied up my billions in Egyptian gas shares while they were at it. John W. Colby www.ColbyConsulting.com On 2/11/2011 7:34 PM, Jim Lawrence wrote: > Switzerland has frozen all Hosni Mubarak's accounts as of today. Actually they frozen all of the Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. > > He was little more than history as soon as that was done. > > Jim From pcs.accessd at gmail.com Sat Feb 12 00:09:15 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Sat, 12 Feb 2011 16:09:15 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: John, sending this a second time, as the first email was above the 20Kb limit ?!!? If keeping this conversation on Accessd, please continue under a new Subject Heading Borge > Alright ... done that ... assuming using SQL Server Authentication, so I > need user name and pword for your connection / ODBC systems DSN .... I tried > with same user name and password as I had kept in my configuration .... > didn't work .... > > I can ping your network... > I can chat to your network... > I can't connect to your sql server .... > Back to the drawing board... > > Regards > Borge > > > > On Sat, Feb 12, 2011 at 12:39 AM, jwcolby wrote: > >> Borg, >> >> I have the database restored and available. If you were to attach to the >> Hamachi network that you received the invite to join, you would see the SQL >> Server database at 5.203.167.79. >> >> If you were to use the Access Fe that you sent to me, and edit the DSN to >> use that IP as the server name, you would be connecting directly into the >> server on my VM. >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> From accessd at shaw.ca Sat Feb 12 00:36:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Feb 2011 22:36:02 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <4D55EEBA.9090206@colbyconsulting.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: I sorry to hear to hear that John. Jim ? ----- Original Message ----- From: jwcolby Date: Friday, February 11, 2011 6:22 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > Unfortunately the tied up my billions in Egyptian gas shares > while they were at it. > > John W. Colby > www.ColbyConsulting.com > > On 2/11/2011 7:34 PM, Jim Lawrence wrote: > >Switzerland has frozen all Hosni Mubarak's accounts as of > today. Actually they frozen all of the Egyptian accounts and > they are in excess of 3 billion dollars of the government's or > people's money. It always seems that these dictators keep huge > off-shore stashes of cash in case they ever have to make a run > for it. > > > >He was little more than history as soon as that was done. > > > >Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Feb 12 04:39:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:39:26 -0500 Subject: [AccessD] Hamachi progress In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D56635E.3010407@colbyconsulting.com> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... Sounds like progress though. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From jwcolby at colbyconsulting.com Sat Feb 12 04:40:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 12 Feb 2011 05:40:22 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <4D55EEBA.9090206@colbyconsulting.com> Message-ID: <4D566396.3090001@colbyconsulting.com> That's what happens when ya hobnob with dictators. Luckily I don't need the money right now. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:36 AM, Jim Lawrence wrote: > I sorry to hear to hear that John. > > Jim > > > > ----- Original Message ----- > From: jwcolby > Date: Friday, February 11, 2011 6:22 pm > Subject: Re: [AccessD] Frozen accounts > To: Access Developers discussion and problem solving > >> Unfortunately the tied up my billions in Egyptian gas shares >> while they were at it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/11/2011 7:34 PM, Jim Lawrence wrote: >>> Switzerland has frozen all Hosni Mubarak's accounts as of >> today. Actually they frozen all of the Egyptian accounts and >> they are in excess of 3 billion dollars of the government's or >> people's money. It always seems that these dictators keep huge >> off-shore stashes of cash in case they ever have to make a run >> for it. >>> >>> He was little more than history as soon as that was done. >>> >>> Jim >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From kost36 at otenet.gr Sat Feb 12 08:30:17 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Sat, 12 Feb 2011 16:30:17 +0200 Subject: [AccessD] Passing query "Between" date values into a form Message-ID: <0421405D459E470B8565306DFAE9289F@kost36> Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas From ab-mi at post3.tele.dk Sat Feb 12 13:14:58 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sat, 12 Feb 2011 20:14:58 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0421405D459E470B8565306DFAE9289F@kost36> References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Feb 12 14:27:21 2011 From: john at winhaven.net (John Bartow) Date: Sat, 12 Feb 2011 14:27:21 -0600 Subject: [AccessD] CDO In-Reply-To: <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> Message-ID: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> One of the issues I've run into using third party email apps/activex/dll in one Microsoft (government) network is that the security staff install spam blockers and such that do not allow anything to access the smtp server. They basically broke my application that had been installed there for 10 years and refused to adapt their security to allow it to work. Ignorance makes for paranoia and there's no getting around ignorant security staff. They are like gods to the unwitting administrative staff that have to make the final decisions. So I was basically forced into recoding an old iron horse app to utilize Outlook/Exchange and the user just has to click the irritating "allow for one hour" prompt when the first email is sent. It is no big deal to them just an item that needs to be explained. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Friday, February 11, 2011 1:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Ricky, You might consider Total Access Email from FMS http://www.fmsinc.com/MicrosoftAccess/Emails.asp For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but then that doesn't meet your "avoid ActiveX" criteria. Regards Steve -----Original Message----- From: Rocky Smolin Sent: Saturday, February 12, 2011 5:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CDO Is CDO dead or alive? Use it or lose it? What's the best way to automatically send emails from an app without using dlls or activex controls which would need to be registered? MTIA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Sat Feb 12 17:40:52 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Sat, 12 Feb 2011 17:40:52 -0600 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: Stuart, I probably should have said "getting Blat to work with Access" instead of just the word "install". This work was done almost a year ago and I don't remember all of the details (plus I have some brain damage from 32 years of COBOL, CICS, and DB2 :-) Anyway, as I recall, I spent several hours trying to get Blat to work with Access but ran into problems. I then did some research of other products and ended up buying Febooti. The two things that first sold me on Febooti were their very good online documentation and the fact that I was able to get it to work with Access very quickly. I may take another look at Blat for future projects. I have seen it mentioned by many people so I might experiment with it again, down the road. Thanks, Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Fri 2/11/2011 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- 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 jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <4D55D029.10440.478C77@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> Message-ID: <7E7BA0B951514023A3D06606F6C0C91F@XPS> Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:35:51 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:35:51 -0500 Subject: [AccessD] CDO In-Reply-To: <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <25B63CE25E444FB3B740A456DF3A93AC@XPS> <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg> Message-ID: <10132A1CB2B04D1892BBF1255F4A3620@XPS> Stuart, Yes, but the DLL (unless something has changed) is no where near as up to date as the command line EXE or as feature rich. But I still should have mentioned it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO It also comes as a DLL which you just call. -- Stuart On 11 Feb 2011 at 11:33, Jim Dettman wrote: > If all your doing is sending mail with attachments, then the > simplest > thing I've ever found is BLAT.EXE. It's a command line utility for > sending mail directly via a SMTP server. You simply need the server > address and possibly a login. Outside of that, that's it. However it > also gives you the least amount of control over the process (you need > to shell() to use it). -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Feb 13 05:37:29 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 06:37:29 -0500 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> Message-ID: <25F48DD1AA344148944DCC21BA26B24D@XPS> um...should this not be on the OT list? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 11, 2011 07:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Frozen accounts Switzerland has frozen all?Hosni Mubarak's accounts as of today. Actually they frozen all of the?Egyptian accounts and they are in excess of 3 billion dollars of the government's or people's money. It always seems that these dictators keep huge off-shore stashes of cash in case they ever have to make a run for it. He was little more than history as soon as that was done. Jim? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 13 06:51:07 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:51:07 +1000 Subject: [AccessD] CDO In-Reply-To: <10132A1CB2B04D1892BBF1255F4A3620@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> Message-ID: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 13 06:52:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 13 Feb 2011 22:52:56 +1000 Subject: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg>, <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <4D57D428.20786.598D18E@stuart.lexacorp.com.pg> That was always an option, not a requirement. All it did was store some standard switches such as server name in the Windows Registry so that you didn't need to include them in the command line each time. -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > I think he's talking about the little "install" that must be done > with > Blat itself the first time you use it. If memory serves though, I > believe their was a change with that where it was no longer required. > Been 4 or 5 years since I last used BLAT. > > I stick to vbSendMail now. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO - > RE: What's the best way to automatically sendemails from an app > > What "install"? Just stick the EXE or DLL anywhere appropriate and > call it. There is no need to install anything. > > -- > Stuart > > On 11 Feb 2011 at 13:37, Brad Marks wrote: > > > my research, I did look at Blat, but I had trouble with the install > > and when I submitted a question, I did not receive a reply. I > > thought that it was worth a little money to have good product > > support. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Feb 13 08:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 06:37:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <25F48DD1AA344148944DCC21BA26B24D@XPS> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: Yes, it should have. Power outage fried my email server and I was still getting use to the web interface, :-) Jim ----- Original Message ----- From: Jim Dettman Date: Sunday, February 13, 2011 3:37 am Subject: Re: [AccessD] Frozen accounts To: 'Access Developers discussion and problem solving' > > ? um...should this not be on the OT list? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > LawrenceSent: Friday, February 11, 2011 07:35 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Frozen accounts > > Switzerland has frozen all?Hosni Mubarak's accounts as of today. > Actuallythey frozen all of the?Egyptian accounts and they are in > excess of 3 billion > dollars of the government's or people's money. It always seems > that these > dictators keep huge off-shore stashes of cash in case they ever > have to make > a run for it. > > He was little more than history as soon as that was done. > > 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 df.waters at comcast.net Sun Feb 13 09:38:02 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 09:38:02 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automatically sendemails from an app) In-Reply-To: <7E7BA0B951514023A3D06606F6C0C91F@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:16:48 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:16:48 -0500 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg> <7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 13 10:18:39 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 13 Feb 2011 11:18:39 -0500 Subject: [AccessD] CDO In-Reply-To: <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55CFA9.27480.4597DC@stuart.lexacorp.com.pg>, <10132A1CB2B04D1892BBF1255F4A3620@XPS> <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg> Message-ID: <906488E01DC842EABF7450742C2F4F50@XPS> Stuart, <> Very nice to know, thanks. The DLL is native correct? Doesn't need to be registered? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO That was true until about 2003, Up til then, the DLL was developed by Toby Korn and was stuck at ver 1.94 while the EXE continued to develop. Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same features. They come bundled in the same 148KB zip file available at http://www.blat.net/ -- Stuart On 13 Feb 2011 at 6:35, Jim Dettman wrote: > Stuart, > > Yes, but the DLL (unless something has changed) is no where near as > up to > date as the command line EXE or as feature rich. But I still should > have mentioned it. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > It also comes as a DLL which you just call. > > -- > Stuart > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > If all your doing is sending mail with attachments, then the > > simplest > > thing I've ever found is BLAT.EXE. It's a command line utility for > > sending mail directly via a SMTP server. You simply need the server > > address and possibly a login. Outside of that, that's it. However > > it also gives you the least amount of control over the process (you > > need to shell() to use it). > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 13:00:34 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 13:00:34 -0600 Subject: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D55D029.10440.478C77@stuart.lexacorp.com.pg><7E7BA0B951514023A3D06606F6C0C91F@XPS> Message-ID: <3B7E0BE15AA74052B488AFA84DD7F51B@DanWaters> No problem - saves me all kinds of grief! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 10:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) Hey thanks for posting that! Very helpful. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 10:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] vbSendMail (was: What's the best way to automaticallysendemails from an app) I use vbSendMail as well at two customers. One thing that does need to be done is that each user's PC needs to have two files registered - vbSendMail.dll and mswinsck.ocx. To do this go into Run and enter: regsvr32 "C:\SendMailFiles\vbSendMail.dll" or whatever the full path actually is. But over time, the IT folks forget to do this, or for some reason a PC 'loses' the registration for these two files, and email stops working. Doing some internet research, I came up with the following code to do the registration programmatically each time a user opens the app. You'll need a table to store the path to the folder which contains the two files. Put the following in a standard module call it during the opening sequence. Note: I have not tested this on a PC that doesn't have a System32 folder. '---------------------------- Option Compare Database Option Explicit Private Declare Function Register_vbSendMail Lib "vbSendMail.dll" Alias "DllRegisterServer" () As Long Private Declare Function Register_mswinsck Lib "mswinsck.ocx" Alias "DllRegisterServer" () As Long Private Declare Function UnRegister_vbSendMail Lib "vbSendMail.dll" Alias "DllUnregisterServer" () As Long Private Declare Function UnRegister_mswinsck Lib "mswinsck.ocx" Alias "DllUnregisterServer" () As Long Public Function RegisterSMTPFiles() 1 On Error GoTo EH '-- The two files vbSendMail.dll and mswinsck.ocx are used to provide support for SMTP Email. _ The reference to vbSendMail.dll must already exist in the FE files(s). _ So, if the files don't exist, they will be copied, and then will be registered, and the references will work. '-- This actual file registration occurs on each opening I don't know how to detect if a file _ is registered or not. However, registering on each opening shouldn't hurt. If the two files already exist, _ then the two files will be re-registered. Dim retCode As Long Dim stgPrompt As String Dim fso As FileSystemObject Dim stgmsWinSckPath As String Dim stgvbSendMailPath As String Dim stgSMTPFilesSourcePath As String Dim rst As DAO.Recordset Dim stg As String Dim stgFolderName As String 2 stg = "SELECT ServerSystemFolder FROM tblParameters" 3 Set rst = DBEngine(0)(0).OpenRecordset(stg, dbOpenSnapshot) 4 stgSMTPFilesSourcePath = rst("ServerSystemFolder") & "\SMTPFiles" 5 rst.Close 6 Set rst = Nothing 7 Set fso = CreateObject("Scripting.FileSystemObject") '-- Windows 7 w/o System32 folder 8 If fso.FolderExists("C:\Windows\SysWOW64") Then 9 stgmsWinSckPath = "C:\Windows\SysWOW64\mswinsck.ocx" 10 stgvbSendMailPath = "C:\Windows\SysWOW64\vbSendMail.dll" 11 stgFolderName = "C:\Windows\SysWOW64" 12 End If '-- Windows XP and Windows 7 with System32 folder 13 If fso.FolderExists("C:\Windows\System32") Then 14 stgmsWinSckPath = "C:\Windows\System32\mswinsck.ocx" 15 stgvbSendMailPath = "C:\Windows\System32\vbSendMail.dll" 16 stgFolderName = "C:\Windows\System32" 17 End If '-- Windows Previous to XP 18 If fso.FolderExists("C:\WINNT\System32") Then 19 stgmsWinSckPath = "C:\WINNT\System32\mswinsck.ocx" 20 stgvbSendMailPath = "C:\WINNT\System32\vbSendMail.dll" 21 stgFolderName = "C:\WINNT\System32" 22 End If '-- Copy files if needed 23 If fso.FileExists(stgmsWinSckPath) = False Then 24 fso.CopyFile stgSMTPFilesSourcePath & "\mswinsck.ocx", stgmsWinSckPath 25 End If 26 If fso.FileExists(stgvbSendMailPath) = False Then 27 fso.CopyFile stgSMTPFilesSourcePath & "\vbSendMail.dll", stgvbSendMailPath 28 End If 29 Set fso = Nothing 30 retCode = Register_vbSendMail() ' MsgBox "vbSendMail.dll Registered" 31 retCode = Register_mswinsck() ' MsgBox "mswinsck.dll Registered" 32 Exit Function EH: 33 stgPrompt = "vbSendMail registration could not be completed." _ & vbNewLine & vbNewLine _ & "The files 'mswinsck.ocx' and/or 'vbSendMail.dll' appear to be missing from the " & stgFolderName & " folder." _ & vbNewLine & vbNewLine _ & "Contact your System Owner. This application will now Quit. (Line " & Erl & ")" 34 MsgBox stgPrompt, vbCritical + vbOKOnly, "Missing Reference" 35 DoCmd.Quit End Function '---------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, February 13, 2011 5:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app Stuart, I think he's talking about the little "install" that must be done with Blat itself the first time you use it. If memory serves though, I believe their was a change with that where it was no longer required. Been 4 or 5 years since I last used BLAT. I stick to vbSendMail now. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 11, 2011 07:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO - RE: What's the best way to automatically sendemails from an app What "install"? Just stick the EXE or DLL anywhere appropriate and call it. There is no need to install anything. -- Stuart On 11 Feb 2011 at 13:37, Brad Marks wrote: > my research, I did look at Blat, but I had trouble with the install > and when I submitted a question, I did not receive a reply. I thought > that it was worth a little money to have good product support. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Sun Feb 13 14:02:04 2011 From: delam at zyterra.com (Debbie) Date: Sun, 13 Feb 2011 14:02:04 -0600 Subject: [AccessD] Frozen accounts In-Reply-To: References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> Message-ID: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> It did send on Friday after all. Debbie Sent from my iPhone On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > Yes, it should have. Power outage fried my email server and I was > still getting use to the web interface, :-) > > Jim > > > > ----- Original Message ----- > From: Jim Dettman > Date: Sunday, February 13, 2011 3:37 am > Subject: Re: [AccessD] Frozen accounts > To: 'Access Developers discussion and problem solving' > > >> >> um...should this not be on the OT list? >> >> Jim. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> LawrenceSent: Friday, February 11, 2011 07:35 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Frozen accounts >> >> Switzerland has frozen all Hosni Mubarak's accounts as of today. >> Actuallythey frozen all of the Egyptian accounts and they are in >> excess of 3 billion >> dollars of the government's or people's money. It always seems >> that these >> dictators keep huge off-shore stashes of cash in case they ever >> have to make >> a run for it. >> >> He was little more than history as soon as that was done. >> >> 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 accessd at shaw.ca Sun Feb 13 16:06:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 13 Feb 2011 14:06:46 -0800 Subject: [AccessD] Frozen accounts In-Reply-To: <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> References: <4d53eed6.0431640a.4399.01f5@mx.google.com> <4d53fde5.841dec0a.2285.05a6@mx.google.com> <4D540EC3.2020605@colbyconsulting.com> <4d541317.02f2960a.41cf.0c8e@mx.google.com> <4D543593.1050307@colbyconsulting.com> <4D5586E9.8090409@colbyconsulting.com> <25F48DD1AA344148944DCC21BA26B24D@XPS> <904B54BE-E77E-464A-9AD9-2CE83484C296@zyterra.com> Message-ID: Thank you Debbie ;-) Jim ? ----- Original Message ----- From: Debbie Date: Sunday, February 13, 2011 12:02 pm Subject: Re: [AccessD] Frozen accounts To: Access Developers discussion and problem solving > It did send on Friday after all. > > Debbie > > Sent from my iPhone > > On Feb 13, 2011, at 8:37 AM, Jim Lawrence wrote: > > >Yes, it should have. Power outage fried my email server and I > was still getting use to the web interface, :-) > > > >Jim > > > > > > > >----- Original Message ----- > >From: Jim Dettman > >Date: Sunday, February 13, 2011 3:37 am > >Subject: Re: [AccessD] Frozen accounts > >To: 'Access Developers discussion and problem solving' > > > >> > >>? um...should this not be on the OT list? > >> > >>Jim. > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >>LawrenceSent: Friday, February 11, 2011 07:35 PM > >>To: Access Developers discussion and problem solving > >>Subject: [AccessD] Frozen accounts > >> > >>Switzerland has frozen all Hosni Mubarak's accounts as of today. > >>Actuallythey frozen all of the Egyptian accounts and they are in > >>excess of 3 billion > >>dollars of the government's or people's money. It always seems > >>that these > >>dictators keep huge off-shore stashes of cash in case they ever > >>have to make > >>a run for it. > >> > >>He was little more than history as soon as that was done. > >> > >>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 stuart at lexacorp.com.pg Sun Feb 13 16:57:53 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 14 Feb 2011 08:57:53 +1000 Subject: [AccessD] CDO In-Reply-To: <906488E01DC842EABF7450742C2F4F50@XPS> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> Message-ID: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ab-mi at post3.tele.dk Sun Feb 13 17:19:17 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:19:17 +0100 Subject: [AccessD] List politeness - responding to answers Message-ID: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger From ab-mi at post3.tele.dk Sun Feb 13 17:21:59 2011 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 14 Feb 2011 00:21:59 +0100 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: References: <0421405D459E470B8565306DFAE9289F@kost36> Message-ID: <0608D47FEF8E463095A0A9281128D242@abpc> Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Sun Feb 13 17:27:14 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 14 Feb 2011 10:27:14 +1100 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> References: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <201102132328.p1DNSUE5007261@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ agreed, and there is value for all other list members as then we know if the provided solution was suitable or not. and it is also good manners. regards Darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond [ab-mi at post3.tele.dk] Sent: Monday, 14 February 2011 10:19 AM To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I?ve seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn?t getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rockysmolin at bchacc.com Sun Feb 13 17:45:13 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 15:45:13 -0800 Subject: [AccessD] CDO In-Reply-To: <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Sun Feb 13 20:11:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 13 Feb 2011 20:11:41 -0600 Subject: [AccessD] CDO In-Reply-To: <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> <97730524ECCC4F12B97A52F009DC6CF6@HAL9005> Message-ID: <7B20395DF450419295B8AB132547D842@DanWaters> Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 13 22:03:23 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 13 Feb 2011 20:03:23 -0800 Subject: [AccessD] CDO In-Reply-To: <7B20395DF450419295B8AB132547D842@DanWaters> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS><4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg><97730524ECCC4F12B97A52F009DC6CF6@HAL9005> <7B20395DF450419295B8AB132547D842@DanWaters> Message-ID: <3FAC692F0DA243D5B773D32C140A525C@HAL9005> Thanks. Will forward and get and answer. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 13, 2011 6:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Rocky When they upgraded to W7 they probably did not re-register the two files that need to be registered for vbSendMail to work. See my post from this afternoon about automatically registering both of those files. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, February 13, 2011 5:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] CDO Thanks for all the replies regarding this issue of sending emails from Access. I have forwarded all of your responses to the client and will get back with the decision. I implemented vbSendMail to send reports to clients overnight for him last year and it worked well until they did some upgrade - to W7 I think. Then it stopped and we haven't figured out why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 13, 2011 2:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CDO Yes, native - no registration required. -- Stuart On 13 Feb 2011 at 11:18, Jim Dettman wrote: > Stuart, > > < features. >> > > Very nice to know, thanks. The DLL is native correct? Doesn't need > to be > registered? > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 13, 2011 07:51 AM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > That was true until about 2003, Up til then, the DLL was developed by > Toby Korn and was stuck at ver 1.94 while the EXE continued to > develop. > > Both EXE and DLL are now version 2.6.2 ( Feb 2007) and have the same > features. > > They come bundled in the same 148KB zip file available at > http://www.blat.net/ > > -- > Stuart > > > On 13 Feb 2011 at 6:35, Jim Dettman wrote: > > > Stuart, > > > > Yes, but the DLL (unless something has changed) is no where near > > as up to > > date as the command line EXE or as feature rich. But I still should > > have mentioned it. > > > > Jim. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Friday, February 11, 2011 07:09 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] CDO > > > > It also comes as a DLL which you just call. > > > > -- > > Stuart > > > > On 11 Feb 2011 at 11:33, Jim Dettman wrote: > > > > > If all your doing is sending mail with attachments, then the > > > simplest > > > thing I've ever found is BLAT.EXE. It's a command line utility > > > for sending mail directly via a SMTP server. You simply need the > > > server address and possibly a login. Outside of that, that's it. > > > However it also gives you the least amount of control over the > > > process (you need to shell() to use it). > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Feb 14 01:18:41 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 14 Feb 2011 07:18:41 -0000 Subject: [AccessD] List politeness - responding to answers In-Reply-To: <0F8BD7692AB44F10B32BD340D22E5211@abpc> Message-ID: <393E113EBEE44CD0AA0C36FF5C0A5047@MINSTER> Fair point Asger. I hope everyone takes heed. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: 13 February 2011 23:19 To: 'Discussion concerning MS SQL Server'; 'Access Developers discussion and problem solving' Subject: [AccessD] List politeness - responding to answers Often enough I've seen people on this list responding questions and never getting any response as to whether their answer was helpful or not. This is not polite. And it sure isn't getting our understanding and knowledge any further. Questioners are often busy and need quick and dirty answers. But remind that the persons responding you also are also busy. And also remind that we have a great amount of lurkers who would like to know the right answer or at least know if the answer provided is sound. So please be polite and respond to answers. Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Feb 14 01:27:23 2011 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 14 Feb 2011 09:27:23 +0200 Subject: [AccessD] Passing query "Between" date values into a form In-Reply-To: <0608D47FEF8E463095A0A9281128D242@abpc> References: <0421405D459E470B8565306DFAE9289F@kost36> <0608D47FEF8E463095A0A9281128D242@abpc> Message-ID: <80B8AC08C4BC48ED980667CB0BA6AC4F@kost36> Yes Asger it works perfect thank's a lot /kostas -----Original Message----- From: Asger Blond Sent: Monday, February 14, 2011 1:21 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Passing query "Between" date values into a form Was this response of any help to you? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Asger Blond Sendt: 12. februar 2011 20:15 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Passing query "Between" date values into a form In your query add two named columns to the grid Start: [Date from:] End: [Date to:] Then in your form add a textbox with ControlSource: =[Start] & " " & [End] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 12. februar 2011 15:30 Til: AccessD at databaseadvisors.com Emne: [AccessD] Passing query "Between" date values into a form Hi all, The form I built is based on a query, and in that query I use the simple "Between [Date from:] And [Date to:]". What I want to do is to pass the values of the two parameters into a textbox in the heading of the form so if the dates parameters are e.g. 01/01/2011 and 31/01/2011 , to be displayed them in the form.. I try ControlSource: =[Date from:] & ? ? &[Date to:] It works in a report but not in the form Many thank?s /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 5871 (20110213) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com From Gustav at cactus.dk Mon Feb 14 05:07:06 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 12:07:06 +0100 Subject: [AccessD] Cleaning data by an Open Source tool Message-ID: Hi all Sometimes it has been discussed how to clean data. Here is an Open Source offer with a reputation of high quality: DataCleaner 2.0 http://datacleaner.eobjects.org/newsitem/datacleaner-2.0-released I haven't used it myself so I cannot give any further advice. /gustav From jm.hwsn at gmail.com Mon Feb 14 10:18:59 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 10:18:59 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem Message-ID: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim From Gustav at cactus.dk Mon Feb 14 10:31:48 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 17:31:48 +0100 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Message-ID: Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav From rockysmolin at bchacc.com Mon Feb 14 10:54:59 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 08:54:59 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <440D6D582182440E9ADD781199DD31B0@HAL9005> For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 11:23:34 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 11:23:34 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <4d596519.0120970a.351c.7690@mx.google.com> Thanks, Rocky. I'll try it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jengross at gte.net Mon Feb 14 11:58:29 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 09:58:29 -0800 Subject: [AccessD] Force Closing the FE Message-ID: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross From charlotte.foust at gmail.com Mon Feb 14 12:14:09 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 10:14:09 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in an > attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, delete or > modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale (1-10 or > 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as well as > change the text of the question. > > We are currently going through usability testing. ?The entire "class" is > around 500 students. ?The class has a 3 digit identifier that is used in the > questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The question > form has a sub form that shows an example of the question as it would look > on the questionnaire. ?When a search is done using a list box for combo box > the sub form changes to reflect the text and ?type of question. ?When the > question type changes the sub form updates the sample. For example a > question might change from a fill-in question to combo box self-lookup > question OR a question might change from a 4 pt multiple choice to a 4 pt > Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in some > questions. ?The researcher puts this identifier within the question to > personalize it for the students. ?I have a button on the question form that > is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need > to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after the > "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while the > dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys to > ensure that "Match" is set to "Any Part of Field" and that the cursor goes > to "Find What" field. ?That works, however, occasionally the Num Lock key is > turned off. ?I understand that I could use: Application.SetOption "Default > Find/Replace Behavior",1 - but that would set it for all users. ?Is there > some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > Jim > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Mon Feb 14 12:18:04 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:18:04 -0600 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <4d5971de.8772ec0a.699a.295a@mx.google.com> I did this once! The user's were not happy. Some opened the database and kept it open all day. Sometimes it would be idle for hours. Instead, what I did was to force close the FE's whenever I needed to do maintenance. I placed a small text file in the directory where the BE resided. To force everyone out, I changed the extension from txt to something else. Code in the frontend would periodically look for the file and if the extension was changed the user would get a pop-up form indicating the database would shut down in 1 minute for maintenance. I found the code and method here: http://support.microsoft.com/kb/304408 It worked for me. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 11:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 14 12:23:25 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 10:23:25 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> References: <002701cbcc70$c9bbc280$1201a8c0@Schroeder> Message-ID: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Mon Feb 14 12:25:39 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Mon, 14 Feb 2011 12:25:39 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> Message-ID: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> I do not use acCmdFindNext at all. But yes, the user can modify any instance of the value being searched. When the button is clicked, the Find Dialog appears. The user has the option to search for any text they need to find. They also have the option to do a global change (e.g. 68W to 92C) within all the question texts. Anytime the "Find Next" button in the Find Dialog box is pressed the sub form does not update. The user can use the dialog box for anything within the question text. Thanks, Charlotte Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 12:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem I'm not sure I understand #1. You find an instance of the value and allow the researcher to modify that instance? Then use acCmdFindNext and it doesn't work? Charlotte Foust On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. ?The entire "class" > is around 500 students. ?The class has a 3 digit identifier that is > used in the questions. ?There are about 350 questions in the current questionnaire. > > > > The researcher uses a Question ?form to modify the questions. ?The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. ?When a search is done using a > list box for combo box the sub form changes to reflect the text and ? > type of question. ?When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. ?The researcher puts this identifier within the > question to personalize it for the students. ?I have a button on the > question form that is used to search for questions with the 3 digit class identifier. ?I use: > DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will > need to change periodically and this allows the researcher to do a "replace all" > after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function ?(update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. ?That works, however, occasionally > the Num Lock key is turned off. ?I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. ?Is there some way to achieve the same functionality without using SendKeys? > > > > Thanks in advance, > > 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 jengross at gte.net Mon Feb 14 12:35:13 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 10:35:13 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> Message-ID: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 13:22:09 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 19:22:09 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:08:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:08:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:20:04 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:20:04 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> <004001cbcc8b$57fa8f30$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:28:19 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:28:19 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> Message-ID: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 15:44:02 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 21:44:02 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From jengross at gte.net Mon Feb 14 15:52:33 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 13:52:33 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> Message-ID: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 16:09:58 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 17:09:58 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <000301cbcc93$ece41320$c6ac3960$@com> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bruce.kovacs at urs.com Mon Feb 14 16:10:22 2011 From: bruce.kovacs at urs.com (Kovacs, Bruce) Date: Mon, 14 Feb 2011 22:10:22 +0000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004201cbcc91$7d2ff410$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045D0C@exmb106> <004201cbcc91$7d2ff410$1201a8c0@Schroeder> Message-ID: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. From stuart at lexacorp.com.pg Mon Feb 14 16:21:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 08:21:23 +1000 Subject: [AccessD] Force Closing the FE In-Reply-To: <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106>, <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> Message-ID: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > From jengross at gte.net Mon Feb 14 16:25:21 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:25:21 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045D56@exmb106> Message-ID: <004701cbcc96$1253e5c0$1201a8c0@Schroeder> Would you be willing to share the database log table and code? If so, please send to jennifer at yourdatabasics.com. I know I have stuff that I've been using since the mid-90's that I can't do without and use in every database as well. I don't even think about their existence or how they work - they just do what I need them to do. Thanks again, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I can't take credit for the database log. I was given that table and code in 1996, according to the copyright notice that is still in the module, and have used them in all of my databases since. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Jennifer, The following is what I use: Sub IdleTimeDetected(ExpiredMinutes) gIdleTimeExceeded = True DoCmd.Close acForm, "aSwitchboardMain" Application.Quit acQuitSaveNone End Sub The gIdleTimeExceeded global variable is used in the Unload event of my form aSwitchboardMain to append the word "IDLE" to one of the fields in my database entry/exit log table. That gives me an indication of who the "offenders" are. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Thanks Bruce. The code has a MsgBox that requires a user action. One of the things I want to get around is users leaving the FE open when they leave for the day. I want it to shut down. Do you see a problem with me bypassing the MsgBox and just doing an Application.Quit once the timer has expired? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Typically 60 minutes. There was one jobsite with a challenged server where I went down to 20 minutes, as I recall (this site also had 3 different FEs hitting the one BE, and with 15 to 20 concurrent users). And I had a very stable office application with only 3 users where I went up to 120 minutes. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 04:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE What do you typically set the timer interval for? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE This is someone else's code - can't remember where I got it but it works. You open a form hidden and it runs in the background with a timer event with this code: Option Compare Database Option Explicit Private Sub Form_Timer() ' IDLEMINUTES determines how much idle time to wait for before ' running the IdleTimeDetected subroutine. Static PrevControlName As String Static PrevFormName As String Static ExpiredTime Dim ActiveFormName As String Dim ActiveControlName As String Dim ExpiredMinutes Dim IDLEMINUTES As Double IDLEMINUTES = 10 On Error Resume Next ' Get the active form and control name. ActiveFormName = Screen.ActiveForm.Name If Err Then ActiveFormName = "No Active Form" Err = 0 End If ActiveControlName = Screen.ActiveControl.Name If Err Then ActiveControlName = "No Active Control" Err = 0 End If ' Record the current active names and reset ExpiredTime if: ' 1. They have not been recorded yet (code is running ' for the first time). ' 2. The previous names are different than the current ones ' (the user has done something different during the timer ' interval). If (PrevControlName = "") Or (PrevFormName = "") _ Or (ActiveFormName <> PrevFormName) _ Or (ActiveControlName <> PrevControlName) Then PrevControlName = ActiveControlName PrevFormName = ActiveFormName ExpiredTime = 0 Else ' ...otherwise the user was idle during the time interval, so ' increment the total expired time. ExpiredTime = ExpiredTime + Me.TimerInterval End If ' Does the total expired time exceed the IDLEMINUTES? ExpiredMinutes = (ExpiredTime / 1000) / 60 If ExpiredMinutes >= IDLEMINUTES Then ' ...if so, then reset the expired time to zero... ExpiredTime = 0 ' ...and call the IdleTimeDetected subroutine. IdleTimeDetected ExpiredMinutes End If End Sub Sub IdleTimeDetected(ExpiredMinutes) Dim Msg As String Msg = "No user activity detected in the last " Msg = Msg & ExpiredMinutes & " minute(s)!" MsgBox Msg, vbCritical Application.Quit End Sub HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 9:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contain URS Corporation confidential information that may be proprietary or privileged. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 14 16:26:43 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:26:43 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <004801cbcc96$42d4bcb0$1201a8c0@Schroeder> Great idea Stuart. I am going to work this into the code that Bruce sent. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Feb 14 16:40:44 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Feb 2011 23:40:44 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jengross at gte.net Mon Feb 14 16:48:45 2011 From: jengross at gte.net (Jennifer Gross) Date: Mon, 14 Feb 2011 14:48:45 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: Message-ID: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 14 17:20:12 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 14 Feb 2011 18:20:12 -0500 Subject: [AccessD] Force Closing the FE In-Reply-To: <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> References: <0EC5949F3F5847DF8D33DABC48DD4B90@HAL9005> <002c01cbcc75$ebf0fc30$1201a8c0@Schroeder> <063361B1D72A4943BEDCA54BB3C4992E045BB1@exmb106> Message-ID: <125E4D47A358498F9B5FF73038C34406@XPS> FYI, the code Rocky has is from here: http://support.microsoft.com/?id=210297 also, there may be interest in passive shutdown which is a middle of the road approach between doing nothing and forcing users out (it prevents new users from connecting to the DB but doesn't kick existing users out): http://msdn.microsoft.com/en-us/library/aa164890(v=office.10).aspx You may want to combine that with a idle timeout and/or forced exit. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, Bruce Sent: Monday, February 14, 2011 02:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE I have used this same code in all of my databases since at least 07-Feb-02, and have had no problems. I tied it to a table where I can set the idle time limit depending on the particular installation location. Likewise, I did not keep track of where I got this. Bruce Kovacs URS Corporation SGT, LLC 7207 IBM Drive Charlotte, NC 28262 Office: 704-805-2131 Fax: 704-805-2875 Cell: 704-200-8802 bruce.kovacs at urs.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 01:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Perfect. Thanks Rocky and Jim - you've given me options to look at. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 10:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE <> From charlotte.foust at gmail.com Mon Feb 14 17:53:47 2011 From: charlotte.foust at gmail.com (Charlotte Foust) Date: Mon, 14 Feb 2011 15:53:47 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5973a5.2945960a.3ce5.73a7@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the option > to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the sub > form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and allow > the researcher to modify that instance? ?Then use acCmdFindNext and it > doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students in >> an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form updates >> the sample. For example a question might change from a fill-in >> question to combo box self-lookup question OR a question might change >> from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) while >> the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use SendKeys >> to ensure that "Match" is set to "Any Part of Field" and that the >> cursor goes to "Find What" field. ?That works, however, occasionally >> the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 darren at activebilling.com.au Mon Feb 14 17:55:59 2011 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 15 Feb 2011 10:55:59 +1100 Subject: [AccessD] Force Closing the FE Message-ID: <014401cbcca2$bb920bb0$32b62310$@activebilling.com.au> Hi Jennifer Further to what has been said here - I also keep a track of what users have logged in and from what machine and when It has allowed me to prove or dis-prove a lot of things said by clients I also capture the logout/logoff times too and am able to do a simple average time logged in once I have these details Good for reports and again - for proving or dis-proving some claims If for whatever reason there was an ungraceful shutdown of the app or the local machine the log off times and machines are not recorded So this then allows me to see all the orphaned logons without a corresponding logoff. This info is useful as well My approach to this 'Everybody Out!' issue was to give an admin person a special admin form/s. This admin form allowed them to type messages (as well as 'canned' messages) and set statuses that the app responded to accordingly I had a routine that periodically checked this special Massages table in the BE and then behave accordingly. E.g. the Admin person could send a generic message to all users and the users would see this message. They could see it as a message box that required a click from the user, or as Stuart mentioned, in a timed/modal form It depended on the 'type' of message the admin person wanted to send The admin person could also set up a timed shut down - Users were alerted to that and they saw on screen countdowns for say 5mins down to closing time Or the admin person could set a forced immediate shutdown as well - again depending on the need The code had many messaged it could react to - I had about 6 or 7 that were code driven - but these could be categorised and made into a growing table driven list A bit like a Message Bus Of course for your needs it sounds like you need to get the time from a server and if a set time (Say 7:00pm) has passed then shut the front end. That's not too tricky either - but of course this mucks up the logon logoff times and average logged on times - but that's not a big deal if you aren't doing that already Lots of fun with these back end administrator screens See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, 15 February 2011 4:58 AM To: AccessD List Subject: [AccessD] Force Closing the FE Hi Everyone, I have a distributed FE linked to a common BE, with no control over force closing the FE from a network perspective. Is there a way to put a timer on the FE so that if it stands idle for an hour or so, or if a certain time passes, say 7 PM or midnight, that the FE will Exit? That way I can be reasonably assured that all FE are closed and the lock on the BE will be released for maintenance. I have always had some sort of network control over getting into a user's workstation once the culprit has been identified and closing down the FE, so I've never been faced with this issue. Am wondering how you all handle it. Thanks in advance for your help. Jennifer Gross -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Mon Feb 14 18:41:33 2011 From: robert at servicexp.com (Robert) Date: Mon, 14 Feb 2011 19:41:33 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: Message-ID: <000c01cbcca9$19f950e0$4debf2a0$@com> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djdros at derrickcorp.com Mon Feb 14 21:18:53 2011 From: djdros at derrickcorp.com (Dros, David J.) Date: Tue, 15 Feb 2011 06:18:53 +0300 Subject: [AccessD] Access 2003 on win server 2008 SLOW Message-ID: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Urgent help!! Has anyone encountered this? Acc 2003 FE/BE on brand new network. Clients running xp. Top of the line hardware etc. Cat 6 gig drops /nics etc. File transfer speed lightning fast. BE sitting on a brand new $25k nas running windows storage server 2008 64bit. Queries that write to the database take minutes vs seconds on old 10/100mb network of xp clients against single 10yr old sever 2003 fileserver. We are handcuffed in the middle of an overseas deployment. Any help or referals would be greatly appreciated. Thank you. David J Dros Derrick Corporation Sent from mobile device LEGAL & CONFIDENTIALITY NOTICE: This message, including any attachments, is intended for the addressee(s) only and contains confidential information. Access to the message by anyone else is unauthorized. If the reader of this message is not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any review, retransmission, disclosure, copying, or distribution of this message, or the taking of any action in reliance on its contents, by persons or entities other than the intended recipient is strictly prohibited. If you have received this email in error, we ask you to contact the sender immediately, delete this message from your computer system, and destroy all paper copies. From stuart at lexacorp.com.pg Mon Feb 14 21:27:08 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 15 Feb 2011 13:27:08 +1000 Subject: [AccessD] Access 2003 on win server 2008 SLOW In-Reply-To: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> Message-ID: <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Could it be something to do SMB2. I've just come across this in another context and was pointed to http://www.alaska-software.com/fixes/smb2/overview.shtm "With the advent of Windows Vista and Windows 7, Microsoft introduced a new network protocol (SMB2) to optimize file sharing for WAN and low bandwidth and high latency scenarios. To optimize these types of file access scenarios, Microsoft performed design decisions which lead to the inability of the new SMB2 protocol to handle cache coherency of file meta information such as the file size, the last update time and whether the file actually exists on the server ("file not found" status). As a result of this design decision made by Microsoft, the SMB2 protocol with its default configuration breaks any application relying on shared, concurrent data access. It is therefore absolutely required to reconfigure the SMB2 cache of the local workstation to not cache file meta information. Alaska Software provides to its customers and their end-users an MSI installation package which reconfigures the SMB2 cache accordingly. This MSI package needs to be executed on any Vista and Windows 7 workstation in a network to ensure that no data loss or data corruption occurs when accessing files concurrently." -- Stuart On 15 Feb 2011 at 6:18, Dros, David J. wrote: > Urgent help!! > Has anyone encountered this? Acc 2003 FE/BE on brand new network. > Clients running xp. Top of the line hardware etc. Cat 6 gig drops > /nics etc. File transfer speed lightning fast. BE sitting on a brand > new $25k nas running windows storage server 2008 64bit. Queries that > write to the database take minutes vs seconds on old 10/100mb network > of xp clients against single 10yr old sever 2003 fileserver. We are > handcuffed in the middle of an overseas deployment. Any help or > referals would be greatly appreciated. Thank you. > From rockysmolin at bchacc.com Mon Feb 14 23:58:40 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 14 Feb 2011 21:58:40 -0800 Subject: [AccessD] Error 3709 The search key was not found in any record Message-ID: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Dear List: Client gets this error: "Error 3709 The search key was not found in any record" and the line of code triggering it is Me.Filter = strWhere. strWhere has some valid filtering criteria. It seems to be random or at least not replicatable. Big variable is that he's running an A2K3 mdb on A2K7 (boo!) and W7. Any clues? MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From Gustav at cactus.dk Tue Feb 15 03:57:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Feb 2011 10:57:46 +0100 Subject: [AccessD] (Don't) Force Closing the FE Message-ID: Hi Robert You are most likely right. I had to give up on this after some bad experiences with "lost" data - an issue that never had happened before of "no apparent reason" and never happened again after the automatic shutdown was removed. /gustav >>> robert at servicexp.com 15-02-2011 01:41 >>> Gustav, Even using a complete class solution doesn't work inside of access, because to my knowledge, any code you start in Access, will run in the same thread as Access. Which I believe is the root of the problem. The only solution that I have found that works 100%, without a timer, is creating a network "Communication System" inside your program. This of course is not automatic, and requires opening an internal comm. port on the network to each of the PC's. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 5:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer From jackandpat.d at gmail.com Tue Feb 15 07:27:15 2011 From: jackandpat.d at gmail.com (jack drawbridge) Date: Tue, 15 Feb 2011 08:27:15 -0500 Subject: [AccessD] Error 3709 The search key was not found in any record In-Reply-To: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> References: <9FF9A2A288B7429DB5E3B8E556DA7E49@HAL9005> Message-ID: Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in any > record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is that > he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jm.hwsn at gmail.com Tue Feb 15 08:09:28 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 08:09:28 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> Message-ID: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> 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 robert at servicexp.com Tue Feb 15 08:46:45 2011 From: robert at servicexp.com (Robert) Date: Tue, 15 Feb 2011 09:46:45 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <002901cbcd1f$2c3a0030$84ae0090$@com> Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 09:05:37 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 09:05:37 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <002901cbcd1f$2c3a0030$84ae0090$@com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <4d5973a5.2945960a.3ce5.73a7@mx.google.com> <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <002901cbcd1f$2c3a0030$84ae0090$@com> Message-ID: <4d5a9643.1f44960a.3b51.07f8@mx.google.com> Thanks, Robert. I tried that. I also tried to use a function (private and public) to no avail. The acCmdFind dialog box is the same one seen when Ctr+F is pressed. I would like to put something on the button "Find Next" but it seems that's not possible. I didn't want to create my own dialog box, but I might have to. Thanks for all the suggestions. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, February 15, 2011 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Try: With Me .ctrsubform.Requery End with WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Tuesday, February 15, 2011 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem I have a tendency to obfuscate ideas... let me try again. The find works perfectly... it locates all the records in order as it should. When the user clicks the "Find Next" button on the Find dialog box, the data in the main form moves to the appropriate record and the main form refreshes. What I can't get to work is a sub form on the main form which doesn't refresh. The data in the sub-form refreshes but the SourceObject; a separate form for each question type, doesn't update. I created a function that updates the SourceObject but I can't seem to figure out how to run it after the "Find Next" button on the Find Dialog Box (standard MS control). Is that clearer? Or did I muddy it up more? Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem If it doesn't work, that would ordinarily mean that there was nothing more to find. Why not post the code that isn't working and tell us specifically what should be happening. Charlotte Foust On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > I do not use acCmdFindNext at all. ?But yes, the user can modify any > instance of the value being searched. > When the button is clicked, the Find Dialog appears. ?The user has the > option to search for any text they need to find. ?They also have the > option to do a global change (e.g. 68W to 92C) within all the question texts. > Anytime the "Find Next" button in the Find Dialog box is pressed the > sub form does not update. > The user can use the dialog box for anything within the question text. > > Thanks, Charlotte > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You find an instance of the value and > allow the researcher to modify that instance? ?Then use acCmdFindNext > and it doesn't work? > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn wrote: >> The project I am working on administers a questionnaire to students >> in an attempt to bring down the attrition rate. >> >> The questionnaire is designed and administered by one or more researchers. >> >> The questionnaire is not static. that is the researcher can add, >> delete or modify the questions at any given time. >> >> This allows the researcher to place a question anywhere within the >> questionnaire. >> >> There are 20 different types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point Lickert type, etc. >> >> The researcher can change the text of each response in a question as >> well as change the text of the question. >> >> We are currently going through usability testing. ?The entire "class" >> is around 500 students. ?The class has a 3 digit identifier that is >> used in the questions. ?There are about 350 questions in the current > questionnaire. >> >> >> >> The researcher uses a Question ?form to modify the questions. ?The >> question form has a sub form that shows an example of the question as >> it would look on the questionnaire. ?When a search is done using a >> list box for combo box the sub form changes to reflect the text and >> type of question. ?When the question type changes the sub form >> updates the sample. For example a question might change from a >> fill-in question to combo box self-lookup question OR a question >> might change from a 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here are my questions: >> >> >> >> Question #1: >> >> As I mentioned above the class has a 3 digit identifier embedded in >> some questions. ?The researcher puts this identifier within the >> question to personalize it for the students. ?I have a button on the >> question form that is used to search for questions with the 3 digit >> class > identifier. ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will >> need to change periodically and this allows the researcher to do a > "replace all" >> after the search. >> >> >> >> I cannot figure out how to update the sample question sub form after >> the "Find Next" button is clicked on the Find dialog box. >> >> Does anyone know how to run a custom function ?(update sub form) >> while the dialog box is still open? >> >> >> >> Question #2: >> >> When the search button on the question form is clicked, I use >> SendKeys to ensure that "Match" is set to "Any Part of Field" and >> that the cursor goes to "Find What" field. ?That works, however, >> occasionally the Num Lock key is turned off. ?I understand that I >> could use: >> Application.SetOption "Default Find/Replace Behavior",1 - but that >> would set it for all users. ?Is there some way to achieve the same > functionality without using SendKeys? >> >> >> >> Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 10:34:09 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 08:34:09 -0800 Subject: [AccessD] FW: Error 3709 The search key was not found in any record Message-ID: <2AB45B24A4304C9EBF470DF4AB232489@HAL9005> -----Original Message----- From: Rocky Smolin [mailto:rockysmolin at bchacc.com] Sent: Tuesday, February 15, 2011 6:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Error 3709 The search key was not found in any record Jack: There is a memo field in that bound form. I'll forward to the client. If we can figure out how to duplicate the problem reliably (it's seemingly random at the moment) then I could delete all of the data in the memo fields and see if that solves it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jack drawbridge Sent: Tuesday, February 15, 2011 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3709 The search key was not found in any record Rocky, Haven't had the error, but did find this explanation via Google. May not apply but thought I'd send it on for review. http://support.microsoft.com/default.aspx?scid=kb;EN-US;302525 Jack On Tue, Feb 15, 2011 at 12:58 AM, Rocky Smolin wrote: > Dear List: > > Client gets this error: "Error 3709 The search key was not found in > any record" and the line of code triggering it is Me.Filter = strWhere. > strWhere has some valid filtering criteria. > > It seems to be random or at least not replicatable. Big variable is > that he's running an A2K3 mdb on A2K7 (boo!) and W7. > > Any clues? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 13:49:38 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 11:49:38 -0800 Subject: [AccessD] Convert To PDF Problem Message-ID: Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rusty.hammond at cpiqpc.com Tue Feb 15 13:55:05 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Tue, 15 Feb 2011 13:55:05 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Tue Feb 15 14:20:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 06:20:10 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> Message-ID: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Tue Feb 15 14:20:43 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 15 Feb 2011 14:20:43 -0600 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jm.hwsn at gmail.com Tue Feb 15 14:26:05 2011 From: jm.hwsn at gmail.com (jm.hwsn) Date: Tue, 15 Feb 2011 14:26:05 -0600 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, , <4d5a891a.8105ec0a.634f.ffffb073@mx.google.com> <4D5ADFFA.22301.984CE29@stuart.lexacorp.com.pg> Message-ID: <4d5ae160.6a3fec0a.2e90.ffffb98a@mx.google.com> That's correct. Thanks for the clarification. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 15, 2011 2:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - acCmdFind problem Just to clarify - am I right in saying: The problem is not: the content of the sub sub-form doesn't refesh when the parent record changes. The problem is: the subform's source object doesn't change to a different form when the parent record changes. -- Stuart On 15 Feb 2011 at 8:09, jm.hwsn wrote: > I have a tendency to obfuscate ideas... let me try again. > The find works perfectly... it locates all the records in order as it > should. When the user clicks the "Find Next" button on the Find dialog > box, the data in the main form moves to the appropriate record and the > main form refreshes. What I can't get to work is a sub form on the > main form which doesn't refresh. The data in the sub-form refreshes > but the SourceObject; a separate form for each question type, doesn't > update. I created a function that updates the SourceObject but I can't > seem to figure out how to run it after the "Find Next" button on the > Find Dialog Box (standard MS control). Is that clearer? Or did I > muddy it up more? Thanks, Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust Sent: Monday, February 14, 2011 5:54 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > If it doesn't work, that would ordinarily mean that there was nothing > more to find. Why not post the code that isn't working and tell us > specifically what should be happening. > > Charlotte Foust > > On Mon, Feb 14, 2011 at 10:25 AM, jm.hwsn wrote: > > I do not use acCmdFindNext at all. ?But yes, the user can modify any > > instance of the value being searched. > When the button is clicked, > the Find Dialog appears. ?The user has the > option to search for any > text they need to find. ?They also have the > option to do a global > change (e.g. 68W to 92C) within all the question texts. > Anytime the > "Find Next" button in the Find Dialog box is pressed the > sub form > does not update. > The user can use the dialog box for anything within > the question text. > > Thanks, Charlotte > > Jim > > -----Original > Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > Sent: Monday, February 14, 2011 12:14 PM > To: Access > Developers discussion and problem solving > Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > I'm not sure I understand #1. ?You > find an instance of the value and > allow the researcher to modify > that instance? ?Then use acCmdFindNext > and it doesn't work? > > > Charlotte Foust > > On Mon, Feb 14, 2011 at 8:18 AM, jm.hwsn > wrote: >> The project I am working on administers > a questionnaire to students >> in an attempt to bring down the > attrition rate. >> >> The questionnaire is designed and administered > by one or more researchers. >> >> The questionnaire is not static. > that is the researcher can add, >> delete or modify the questions at > any given time. >> >> This allows the researcher to place a question > anywhere within the >> questionnaire. >> >> There are 20 different > types of questions, e.g. true/false, scale >> (1-10 or 1-100), 4 point > Lickert type, etc. >> >> The researcher can change the text of each > response in a question as >> well as change the text of the question. > >> >> We are currently going through usability testing. ?The entire > "class" >> is around 500 students. ?The class has a 3 digit identifier > that is >> used in the questions. ?There are about 350 questions in > the current > questionnaire. >> >> >> >> The researcher uses a > Question ?form to modify the questions. ?The >> question form has a > sub form that shows an example of the question as >> it would look on > the questionnaire. ?When a search is done using a >> list box for > combo box the sub form changes to reflect the text and >> type of > question. ?When the question type changes the sub form >> updates the > sample. For example a question might change from a >> fill-in question > to combo box self-lookup question OR a question >> might change from a > 4 pt multiple choice to a 4 pt Lickert type question. >> >> >> >> Here > are my questions: >> >> >> >> Question #1: >> >> As I mentioned above > the class has a 3 digit identifier embedded in >> some questions. ?The > researcher puts this identifier within the >> question to personalize > it for the students. ?I have a button on the >> question form that is > used to search for questions with the 3 digit >> class > identifier. > ?I use: >> DoCmd.RunCommand acCmdFind because, the 3 digit class > identifier will >> need to change periodically and this allows the > researcher to do a > "replace all" >> after the search. >> >> >> >> I > cannot figure out how to update the sample question sub form after >> > the "Find Next" button is clicked on the Find dialog box. >> >> Does > anyone know how to run a custom function ?(update sub form) >> while > the dialog box is still open? >> >> >> >> Question #2: >> >> When the > search button on the question form is clicked, I use >> SendKeys to > ensure that "Match" is set to "Any Part of Field" and >> that the > cursor goes to "Find What" field. ?That works, however, >> > occasionally the Num Lock key is turned off. ?I understand that I > could use: >> Application.SetOption "Default Find/Replace Behavior",1 > - but that >> would set it for all users. ?Is there some way to > achieve the same > functionality without using SendKeys? >> >> >> >> > Thanks in advance, >> >> Jim >> >> >> >> >> >> -- >> AccessD mailing > list >> AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> Website: > http://www.databaseadvisors.com >> > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > Website: > http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 15 14:33:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 12:33:12 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721700DCFDFBB@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <63463EA44AC249B49075058DBAB40786@HAL9005> Same report. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Tuesday, February 15, 2011 11:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert To PDF Problem Rocky, Converting the same report or different one? If different maybe this report has no data or an error so can't export? Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Feb 15 15:01:18 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 15 Feb 2011 13:01:18 -0800 Subject: [AccessD] Convert To PDF Problem In-Reply-To: References: Message-ID: <8E759E1C63BE4A9AA390D5B4FABE93C8@HAL9005> Dan: I changed Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) To Set db = CurrentDb Set rstQ = db.OpenRecordset("Select * FROM tblUser") Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) rstQ.Close Set rstQ = Nothing But to no avail. I do get the flash on the screen that says the snp is being created, then...nothing. It should create the PDF and then fall through to a message box that says "Rental Agreements exported." bit it doesn't. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 15, 2011 12:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert To PDF Problem Hi Rocky, For one place in my code where I use DoCmd.OutputTo I had to open some software object or the database window first. I opened a simple select query - then OutputTo did work. Then I closed the select query. This is a bug and is (or was) documented in KB244695, although it's hard to figure that out when you read it. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 1:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Tue Feb 15 21:20:08 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 21:20:08 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, <4D57D3BB.28133.5972AF3@stuart.lexacorp.com.pg>, <906488E01DC842EABF7450742C2F4F50@XPS> <4D5861F1.17413.7C2AC9C@stuart.lexacorp.com.pg> Message-ID: I sent someone a database with a compiled front end / back end last June. Now he has emailed me because the the forms and reports can be viewed in Design view. The file he sent back (with .mde extension) does not run the startup form, and it does allow me to open forms and reports in Design view. The modules are all gone however. This was an Access2000 database. I don't know what version of Access his co-workers were using (he's just the messenger), but I do know that the OS is Windows7. I had also heard from them last June that they were having trouble opening the file -- getting a message that Windows was blocking it. It sounds like they found something to handle the problem of the database being blocked by Windows 7 that ended up allowing design view? Does anyone know what they might have done? The person I'm dealing with doesn't seem to know. Thanks Carolyn Johnson St Louis, MO From stuart at lexacorp.com.pg Tue Feb 15 21:46:34 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:46:34 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, Message-ID: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> The only way that I can think of for that to happen is that someone has used a tool to recreate the forms and reports from the original MDE into another file which they have given the same name. That would explain the absence of any code modules. I seem to remember one of our list members creating such a thing a few years ago. Hang on a minute while I search my archives...... Yep, Shamil came up with concept back in 2002. Last reference on the list was: "Shamil Salakhetdinov" Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, Issue 23 Tue,16 Feb 2010 23:12:03 +0300 -- Stuart On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > I sent someone a database with a compiled front end / back end last > June. Now he has emailed me because the the forms and reports can be > viewed in Design view. > > The file he sent back (with .mde extension) does not run the startup > form, and it does allow me to open forms and reports in Design view. > The modules are all gone however. > > > This was an Access2000 database. I don't know what version of Access > his co-workers were using (he's just the messenger), but I do know > that the OS is Windows7. I had also heard from them last June that > they were having trouble opening the file -- getting a message that > Windows was blocking it. > > > It sounds like they found something to handle the problem of the > database being blocked by Windows 7 that ended up allowing design > view? Does anyone know what they might have done? The person I'm > dealing with doesn't seem to know. > > > > Thanks > Carolyn Johnson > St Louis, MO > -- > 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 Feb 15 21:55:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Feb 2011 13:55:02 +1000 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> Message-ID: <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at att.net Tue Feb 15 22:32:05 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Tue, 15 Feb 2011 22:32:05 -0600 Subject: [AccessD] compiled .mde file allowing design view References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> Message-ID: <931C03D1C41D479D8A387793840B07A5@Dell> Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . And I still don't know what the issue is with it being blocked by Windows 7. None of this makes sense, although that may be asking for too much. Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Tuesday, February 15, 2011 9:55 PM Subject: Re: [AccessD] compiled .mde file allowing design view Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of the forms and reports in the MDE. -- Stuart On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > The only way that I can think of for that to happen is that someone > has used a tool to recreate the forms and reports from the original > MDE into another file which they have given the same name. That would > explain the absence of any code modules. > > I seem to remember one of our list members creating such a thing a few > years ago. Hang on a minute while I search my archives...... > > Yep, Shamil came up with concept back in 2002. Last reference on the > list was: > > "Shamil Salakhetdinov" > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > -- > Stuart > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > I sent someone a database with a compiled front end / back end last > > June. Now he has emailed me because the the forms and reports can > > be viewed in Design view. > > > > The file he sent back (with .mde extension) does not run the startup > > form, and it does allow me to open forms and reports in Design view. > > The modules are all gone however. > > > > > > This was an Access2000 database. I don't know what version of > > Access his co-workers were using (he's just the messenger), but I do > > know that the OS is Windows7. I had also heard from them last June > > that they were having trouble opening the file -- getting a message > > that Windows was blocking it. > > > > > > It sounds like they found something to handle the problem of the > > database being blocked by Windows 7 that ended up allowing design > > view? Does anyone know what they might have done? The person I'm > > dealing with doesn't seem to know. > > > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 16 05:11:21 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 16 Feb 2011 06:11:21 -0500 Subject: [AccessD] compiled .mde file allowing design view In-Reply-To: <931C03D1C41D479D8A387793840B07A5@Dell> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005>, , <4D5B489A.12435.B1D82DF@stuart.lexacorp.com.pg> <4D5B4A96.14954.B254350@stuart.lexacorp.com.pg> <931C03D1C41D479D8A387793840B07A5@Dell> Message-ID: <4D5BB0D9.7000902@colbyconsulting.com> In a true MDE the code is there, it is just in a PCode state, i.e. the source has been removed. John W. Colby www.ColbyConsulting.com On 2/15/2011 11:32 PM, Carolyn Johnson wrote: > Thanks. I'll see if I can find out if that's what they did. The database would not function properly without the code, though. . . . > > And I still don't know what the issue is with it being blocked by Windows 7. > > None of this makes sense, although that may be asking for too much. > > > Carolyn > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Tuesday, February 15, 2011 9:55 PM > Subject: Re: [AccessD] compiled .mde file allowing design view > > > Re-reading that old thread, it looks as though they possibly just did a "SaveAsText" on all of > the forms and reports in the MDE. > > -- > Stuart > > On 16 Feb 2011 at 13:46, Stuart McLachlan wrote: > > > The only way that I can think of for that to happen is that someone > > has used a tool to recreate the forms and reports from the original > > MDE into another file which they have given the same name. That would > > explain the absence of any code modules. > > > > I seem to remember one of our list members creating such a thing a few > > years ago. Hang on a minute while I search my archives...... > > > > Yep, Shamil came up with concept back in 2002. Last reference on the > > list was: > > > > "Shamil Salakhetdinov" > > Re: [AccessD] DBRepair (EatBloat+) Was: Re: AccessD Digest, Vol 84, > > Issue 23 Tue,16 Feb 2010 23:12:03 +0300 > > > > > > -- > > Stuart > > > > > > On 15 Feb 2011 at 21:20, Carolyn Johnson wrote: > > > > > I sent someone a database with a compiled front end / back end last > > > June. Now he has emailed me because the the forms and reports can > > > be viewed in Design view. > > > > > > The file he sent back (with .mde extension) does not run the startup > > > form, and it does allow me to open forms and reports in Design view. > > > The modules are all gone however. > > > > > > > > > This was an Access2000 database. I don't know what version of > > > Access his co-workers were using (he's just the messenger), but I do > > > know that the OS is Windows7. I had also heard from them last June > > > that they were having trouble opening the file -- getting a message > > > that Windows was blocking it. > > > > > > > > > It sounds like they found something to handle the problem of the > > > database being blocked by Windows 7 that ended up allowing design > > > view? Does anyone know what they might have done? The person I'm > > > dealing with doesn't seem to know. > > > > > > > > > > > > Thanks > > > Carolyn Johnson > > > St Louis, MO > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 21:51:27 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 19:51:27 -0800 Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) In-Reply-To: References: Message-ID: ...and here is another JavaScipt fast-loader that I have been playing with: http://labjs.com/ Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Faster loading of ASP.NET pages (was: From a reader) Hi Jim et al I noticed this article: Package that speeds up loading of JavaScript, CSS and image files http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 16 22:05:02 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 16 Feb 2011 20:05:02 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> References: <063361B1D72A4943BEDCA54BB3C4992E045CC5@exmb106> <004101cbcc8e$1a99cae0$1201a8c0@Schroeder> <4D59AAE3.16764.4CD66D6@stuart.lexacorp.com.pg> Message-ID: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 16 22:39:47 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 20:39:47 -0800 Subject: [AccessD] FW: Convert To PDF Problem Message-ID: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at mattysconsulting.com Wed Feb 16 23:00:17 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 00:00:17 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> Message-ID: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 17 00:58:31 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 16 Feb 2011 22:58:31 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> Message-ID: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 07:02:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 08:02:23 -0500 Subject: [AccessD] CDO In-Reply-To: <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> References: <0A3DD195162F4FD08D868A00C981475B@HAL9005> <2EBAA1E264324435B0716D1AA41644C0@stevelaptop> <001601cbcaf3$40c1d6a0$c24583e0$@winhaven.net> Message-ID: <4D5D1C5F.3070304@colbyconsulting.com> in C# I am actually using a gmail account to send and receive email. John W. Colby www.ColbyConsulting.com On 2/12/2011 3:27 PM, John Bartow wrote: > One of the issues I've run into using third party email apps/activex/dll in > one Microsoft (government) network is that the security staff install spam > blockers and such that do not allow anything to access the smtp server. They > basically broke my application that had been installed there for 10 years > and refused to adapt their security to allow it to work. Ignorance makes for > paranoia and there's no getting around ignorant security staff. They are > like gods to the unwitting administrative staff that have to make the final > decisions. So I was basically forced into recoding an old iron horse app to > utilize Outlook/Exchange and the user just has to click the irritating > "allow for one hour" prompt when the first email is sent. It is no big deal > to them just an item that needs to be explained. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel > Sent: Friday, February 11, 2011 1:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CDO > > Ricky, > > You might consider Total Access Email from FMS > http://www.fmsinc.com/MicrosoftAccess/Emails.asp > > For myself, I extensively use Chilkat Mail http://www.chilkatsoft.com/ - but > then that doesn't meet your "avoid ActiveX" criteria. > > Regards > Steve > > -----Original Message----- > From: Rocky Smolin > Sent: Saturday, February 12, 2011 5:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] CDO > > Is CDO dead or alive? Use it or lose it? > > What's the best way to automatically send emails from an app without using > dlls or activex controls which would need to be registered? > > MTIA > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From michael at mattysconsulting.com Thu Feb 17 11:22:07 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Thu, 17 Feb 2011 12:22:07 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, Yes, that's what I would've expected to find. I have made a program based on Leban's work also, seems like it should be an easy to find needle in the haystack. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Thu Feb 17 14:09:38 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 17 Feb 2011 14:09:38 -0600 Subject: [AccessD] Using Access to Back-up Remote SQL-Server Tables - Looking for a better approach References: <7BF10C56-031D-4162-92E0-2B76EC89B6D8@derrickcorp.com> <4D59F28C.27847.5E55964@stuart.lexacorp.com.pg> Message-ID: Background Small Firm Currently no Microsoft SQL-Server in house (Only Microsoft Access) Website Hosting is outsourced. Website orders are stored in SQL-Server at the hosting firm. We have reason to believe that adequate SQL-Server backups are not being done by the hosting firm. (We are in the process of finding a new website hosting firm.) I have a little Access application that pulls the data (with ODBC) from the 24 SQL-Server tables at the hosting firm and imports these tables into Access tables. This takes about 5 minutes to run. I view these tables as a "last resort" short-term backup. With this as background, here is my question... I am thinking about installing SQL-Server 2008 Express. How difficult would it be to import these 24 remote SQL-Server tables into a local copy of SQL-Server. This was easy to do with Access, but I am not familiar with SQL-Server utilities. I know that this is more of a SQL-Server question than an Access question. I just thought that many of you have a lot of experience with SQL-Server and could possibly point me in the right direction. Perhaps my current approach of using Access is good enough. Thanks, Brad From jengross at gte.net Thu Feb 17 14:52:58 2011 From: jengross at gte.net (Jennifer Gross) Date: Thu, 17 Feb 2011 12:52:58 -0800 Subject: [AccessD] Force Closing the FE In-Reply-To: <034122BC844E429CB2D791C5A3D6F9C2@creativesystemdesigns.com> Message-ID: <00ce01cbcee4$a9cb00f0$1201a8c0@Schroeder> Thanks for the caution Jim. The collective knowledge of this group always blows my mind. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 16, 2011 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE One late comment about possible issues with timers is the challenges caused if you use the DoEvent cmd. Timers may produce unexpected result when the two are running simultaneously. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 14, 2011 2:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Force Closing the FE Better to use a timed "message box" which does the actual shutdown so that if someone IS in the application, they know what happened. The simplest way to do that is: Create a form with a Close button and a label displaying your message that the application is about to close. Set the Timer Interval on that form to something like 10000 msecs. Include the following event procedures. Private Sub btnClose_Click() DoCmd.Close End Sub Private Sub Form_Close() DoCmd.Quit End Sub Private Sub Form_Timer() DoCmd.Close End Sub Then just open the warning form as the final step in your main shutdown procedure. The warning will appear for 10 seconds or until the user clicks OK, whichever occurs first. After that the application closes itself. -- Stuart On 14 Feb 2011 at 13:28, Jennifer Gross wrote: > Thanks Bruce. The code has a MsgBox that requires a user action. One > of the things I want to get around is users leaving the FE open when > they leave for the day. I want it to shut down. Do you see a problem > with me bypassing the MsgBox and just doing an Application.Quit once > the timer has expired? > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kovacs, > Bruce Sent: Monday, February 14, 2011 1:20 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Force Closing > the FE > > > Typically 60 minutes. There was one jobsite with a challenged server > where I went down to 20 minutes, as I recall (this site also had 3 > different FEs hitting the one BE, and with 15 to 20 concurrent users). > And I had a very stable office application with only 3 users where I > went up to 120 minutes. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 17 21:42:32 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 17 Feb 2011 22:42:32 -0500 Subject: [AccessD] SQL constant harassment In-Reply-To: References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> Message-ID: <4D5DEAA8.2090501@colbyconsulting.com> Borge, I haven't forgotten you. I will create a username / password for you but I need to know more. What group to add you to, what rights to assign that group etc. John W. Colby www.ColbyConsulting.com On 2/12/2011 1:09 AM, Borge Hansen wrote: > John, sending this a second time, as the first email was above the 20Kb > limit ?!!? > If keeping this conversation on Accessd, please continue under a new Subject > Heading > Borge > > > >> Alright ... done that ... assuming using SQL Server Authentication, so I >> need user name and pword for your connection / ODBC systems DSN .... I tried >> with same user name and password as I had kept in my configuration .... >> didn't work .... >> >> I can ping your network... >> I can chat to your network... >> I can't connect to your sql server .... >> Back to the drawing board... >> >> Regards >> Borge >> >> >> >> On Sat, Feb 12, 2011 at 12:39 AM, jwcolbywrote: >> >>> Borg, >>> >>> I have the database restored and available. If you were to attach to the >>> Hamachi network that you received the invite to join, you would see the SQL >>> Server database at 5.203.167.79. >>> >>> If you were to use the Access Fe that you sent to me, and edit the DSN to >>> use that IP as the server name, you would be connecting directly into the >>> server on my VM. >>> >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> From pcs.accessd at gmail.com Fri Feb 18 06:24:13 2011 From: pcs.accessd at gmail.com (Borge Hansen) Date: Fri, 18 Feb 2011 22:24:13 +1000 Subject: [AccessD] SQL constant harassment In-Reply-To: <4D5DEAA8.2090501@colbyconsulting.com> References: <4D46D1E6.8030201@colbyconsulting.com> <00db01cbc1a7$50f231a0$f2d694e0$@activebilling.com.au> <4D502640.50309@colbyconsulting.com> <4D513E86.5000401@colbyconsulting.com> <4D554A05.6000002@colbyconsulting.com> <4D5DEAA8.2090501@colbyconsulting.com> Message-ID: John, Thanks for the update. No hurry... I am in Koh Samui for a wedding and will be back in Australia early next week. I guess the group and rights issues are being worked out by you, and not questions for me. Regards borge On Fri, Feb 18, 2011 at 1:42 PM, jwcolby wrote: > Borge, > > I haven't forgotten you. I will create a username / password for you but I > need to know more. What group to add you to, what rights to assign that > group etc. > > > John W. Colby > www.ColbyConsulting.com > > On 2/12/2011 1:09 AM, Borge Hansen wrote: > >> John, sending this a second time, as the first email was above the 20Kb >> limit ?!!? >> If keeping this conversation on Accessd, please continue under a new >> Subject >> Heading >> Borge >> >> >> >> Alright ... done that ... assuming using SQL Server Authentication, so I >>> need user name and pword for your connection / ODBC systems DSN .... I >>> tried >>> with same user name and password as I had kept in my configuration .... >>> didn't work .... >>> >>> I can ping your network... >>> I can chat to your network... >>> I can't connect to your sql server .... >>> Back to the drawing board... >>> >>> Regards >>> Borge >>> >>> >>> >>> On Sat, Feb 12, 2011 at 12:39 AM, jwcolby>> >wrote: >>> >>> Borg, >>>> >>>> I have the database restored and available. If you were to attach to >>>> the >>>> Hamachi network that you received the invite to join, you would see the >>>> SQL >>>> Server database at 5.203.167.79. >>>> >>>> If you were to use the Access Fe that you sent to me, and edit the DSN >>>> to >>>> use that IP as the server name, you would be connecting directly into >>>> the >>>> server on my VM. >>>> >>>> >>>> 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 Lambert.Heenan at chartisinsurance.com Fri Feb 18 09:07:13 2011 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 18 Feb 2011 10:07:13 -0500 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 10:46:17 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 08:46:17 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Fri Feb 18 12:19:14 2011 From: df.waters at comcast.net (Dan Waters) Date: Fri, 18 Feb 2011 12:19:14 -0600 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <30D57E25E3164C6F80178CB681220BCC@DanWaters> Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 18 12:53:04 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Feb 2011 10:53:04 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005> <46E62D0DBCFB479B95F87CF64F0F2B78@Gateway> <7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> Message-ID: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 18 13:06:34 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 11:06:34 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <2F3316EC018E4428BE9C7CEE213A3D2B@creativesystemdesigns.com> Message-ID: <2E6999F5433E42AC8DD9B1F81816230B@HAL9005> Problem here is that the whole routine is encapsulated in a module which I call from the CBF. In the one form it works perfectly. In the other it fails unless I run it one time from the first form. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 18, 2011 10:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky: Just a quick thought. I do not use the same PDF convertor (PDFCreator) as you do but found that if I did not do an explicitly close to the PDF object it would not work consistantly; even though the sample codes did not do show this. Pdfcreator1.close HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 8:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 18 19:49:54 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 18 Feb 2011 17:49:54 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <30D57E25E3164C6F80178CB681220BCC@DanWaters> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005> <30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: Dan: No soap. The code us in a module and is a Public Function. And works perfectly when it is called from the form where I first implemented it. But when I call it from the second form it doesn't work. However, if I call it from the first form, the call it from the second form then it DOES work in the second form. So the call in the first form is apparently creating some condition that the second form doesn't. But danged if I can spot it. TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 18, 2011 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Two ideas to try: 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are probably equal). 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I need to do this at one place in my code to get OutputTo to work. Then close the query later. DoCmd.OpenQuery "qryAnySelectQuery" DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName DoCmd.Close acQuery, "qryAnySelectQuery" HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 18, 2011 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Lambert: Thanks for the idea but it didn't seem to make any difference. Still does not return to the next statement after the OutputTo. But if I run the ConvertToPDF in the other form first, then it works when called from the second form. Very mysterious. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 18, 2011 7:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, I honestly cannot remember how I worked this out, but I too had some problems when I first started to use the wondrous LeBans code for PDF production. For some reason it did not work unless the database window was (nominally) visible. I resolved the issues by adding a few lines of code around those two lines. Lambert Leban's original code... ========================================== ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName ' Make sure the process has time to complete DoEvents ========================================== Here is my modified code. The additons are lines 200,210,230, 240 and 250. ========================================== ' Export the selected Report to SnapShot format 200 DoCmd.Echo False 'Show the db window 210 DoCmd.SelectObject acTable, , True 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName 230 DoCmd.SelectObject acTable, , True 240 DoCmd.RunCommand acCmdWindowHide 'turn the echo back on 250 DoCmd.Echo True ' Make sure the process has time to complete 260 DoEvents ========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 17, 2011 1:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Michael: I'm using Lebans' ConvertReportToPDF which is a Public Function and is included in a module named modReportToPDF which you can download form his site. This function is called from two places in the app and is called like this: Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) So there are no declares in either of the two forms that call ConvertReportToPDF. However, in Lebans' module here are a bunch of Private Declares. There are no duplicates of these Declares in other modules, however, public or otherwise. Is that what I'm looking for? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: Wednesday, February 16, 2011 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, No, quite familiar actually. My turn to be vague ... You'll need to examine those declares again. One or more of your declares is being called by your form/report because it is public and is probably a duplicate of a private declare that your code should be using. Even though they look the same, they are not - hence no functionality. Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 16, 2011 11:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Convert To PDF Problem So here's what I've found out so far. The Convert to PDF routine is called form two places in the program, one which has been working a long time - call it the old one - and the new one I added. If the new one is run before the old one, it stops executing at DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName Just never returns from this command. Doesn't hang, you can go ahead and operate on the form. But contorl is never passed to the next statement. However, if you call the old one first, then the new one works. So the old one is apparently setting something somewhere that makes the new one work. But I can't see it to save my soul. Pretty vague, huh? But all WAGs welcome. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 15, 2011 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Convert To PDF Problem Dear List: I implemented Lebans' ConvertReportToPDF and it worked really well to create a report as a PDF. Then I implemented in another place in the code. And it doesn't work. Same Call. Passing the same parameters. I step through Lebans' code line by line, watching all the variables. When it gets to the line ' Export the selected Report to SnapShot format DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ strPathandFileName it doesn't comes back to the next line. And no SNP file is created. The next line is: ' Make sure the process has time to complete DoEvents Stepping through the code when called from the place I first used it it steps just fine. Does the output, creates the snp file and lights up the DoEvents. The header is to the module is: Public Function ConvertReportToPDF( _ Optional RptName As String = "", _ Optional SnapshotName As String = "", _ Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ ) As Boolean and the arguments passed to the routine are the same in both cases. I am truly baffled - don't even have a clue what to test. Any ideas, WAGs even, gratefully accepted. MTIA Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lawrence.robinr at gmail.com Sat Feb 19 04:03:35 2011 From: lawrence.robinr at gmail.com (Robin Lawrence) Date: Sat, 19 Feb 2011 10:03:35 -0000 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> Message-ID: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-solution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rbgajewski at roadrunner.com Sat Feb 19 08:13:18 2011 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Sat, 19 Feb 2011 09:13:18 -0500 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <440D6D582182440E9ADD781199DD31B0@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com> <440D6D582182440E9ADD781199DD31B0@HAL9005> Message-ID: <65F58CC636624923B89498173CAE7D35@DCYN3T81> Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 19 08:58:48 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 19 Feb 2011 06:58:48 -0800 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <65F58CC636624923B89498173CAE7D35@DCYN3T81> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com><440D6D582182440E9ADD781199DD31B0@HAL9005> <65F58CC636624923B89498173CAE7D35@DCYN3T81> Message-ID: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> I think so. But I tend to write more verbose code out of self defense because 6 months later it's much easier to figure out what I was trying to do. So my code reads: "If the user's preference is to have the num lock on and it's off then toggle the num lock off. Of the user's preference is to have the num lock on and it's off, then toggle the num lock on." A bit redundant, I know, but just easier for me. Old guy, you know.... Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem Hi Rocky This has nothing to do with solving your problem - sorry - but I just had a question about part of your code ... Would this work the same? Private Sub NumLockChecker() If Not (DLookup("NumLockPreference", "LocalOptions") = IsNumLockOn) Then ToggleNumLock End Sub Thanks Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - acCmdFind problem For #2 I use the following - except for the first module it's not my code - I cribbed it from somewhere else. I store the user's preference for num lock on or off in a local options table. Private Sub NumLockChecker() If DLookup("NumLockPreference", "LocalOptions") = True And IsNumLockOn = False Then ToggleNumLock If DLookup("NumLockPreference", "LocalOptions") = False And IsNumLockOn = True Then ToggleNumLock End Sub Function IsNumLockOn() As Boolean Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) IsNumLockOn = keys(VK_NUMLOCK) End Function Sub ToggleNumLock() Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '=====Win95 keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) SetKeyboardState keys(0) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '=====WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End Sub Where the Type statement is ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type And the constants: ' Constant declarations: Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 I think that's everything. HTH Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 - acCmdFind problem The project I am working on administers a questionnaire to students in an attempt to bring down the attrition rate. The questionnaire is designed and administered by one or more researchers. The questionnaire is not static. that is the researcher can add, delete or modify the questions at any given time. This allows the researcher to place a question anywhere within the questionnaire. There are 20 different types of questions, e.g. true/false, scale (1-10 or 1-100), 4 point Lickert type, etc. The researcher can change the text of each response in a question as well as change the text of the question. We are currently going through usability testing. The entire "class" is around 500 students. The class has a 3 digit identifier that is used in the questions. There are about 350 questions in the current questionnaire. The researcher uses a Question form to modify the questions. The question form has a sub form that shows an example of the question as it would look on the questionnaire. When a search is done using a list box for combo box the sub form changes to reflect the text and type of question. When the question type changes the sub form updates the sample. For example a question might change from a fill-in question to combo box self-lookup question OR a question might change from a 4 pt multiple choice to a 4 pt Lickert type question. Here are my questions: Question #1: As I mentioned above the class has a 3 digit identifier embedded in some questions. The researcher puts this identifier within the question to personalize it for the students. I have a button on the question form that is used to search for questions with the 3 digit class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 digit class identifier will need to change periodically and this allows the researcher to do a "replace all" after the search. I cannot figure out how to update the sample question sub form after the "Find Next" button is clicked on the Find dialog box. Does anyone know how to run a custom function (update sub form) while the dialog box is still open? Question #2: When the search button on the question form is clicked, I use SendKeys to ensure that "Match" is set to "Any Part of Field" and that the cursor goes to "Find What" field. That works, however, occasionally the Num Lock key is turned off. I understand that I could use: Application.SetOption "Default Find/Replace Behavior",1 - but that would set it for all users. Is there some way to achieve the same functionality without using SendKeys? Thanks in advance, 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 jwcolby at colbyconsulting.com Sat Feb 19 13:53:30 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 14:53:30 -0500 Subject: [AccessD] I'm getting nowhere Message-ID: <4D601FBA.5020302@colbyconsulting.com> I am getting nowhere on understanding SQL Server security. Microsoft provides us with SQL Server Express which implies that joe blow (me) is going to install / maintain it. I am not a SQL Server Admin and I cannot afford to spend the time to be one. Google is my friend. BOL is not. Except that Google is taking me to these places where I am expected to already know how this stuff works, and then wants to make me a *better* administrator. Which of course is useless because I am not an administrator at all. OTOH I am not stupid. If I could find something that started at the "This is SQL Server security" basics I could learn this stuff. Before anyone says "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it simply sucks for my level of expertise (my opinion of course). If that is your advice, simply stay out of this thread. Thanks! So... my needs: I need to set up several SQL Server databases for use by different, very small groups (5-20 people) of entirely unrelated people. What I mean by that is that each DB is for a different "company" if you will. I need to access these databases from C#. I understand the group / user paradigm. I would like to create groups and users. Specific groups can do specific things in the database, some can see data but not modify it. Some can add records in specific tables but not others. Some can run reports (view). I do *NOT* want to create windows level groups and users if I can avoid it. These are people that I do not necessarily know and I do not want to give them any rights at the machine level, and I prefer to not maintain such lists at the machine level. Unfortunately SQL Server does not seem to model Groups / users. I go into SQL Server and see a security tab. It has "logins". Is that a user? A specific ability to log in with a password? To what? The server itself? A specific database? Groups of databases? I see "roles" but these appear to be aimed at the server and none of these people are going to be doing anything at the server level. Can I safely ignore everything under the server security tab? I go to a database and I see a security tab. It has users and roles. Hmm... better (I would think). I would like to add users "under" the specific database that the user will access. So I try to add a new user but I do not see anywhere to require a password. Hmmm... I go into roles and I do not see any predefined role that looks like it would be useful to me in meeting my needs described above. If I look at "add new role" it asks for a password. The User / group model does nto assign passwords at the group level which implies that a role is not a group at the user / group paradigm. Is it just me, or is SQL Server security just... different? Am I correct in assuming that it doesn't implement a user / group paradigm? And more importantly, where can I go to get a plain, simple, English description of how this mess works? And please excuse the tone that results from my frustration. The only help documents that I have found (and I have extensive lists of bookmarked web pages) so far assume that I am an administrator. I am not, and cannot afford to become one. And yet MS pushes SQL Express as if I (non-admin) should be able to use this as a data store pool. Help! -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sat Feb 19 17:06:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 09:06:52 +1000 Subject: [AccessD] Access 2007 - acCmdFind problem In-Reply-To: <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> References: <4d5955f5.0cc5650a.5e17.ffff968b@mx.google.com>, <65F58CC636624923B89498173CAE7D35@DCYN3T81>, <7AE4DCE388C2454BA22C0D87D0D90F4E@HAL9005> Message-ID: <4D604D0C.5787.1EB6CF22@stuart.lexacorp.com.pg> If I had to pick up your code from scratch and maintain it in the future: I actually find "If the user's Numlock preference doesn't match the current Numlock state, then toggle it" easier to follow :-). -- Stuart On 19 Feb 2011 at 6:58, Rocky Smolin wrote: > I think so. But I tend to write more verbose code out of self defense > because 6 months later it's much easier to figure out what I was > trying to do. > > So my code reads: > > "If the user's preference is to have the num lock on and it's off then > toggle the num lock off. Of the user's preference is to have the num > lock on and it's off, then toggle the num lock on." > > A bit redundant, I know, but just easier for me. Old guy, you > know.... > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob > Gajewski Sent: Saturday, February 19, 2011 6:13 AM To: 'Access > Developers discussion and problem solving' Subject: Re: [AccessD] > Access 2007 - acCmdFind problem > > Hi Rocky > > This has nothing to do with solving your problem - sorry - but I just > had a question about part of your code ... > > Would this work the same? > > Private Sub NumLockChecker() > If Not (DLookup("NumLockPreference", "LocalOptions") = > IsNumLockOn) Then > ToggleNumLock End Sub > > Thanks > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin Sent: Monday, February 14, 2011 11:55 AM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access 2007 - > acCmdFind problem > > For #2 I use the following - except for the first module it's not my > code - I cribbed it from somewhere else. I store the user's > preference for num lock on or off in a local options table. > > > Private Sub NumLockChecker() > If DLookup("NumLockPreference", "LocalOptions") = True And > IsNumLockOn = > False Then ToggleNumLock > If DLookup("NumLockPreference", "LocalOptions") = False And > IsNumLockOn > = True Then ToggleNumLock End Sub > > Function IsNumLockOn() As Boolean > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > IsNumLockOn = keys(VK_NUMLOCK) > > End Function > > Sub ToggleNumLock() > > Dim o As OSVERSIONINFO > > o.dwOSVersionInfoSize = Len(o) > GetVersionEx o > Dim keys(0 To 255) As Byte > GetKeyboardState keys(0) > > If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then > '=====Win95 > keys(VK_NUMLOCK) = Abs(Not keys(VK_NUMLOCK)) > SetKeyboardState keys(0) > ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then > '=====WinNT 'Simulate Key Press > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, > 0 > 'Simulate Key Release > keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ > Or KEYEVENTF_KEYUP, 0 > End If > > End Sub > > Where the Type statement is > > ' Declare Type for API call: > Private Type OSVERSIONINFO > dwOSVersionInfoSize As Long > dwMajorVersion As Long > dwMinorVersion As Long > dwBuildNumber As Long > dwPlatformId As Long > szCSDVersion As String * 128 ' Maintenance string for PSS > usage > End Type > > And the constants: > > ' Constant declarations: > Const VK_NUMLOCK = &H90 > Const VK_SCROLL = &H91 > Const VK_CAPITAL = &H14 > Const KEYEVENTF_EXTENDEDKEY = &H1 > Const KEYEVENTF_KEYUP = &H2 > Const VER_PLATFORM_WIN32_NT = 2 > Const VER_PLATFORM_WIN32_WINDOWS = 1 > > I think that's everything. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jm.hwsn > Sent: Monday, February 14, 2011 8:19 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] Access 2007 - > acCmdFind problem > > The project I am working on administers a questionnaire to students in > an attempt to bring down the attrition rate. > > The questionnaire is designed and administered by one or more > researchers. > > The questionnaire is not static. that is the researcher can add, > delete or modify the questions at any given time. > > This allows the researcher to place a question anywhere within the > questionnaire. > > There are 20 different types of questions, e.g. true/false, scale > (1-10 or 1-100), 4 point Lickert type, etc. > > The researcher can change the text of each response in a question as > well as change the text of the question. > > We are currently going through usability testing. The entire "class" > is around 500 students. The class has a 3 digit identifier that is > used in the questions. There are about 350 questions in the current > questionnaire. > > > > The researcher uses a Question form to modify the questions. The > question form has a sub form that shows an example of the question as > it would look on the questionnaire. When a search is done using a > list box for combo box the sub form changes to reflect the text and > type of question. When the question type changes the sub form updates > the sample. For example a question might change from a fill-in > question to combo box self-lookup question OR a question might change > from a 4 pt multiple choice to a 4 pt Lickert type question. > > > > Here are my questions: > > > > Question #1: > > As I mentioned above the class has a 3 digit identifier embedded in > some questions. The researcher puts this identifier within the > question to personalize it for the students. I have a button on the > question form that is used to search for questions with the 3 digit > class identifier. I use: DoCmd.RunCommand acCmdFind because, the 3 > digit class identifier will need to change periodically and this > allows the researcher to do a "replace all" after the search. > > > > I cannot figure out how to update the sample question sub form after > the "Find Next" button is clicked on the Find dialog box. > > Does anyone know how to run a custom function (update sub form) while > the dialog box is still open? > > > > Question #2: > > When the search button on the question form is clicked, I use SendKeys > to ensure that "Match" is set to "Any Part of Field" and that the > cursor goes to "Find What" field. That works, however, occasionally > the Num Lock key is turned off. I understand that I could use: > Application.SetOption "Default Find/Replace Behavior",1 - but that > would set it for all users. Is there some way to achieve the same > functionality without using SendKeys? > > > > Thanks in advance, > > 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 jwcolby at colbyconsulting.com Sat Feb 19 18:18:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 19 Feb 2011 19:18:04 -0500 Subject: [AccessD] [dba-SQLServer] I'm getting nowhere In-Reply-To: References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605DBC.3080006@colbyconsulting.com> > The hierarchy goes like this: > > Roles > -- Users But why does the user have no (apparent) password but the role does? I found a vague (to me) reference to schemas and assigning schemas to users... Now that makes sense. I assume in all this that if a user goes away I just delete the user? I don't see any way to enable / disable the user. This whole thing just seems real hokey. John W. Colby www.ColbyConsulting.com On 2/19/2011 4:38 PM, Arthur Fuller wrote: > The hierarchy goes like this: > > Roles > -- Users > > What is not obvious from the docs is that you can add a role to a role. The > reason you would want to do this is to "include" lower-level capabilities > within a higher-level group (without bothering to have to re-define these). > > You can grant select, update, delete and inserts on any combination of > tables, views and sprocs. The approach I typically use is to deny table > access to everyone but me, and then to grant various levels of access to > views and sprocs to various roles. That way, no one but you can directly hit > a table. > > So, your bottom level might define Select capability and nothing else (to > one or more views and sprocs). The next level up might permit Updates, and > the next Inserts and Deletes. Actually I mean granting this privileges on > the sprocs/views created for those purposes. > > As you move up the hierarchy, you can "stack" the abilities (i.e. add the > lowest level role to the next up, and so on, until you reach the top, where > the only member of that role is you. > > HTH, and if not feel free to ask. > Arthur > > On Sat, Feb 19, 2011 at 2:53 PM, jwcolbywrote: > >> I am getting nowhere on understanding SQL Server security. Microsoft >> provides us with SQL Server Express which implies that joe blow (me) is >> going to install / maintain it. >> >> I am not a SQL Server Admin and I cannot afford to spend the time to be >> one. >> >> Google is my friend. BOL is not. >> >> Except that Google is taking me to these places where I am expected to >> already know how this stuff works, and then wants to make me a *better* >> administrator. Which of course is useless because I am not an administrator >> at all. >> >> OTOH I am not stupid. If I could find something that started at the "This >> is SQL Server security" basics I could learn this stuff. Before anyone says >> "RTFM (BOL)" let me simply say, "not happening". I have tried BOL and it >> simply sucks for my level of expertise (my opinion of course). If that is >> your advice, simply stay out of this thread. Thanks! >> >> So... my needs: >> >> I need to set up several SQL Server databases for use by different, very >> small groups (5-20 people) of entirely unrelated people. What I mean by >> that is that each DB is for a different "company" if you will. I need to >> access these databases from C#. I understand the group / user paradigm. I >> would like to create groups and users. Specific groups can do specific >> things in the database, some can see data but not modify it. Some can add >> records in specific tables but not others. Some can run reports (view). >> >> I do *NOT* want to create windows level groups and users if I can avoid it. >> These are people that I do not necessarily know and I do not want to give >> them any rights at the machine level, and I prefer to not maintain such >> lists at the machine level. >> >> Unfortunately SQL Server does not seem to model Groups / users. I go into >> SQL Server and see a security tab. It has "logins". Is that a user? A >> specific ability to log in with a password? To what? The server itself? A >> specific database? Groups of databases? >> >> I see "roles" but these appear to be aimed at the server and none of these >> people are going to be doing anything at the server level. >> >> Can I safely ignore everything under the server security tab? >> >> I go to a database and I see a security tab. It has users and roles. >> Hmm... better (I would think). I would like to add users "under" the >> specific database that the user will access. >> >> So I try to add a new user but I do not see anywhere to require a password. >> Hmmm... >> >> I go into roles and I do not see any predefined role that looks like it >> would be useful to me in meeting my needs described above. If I look at >> "add new role" it asks for a password. The User / group model does nto >> assign passwords at the group level which implies that a role is not a group >> at the user / group paradigm. >> >> Is it just me, or is SQL Server security just... different? Am I correct >> in assuming that it doesn't implement a user / group paradigm? >> >> And more importantly, where can I go to get a plain, simple, English >> description of how this mess works? >> >> And please excuse the tone that results from my frustration. The only help >> documents that I have found (and I have extensive lists of bookmarked web >> pages) so far assume that I am an administrator. I am not, and cannot >> afford to become one. And yet MS pushes SQL Express as if I (non-admin) >> should be able to use this as a data store pool. >> >> Help! >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Sat Feb 19 18:22:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Feb 2011 10:22:49 +1000 Subject: [AccessD] I'm getting nowhere In-Reply-To: <4D601FBA.5020302@colbyconsulting.com> References: <4D601FBA.5020302@colbyconsulting.com> Message-ID: <4D605ED9.11823.1EFC5774@stuart.lexacorp.com.pg> On 19 Feb 2011 at 14:53, jwcolby wrote: > If I could find something that started at the > "This is SQL Server security" basics I could learn this stuff. Maybe this will help. (This is "my" understanding of it - corrections from others welcome .) There are two levels of "Security" in SQL Server: 1. SQL Server Instance (Server name) level 2. Database level At the Instance Level, you have: 1. Server Roles 2. Logins At the Database level you have: 1. Database Roles 2. Users INSTANCE LEVEL ============== SERVER ROLES These are generic sets of "rights" which apply to the entire Instance. "Server role is used to grant server-wide privileges to a user" . Generally, use Public for all logins unless you need admin rights on the server. LOGIN To allow anyone to access SQL Server, you need to create a login at instance level for them and then define what that login can do in terms of individual databases Login = an entity that can log in to SQL Server. In your situation, you are using SQL Secruity so a Login needs a Username and Password. If using Windows/Mixed security, it could also be an Active Drectory user. Note the use of the word "entity" - not person. With SQL Security, an entity is entirely identified by the username/password pair. If you embed a standard username/password in a connection string for an application that connects to SQL Server, then that application itself is the logged in entity. Alternatively, if you collect the username/password from the person using that application and put that the in the connection string, the individual user is the entity. On creation, you can define the "Default Database" for the login - this is the one they automatically access (so your don't need to specify it in your connection string.) DATABASE LEVEL =============== DATABASE ROLE Role = a definition a what entities with that role can do in the database.. There are a number of predefined roles, which are useful for things like "read only" users but you frequently need to create your own and assign rights to specific database objects for that role. i.e. allow read only on some tables and write access on others. You can also do things like prevent users from directly writing to any tables and only allow them to run specfic stored prcedures to update data. Once you have defined a new role within the database, you can assign that role to specific users within that database. You can think of a role as similar to a Group, it defines a set of rights and you can assign roles to users in the same way you assign "group membership" to Windows users. USER Once you have created a Login, you go the relevant database ( or databases) and assign rights to that login in that database. You do that by adding the Login as a User in that database. User = The definition of what a particular login entity can do in the database. To make a specific login a user in the database, you create a new user and select the existing Login name. Note that you can give that user the same name as the Login name or use a completely different one. Unless you have a good reason, I'd use the same as the login name. You then assign Databse Roles to the User to control what the user can do in the database. -- Stuart From rockysmolin at bchacc.com Mon Feb 21 10:10:33 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:10:33 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters> <556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: Robin: No images in the report. Pretty plain vanilla stuff. And it works when called from the form for which I originally implemented Lebans' code. But it doesn't work from the second form unless I run it once from the first form. Then the second form works. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robin Lawrence Sent: Saturday, February 19, 2011 2:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem Hi Rocky, Just a WAG - does the report which doesnt work have an external image in it? I had a problem with this some time ago and found the answer here http://bytes.com/topic/access/answers/658575-stephen-lebans-snapshot-pdf-sol ution Regards Robin ----- Original Message ----- From: "Rocky Smolin" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 19, 2011 1:49 AM Subject: Re: [AccessD] FW: Convert To PDF Problem > Dan: > > No soap. The code us in a module and is a Public Function. > > And works perfectly when it is called from the form where I first > implemented it. > > But when I call it from the second form it doesn't work. > > However, if I call it from the first form, the call it from the second > form > then it DOES work in the second form. > > So the call in the first form is apparently creating some condition that > the > second form doesn't. > > But danged if I can spot it. > > TIA > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 18, 2011 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > Two ideas to try: > > 1) Instead of "SnapshotFormat(*.snp)", try acFormatSNP (although they are > probably equal). > > 2) Open an unrelated select query prior to the DoCmd.OutputTo line. I > need > to do this at one place in my code to get OutputTo to work. Then close > the > query later. > > DoCmd.OpenQuery "qryAnySelectQuery" > DoCmd.OutputTo acOutputReport, RptName, acFormatSNP, strPathandFileName > DoCmd.Close acQuery, "qryAnySelectQuery" > > HTH, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Friday, February 18, 2011 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Lambert: > > Thanks for the idea but it didn't seem to make any difference. Still does > not return to the next statement after the OutputTo. But if I run the > ConvertToPDF in the other form first, then it works when called from the > second form. > > Very mysterious. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, February 18, 2011 7:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: Convert To PDF Problem > > > Hi Rocky, > > I honestly cannot remember how I worked this out, but I too had some > problems when I first started to use the wondrous LeBans code for PDF > production. For some reason it did not work unless the database window was > (nominally) visible. > > I resolved the issues by adding a few lines of code around those two > lines. > > Lambert > > Leban's original code... > ========================================== > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > ' Make sure the process has time to complete > DoEvents > ========================================== > > Here is my modified code. The additons are lines 200,210,230, 240 and 250. > > ========================================== > ' Export the selected Report to SnapShot format > 200 DoCmd.Echo False > 'Show the db window > 210 DoCmd.SelectObject acTable, , True > > 220 DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > 230 DoCmd.SelectObject acTable, , True > 240 DoCmd.RunCommand acCmdWindowHide > > 'turn the echo back on > 250 DoCmd.Echo True > > ' Make sure the process has time to complete > > 260 DoEvents > ========================================== > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Thursday, February 17, 2011 1:59 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Michael: > > I'm using Lebans' ConvertReportToPDF which is a Public Function and is > included in a module named modReportToPDF which you can download form his > site. > > This function is called from two places in the app and is called like > this: > > Call ConvertReportToPDF("rptRentalAgreement", , strRAPDFName, , False) > > So there are no declares in either of the two forms that call > ConvertReportToPDF. However, in Lebans' module here are a bunch of > Private > Declares. There are no duplicates of these Declares in other modules, > however, public or otherwise. > > Is that what I'm looking for? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Mattys > Sent: Wednesday, February 16, 2011 9:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: Convert To PDF Problem > > Hi Rocky, > > No, quite familiar actually. > My turn to be vague ... > > You'll need to examine those declares again. > One or more of your declares is being called by your form/report because > it > is public and is probably a duplicate of a private declare that your code > should be using. > Even though they look the same, they are not - hence no functionality. > > > Michael R Mattys > Business Process Developers > www.mattysconsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Wednesday, February 16, 2011 11:40 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] FW: Convert To PDF Problem > > So here's what I've found out so far. The Convert to PDF routine is > called > form two places in the program, one which has been working a long time - > call it the old one - and the new one I added. > > If the new one is run before the old one, it stops executing at > > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > Just never returns from this command. Doesn't hang, you can go ahead and > operate on the form. But contorl is never passed to the next statement. > > However, if you call the old one first, then the new one works. > > So the old one is apparently setting something somewhere that makes the > new > one work. But I can't see it to save my soul. > > Pretty vague, huh? But all WAGs welcome. > > MTIA > > Rocky Smolin > Beach Access Software > 858-259-4334 > Skype: rocky.smolin > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Mon Feb 21 10:40:33 2011 From: cjlabs at att.net (Carolyn Johnson) Date: Mon, 21 Feb 2011 10:40:33 -0600 Subject: [AccessD] FW: Convert To PDF Problem References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> Message-ID: <6577705DE870458B8A84B96BBC0EA0FF@Dell> I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > From rockysmolin at bchacc.com Mon Feb 21 10:55:12 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 21 Feb 2011 08:55:12 -0800 Subject: [AccessD] FW: Convert To PDF Problem In-Reply-To: <6577705DE870458B8A84B96BBC0EA0FF@Dell> References: <79E4F3372029438DB264A4E6DB8E88B4@HAL9005><46E62D0DBCFB479B95F87CF64F0F2B78@Gateway><7D48AB9E6C794F4E9D5FD697724B4490@HAL9005><30D57E25E3164C6F80178CB681220BCC@DanWaters><556C1AA2E3CD4D36A0A05E89C248C4F5@DBYHJV3J> <6577705DE870458B8A84B96BBC0EA0FF@Dell> Message-ID: <1C2CEB538F7C4EAB86D2E97BF6D71D9C@HAL9005> Carolyn: Could I impose on you to send me those updated dlls off line (those are dynapdf.dll and strStorage.dll, yes?). Mine are dated 2006. Maybe that will clear up the problem. Thanks and regards, Rocky Smolin Beach Access Software 858-259-4334 Skype: rocky.smolin www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, February 21, 2011 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Convert To PDF Problem I don't know that I have anything useful to add to this discussion, but I have been using this code for a long time without problems. There was an update a couple of years ago with new .dll files -- 2009. I call this code in several places using blRet = ConvertReportToPDF(strReportName, vbNullString, myPath & "Results.pdf", False, False) blRet is a boolean declared in each sub where I call ConvertReportToPDF. I don't do anything with it, but this is how the version I got was done. I did have an issue with using in Access2010 because the snapshot format is no longer available. I now have code to check the Access version and if it's 2010, I create the pdf using the built-in PDF converter. Otherwise, the database uses the code above. Carolyn Johnson St Louis, MO > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Tuesday, February 15, 2011 11:50 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Convert To PDF Problem > > Dear List: > > I implemented Lebans' ConvertReportToPDF and it worked really well to > create > a report as a PDF. Then I implemented in another place in the code. And > it > doesn't work. Same Call. Passing the same parameters. I step through > Lebans' code line by line, watching all the variables. When it gets to > the > line > > ' Export the selected Report to SnapShot format > DoCmd.OutputTo acOutputReport, RptName, "SnapshotFormat(*.snp)", _ > strPathandFileName > > it doesn't comes back to the next line. And no SNP file is created. > > The next line is: > > ' Make sure the process has time to complete > DoEvents > > Stepping through the code when called from the place I first used it it > steps just fine. Does the output, creates the snp file and lights up the > DoEvents. > > The header is to the module is: > > Public Function ConvertReportToPDF( _ > Optional RptName As String = "", _ > Optional SnapshotName As String = "", _ > Optional OutputPDFname As String = "", _ Optional ShowSaveFileDialog As > Boolean = False, _ Optional StartPDFViewer As Boolean = True, _ Optional > CompressionLevel As Long = 0, _ Optional PasswordOwner As String = "", _ > Optional PasswordOpen As String = "", _ Optional PasswordRestrictions As > Long = 0, _ Optional PDFNoFontEmbedding As Long = 0 _ > ) As Boolean > > and the arguments passed to the routine are the same in both cases. > > I am truly baffled - don't even have a clue what to test. > > Any ideas, WAGs even, gratefully accepted. > > MTIA > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > Skype: rocky.smolin > > www.e-z-mrp.com > > www.bchacc.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Feb 21 11:58:06 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 09:58:06 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 13:23:40 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 21 Feb 2011 14:23:40 -0500 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <4D62BBBC.2040408@colbyconsulting.com> > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order to do > maintenance or make data structure changes to an evolving database. I am > open to any suggestions including learning more sophisticated coding than I > am used to . . . > > I don't have any long running processes that would take more than a minute > or two, so checking for inactivity every 30 minutes, with shut down after 60 > minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you are > used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected result > with other code procedures. For some reason Access (at least with the > programs I use to build (large complex)) has never liked timers, internal > (form) or external (API).. I think it has something to do with running them > in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a user > down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in the > past. Was always able to get around it because of my network permissions - > with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - that's > a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 13:29:44 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 11:29:44 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: It uses a dll not form timer as far as I can see. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at comcast.net Mon Feb 21 14:34:53 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 21 Feb 2011 14:34:53 -0600 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> Message-ID: <000601cbd206$cca0d440$65e27cc0$@comcast.net> I downloaded and looked at this. It does use a form timer, and it looks to see if the current active control is the same active control as the last time it looked. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, February 21, 2011 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Jennifer, I just ran across the following utility for shutting down an inactive Access application. Does not us a form timer. http://www.peterssoftware.com/isd.htm. I have not used this so can not comment on functionality, but it does look promising. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert and Gustav, I have to get all users out of the database at the end of day in order to do maintenance or make data structure changes to an evolving database. I am open to any suggestions including learning more sophisticated coding than I am used to . . . I don't have any long running processes that would take more than a minute or two, so checking for inactivity every 30 minutes, with shut down after 60 minutes idle is reasonable for what I am working on now. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 14, 2011 2:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force Closing the FE Hi Robert et al I can confirm this observation. It just doesn't work reliably and can cause serious trouble for data consistency unless you somehow - while any important function runs - inhibits the timer, which may imply coding on a higher level than you are used to - using classes, WithEvents or the like. /gustav >>> robert at servicexp.com 14-02-2011 23:09 >>> The only problem with a "timer" solution is that in heavily used / complicated databases, running a timer can cause some very unexpected result with other code procedures. For some reason Access (at least with the programs I use to build (large complex)) has never liked timers, internal (form) or external (API).. I think it has something to do with running them in the same thread Access uses. I had to use network commands inside of access (ActiveX) to shut a user down. Not automatic, but very effective (and more complicated) WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Force Closing the FE Beautiful. I knew this had to be a problem that others had faced in the past. Was always able to get around it because of my network permissions - with this database I can't do that. Appreciate all your help - including the idea of an entry/exit log - that's a great one. Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 14:54:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 22 Feb 2011 06:54:01 +1000 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: References: , <004a01cbcc99$57261fd0$1201a8c0@Schroeder>, Message-ID: <4D62D0E9.4286.2889E9F5@stuart.lexacorp.com.pg> Yes it does. In frmInactiveShutDown Private Sub Form_Timer() '********************************************************************** '* This timer event procedure will shut down the application '* after a specified number of minutes of inactivity. Inactivity '* is measured based on how long a control remains the ActiveControl. '********************************************************************** And it doesn't allow remote control or shut down at a specific time. Very limited compared to previous posted solutions. -- Stuart On 21 Feb 2011 at 9:58, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 2:49 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock Sent: Monday, February 14, 2011 2:41 PM To: > accessd at databaseadvisors.com Subject: Re: [AccessD] (Don't) Force > Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > > >>> robert at servicexp.com 14-02-2011 23:09 >>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal (form) or external (API).. I think it has something > to do with running them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross Sent: Monday, February 14, 2011 4:53 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Force Closing > the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 17:28:09 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 21 Feb 2011 15:28:09 -0800 Subject: [AccessD] (Don't) Force Closing the FE In-Reply-To: <4D62BBBC.2040408@colbyconsulting.com> References: <004a01cbcc99$57261fd0$1201a8c0@Schroeder> <4D62BBBC.2040408@colbyconsulting.com> Message-ID: <090CDAD44D744C36B0502A547965F956@murphy3234aaf1> My Error. I just downloaded the zip file and looked in to see the exe. Actually installed it and opened the example. It does use a hidden form and timer. Not what I thought it was. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 21, 2011 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (Don't) Force Closing the FE > I just ran across the following utility for shutting down an inactive Access > application. Does not us a form timer. I went to the web site. It says nothing about not using a timer. John W. Colby www.ColbyConsulting.com On 2/21/2011 12:58 PM, Doug Murphy wrote: > Jennifer, > > I just ran across the following utility for shutting down an inactive > Access application. Does not us a form timer. > http://www.peterssoftware.com/isd.htm. I have not used this so can not > comment on functionality, but it does look promising. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 2:49 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert and Gustav, > > I have to get all users out of the database at the end of day in order > to do maintenance or make data structure changes to an evolving > database. I am open to any suggestions including learning more > sophisticated coding than I am used to . . . > > I don't have any long running processes that would take more than a > minute or two, so checking for inactivity every 30 minutes, with shut > down after 60 minutes idle is reasonable for what I am working on now. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, February 14, 2011 2:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] (Don't) Force Closing the FE > > Hi Robert et al > > I can confirm this observation. > It just doesn't work reliably and can cause serious trouble for data > consistency unless you somehow - while any important function runs - > inhibits the timer, which may imply coding on a higher level than you > are used to - using classes, WithEvents or the like. > > /gustav > > >>>> robert at servicexp.com 14-02-2011 23:09>>> > The only problem with a "timer" solution is that in heavily used / > complicated databases, running a timer can cause some very unexpected > result with other code procedures. For some reason Access (at least > with the programs I use to build (large complex)) has never liked > timers, internal > (form) or external (API).. I think it has something to do with running > them in the same thread Access uses. > > I had to use network commands inside of access (ActiveX) to shut a > user down. Not automatic, but very effective (and more complicated) > > WBR > Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Monday, February 14, 2011 4:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Force Closing the FE > > Beautiful. I knew this had to be a problem that others had faced in > the past. Was always able to get around it because of my network > permissions - with this database I can't do that. > > Appreciate all your help - including the idea of an entry/exit log - > that's a great one. > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gweedensmith at iowatelecom.net Wed Feb 23 21:43:56 2011 From: gweedensmith at iowatelecom.net (Greg Smith) Date: Wed, 23 Feb 2011 21:43:56 -0600 Subject: [AccessD] Emails not working? Message-ID: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Where has everyone gone? Greg From rockysmolin at bchacc.com Wed Feb 23 23:55:05 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 23 Feb 2011 21:55:05 -0800 Subject: [AccessD] Emails not working? In-Reply-To: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> Message-ID: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> The last possible Access question was answered on Monday. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Wednesday, February 23, 2011 7:44 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails not working? Where has everyone gone? Greg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 24 00:08:40 2011 From: john at winhaven.net (John Bartow) Date: Thu, 24 Feb 2011 00:08:40 -0600 Subject: [AccessD] Emails not working? In-Reply-To: <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: <000b01cbd3e9$487cf2e0$d976d8a0$@winhaven.net> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 23, 2011 11:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Emails not working? The last possible Access question was answered on Monday. Rocky From jwcolby at colbyconsulting.com Thu Feb 24 05:31:37 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 06:31:37 -0500 Subject: [AccessD] Just quiet? Message-ID: <4D664199.3090801@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com From garykjos at gmail.com Thu Feb 24 06:16:57 2011 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Feb 2011 06:16:57 -0600 Subject: [AccessD] Just quiet? In-Reply-To: <4D664199.3090801@colbyconsulting.com> References: <4D664199.3090801@colbyconsulting.com> Message-ID: It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 df.waters at comcast.net Thu Feb 24 07:40:12 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 07:40:12 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass Message-ID: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ From jwcolby at colbyconsulting.com Thu Feb 24 08:25:06 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 24 Feb 2011 09:25:06 -0500 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D666A42.7020703@colbyconsulting.com> Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked myself > out of an Access file by mistakenly running code to change its properties, > including setting the AllowShiftBypass property to False. The normal way to > fix this is to open a new Access file and import all the objects, then reset > references, startup properties, and options. It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I could > make a utility to reset an Access file?s properties where that file had its > properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run the > first procedure ? this will ask you to select an Access file, and it will > then reset several properties to true so that you can open it normally > again. > > Hope someone can use this! > Dan > > ?------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the > _ > user picked at least one file. If the .Show method returns > _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > ?------------------------ > > > > From andy at minstersystems.co.uk Thu Feb 24 11:31:56 2011 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Feb 2011 17:31:56 -0000 Subject: [AccessD] Just quiet? In-Reply-To: Message-ID: Hush -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 February 2011 12:17 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Just quiet? It would seem so. GK On Thu, Feb 24, 2011 at 5:31 AM, jwcolby wrote: > > -- > John W. Colby > www.ColbyConsulting.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 davidmcafee at gmail.com Thu Feb 24 12:32:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 24 Feb 2011 10:32:11 -0800 Subject: [AccessD] Just quiet? In-Reply-To: References: Message-ID: shhh, you guys keep waking me up! On Thu, Feb 24, 2011 at 9:31 AM, Andy Lacey wrote: > Hush > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 24 February 2011 12:17 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Just quiet? > > > It would seem so. > > GK > From df.waters at comcast.net Thu Feb 24 12:37:30 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 24 Feb 2011 12:37:30 -0600 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D666A42.7020703@colbyconsulting.com> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> <4D666A42.7020703@colbyconsulting.com> Message-ID: <000c01cbd451$e5e54b00$b1afe100$@comcast.net> Thanks John! Of course now that I have this I'll probably remember not to lock myself out anymore. ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 24, 2011 8:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How To Undo Disabled Shift Bypass Good job Dan. I have an access database that does that. It allows you to navigate to and select an access database to set all of those properties on (and there a bunch of them). John W. Colby www.ColbyConsulting.com On 2/24/2011 8:40 AM, Dan Waters wrote: > Sure been quiet for a few days! So this is something I finished yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False. > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options. It's a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file's properties where that > file had its properties set to False. And it worked! > > Below is code that you can copy into a standard module in a new Access > file. Name that new file AllowBypass.mdb, or something similar. Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again. > > Hope someone can use this! > Dan > > '------------------------ > Private MappSource As Access.Application > > Private Sub UnlockMDB() > 1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File > 2 stgSourceFilePath = SelectFile > 3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = > "" Then > 4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" > 5 Exit Sub > 6 End If > 7 DoEvents > > '-- Set Source MDB as the CurrentDatabase > 8 Set MappSource = New Access.Application > 9 MappSource.Visible = False > 10 MappSource.OpenCurrentDatabase stgSourceFilePath > 11 DoEvents > > 12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift > key bypass > 13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 > key > 14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True > 15 ChangeProperty "AllowFullMenus", dbBoolean, True > 16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > > 17 MappSource.CloseCurrentDatabase > 18 Set MappSource = Nothing > > 19 MsgBox "Your file at "& stgSourceFilePath& " is now available!", > vbInformation + vbOKOnly, "File Now Available" > > 20 Exit Sub > > EH: > 21 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 22 MsgBox stgPrompt, vbExclamation + vbOKOnly > 23 Stop > > End Sub > > Private Function SelectFile() As String > 1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > > 2 Set fDialog = FileDialog(msoFileDialogFilePicker) > > 3 With fDialog > > 4 .AllowMultiSelect = False > 5 .InitialView = msoFileDialogViewList > 6 .InitialFileName = CurrentProject.Path > 7 .Title = "Select the Access file." > > 8 .Filters.Clear > 9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns > True, the _ > user picked at least one file. If the .Show method > returns _ > False, the user clicked Cancel. > 10 If .Show = True Then > 11 For Each varFile In .SelectedItems > 12 SelectFile = varFile > 13 Next varFile > 14 Else > 15 SelectFile = "File Not Selected" > 16 End If > > 17 End With > > 18 Exit Function > > EH: > 19 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 20 MsgBox stgPrompt, vbExclamation + vbOKOnly > 21 Stop > > End Function > > Public Function ChangeProperty(stgPropName As String, varPropType As > Variant, varPropValue As Variant) As Boolean > 1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > > 2 Set dbs = MappSource.DBEngine(0)(0) > > 3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > > 4 ChangeProperty = True > > XH: > 5 Exit Function > > EH: > 6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created > 7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, > varPropType, varPropValue) > 8 DBEngine(0)(0).Properties.Append prp > 9 Set prp = Nothing > 10 Resume Next > > 11 Case Else > 12 stgPrompt = "ERROR: SelectFile"& vbNewLine& vbNewLine _ > & "Line: "& Erl& vbNewLine _ > & "Number: "& Err.Number& vbNewLine _ > & "Description: "& Err.Description > 13 MsgBox stgPrompt, vbExclamation + vbOKOnly > 14 Stop > > 15 End Select > > End Function > > '------------------------ > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Feb 24 14:19:00 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 24 Feb 2011 12:19:00 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <007301cbd460$126db640$374922c0$@cox.net> Thanks for sharing Dan, I built a little utility to do this several years ago. It is a great way to keep the casual Access user out of your database internals. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 24, 2011 5:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How To Undo Disabled Shift Bypass Sure been quiet for a few days!? So this is something I finished yesterday. A few days ago, for about the hundredth time, I accidentally locked myself out of an Access file by mistakenly running code to change its properties, including setting the AllowShiftBypass property to False.? The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options.? It?s a pain. I recently did some work with OpenCurrentDatabase, and wondered if I could make a utility to reset an Access file?s properties where that file had its properties set to False.? And it worked! Below is code that you can copy into a standard module in a new Access file.? Name that new file AllowBypass.mdb, or something similar.? Run the first procedure ? this will ask you to select an Access file, and it will then reset several properties to true so that you can open it normally again.? Hope someone can use this! Dan ?------------------------ Private MappSource As Access.Application Private Sub UnlockMDB() 1???? On Error GoTo EH ????????? '-- Note:? Run this application from this procedure. ????????? Dim stgSourceFilePath As String ????????? Dim stgPrompt As String ????????? ??????????'-- Select Access File 2???????? stgSourceFilePath = SelectFile 3???????? If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = "" Then 4???????????? MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" 5???????????? Exit Sub 6???????? End If 7???????? DoEvents ????????? ??????????'-- Set Source MDB as the CurrentDatabase 8???????? Set MappSource = New Access.Application 9???????? MappSource.Visible = False 10??? ????MappSource.OpenCurrentDatabase stgSourceFilePath 11??????? DoEvents ????????? 12??????? ChangeProperty "AllowBypassKey", dbBoolean, True? '-- Allow shift key bypass 13??????? ChangeProperty "AllowSpecialKeys", dbBoolean, True? '-- Allow F11 key 14??????? ChangeProperty "AllowBreakIntoCode", dbBoolean, True 15??????? ChangeProperty "AllowFullMenus", dbBoolean, True 16??????? ChangeProperty "StartupShowDBWindow", dbBoolean, True ????????? 17??????? MappSource.CloseCurrentDatabase 18??????? Set MappSource = Nothing ????????? 19??????? MsgBox "Your file at " & stgSourceFilePath & " is now available!", vbInformation + vbOKOnly, "File Now Available" ????????? 20??????? Exit Sub ????????? EH: 21??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 22??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 23??????? Stop ????????? End Sub Private Function SelectFile() As String 1???? On Error GoTo EH ????????? Dim fDialog As Office.FileDialog ????????? Dim stgPrompt As String ????????? Dim varFile As Variant 2???????? Set fDialog = FileDialog(msoFileDialogFilePicker) 3???????? With fDialog 4??????????? .AllowMultiSelect = False 5??????????? .InitialView = msoFileDialogViewList 6??????????? .InitialFileName = CurrentProject.Path 7??????????? .Title = "Select the Access file." 8??????????? .Filters.Clear 9??????????? .Filters.Add "Access Databases", "*.MDB" ??????????? '.Filters.Add "Access Projects", "*.ADP" ????????????? '-- Show the dialog box. If the .Show method returns True, the _ ????????????????? user picked at least one file. If the .Show method returns _ ??? ??????????????False, the user clicked Cancel. 10??????????? If .Show = True Then 11??????????????? For Each varFile In .SelectedItems 12??????????????????? SelectFile = varFile 13??????????????? Next varFile 14??????????? Else 15??????????????? SelectFile = "File Not Selected" 16??????????? End If 17??????? End With 18??????? Exit Function EH: 19??????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????? & "Number:??????? " & Err.Number & vbNewLine _ ????????????? & "Description: " & Err.Description 20??????? MsgBox stgPrompt, vbExclamation + vbOKOnly 21??????? Stop End Function Public Function ChangeProperty(stgPropName As String, varPropType As Variant, varPropValue As Variant) As Boolean 1???? On Error GoTo EH ????????? Dim prp As DAO.Property ????????? Dim stgPrompt As String ????????? Dim dbs As DAO.Database ????????? 2???????? Set dbs = MappSource.DBEngine(0)(0) 3???????? dbs.Properties(stgPropName) = varPropValue ????????? ??????'??? For Each prp In dbs.Properties ????? '??????? If prp.Name = "AllowBypassKey" = True Then ????? '??????????? Debug.Print prp.Name ????? '??????????? Debug.Print prp.Type ????? '??????????? Debug.Print prp.Value ????? '??????????? Debug.Print ????? '??????? End If ????? '??? Next prp 4???????? ChangeProperty = True XH: 5???????? Exit Function EH: 6???????? Select Case Err.Number ????????????? Case 3270 ????????????????? '-- Add property if not already created 7???????????????? Set prp = DBEngine(0)(0).CreateProperty(stgPropName, varPropType, varPropValue) 8???????????????? DBEngine(0)(0).Properties.Append prp 9???????????????? Set prp = Nothing 10?????? ?????????Resume Next 11??????????? Case Else 12??????????????? stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ ????????????????????? & "Line:??????????? " & Erl & vbNewLine _ ????????????????????? & "Number:??????? " & Err.Number & vbNewLine _ ?????????????????????& "Description: " & Err.Description 13??????????????? MsgBox stgPrompt, vbExclamation + vbOKOnly 14??????????????? Stop 15??????? End Select End Function ?------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 24 15:14:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:14:27 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> "The normal way to fix this is to open a new Access file and import all the objects, then reset references, startup properties, and options." Not for everyone. :-) I think you will find that quite a few of us have a similar module in little MDB that we keep in our toolboxes. Still, it's good to remind people occassionally -- Stuart On 24 Feb 2011 at 7:40, Dan Waters wrote: > Sure been quiet for a few days!? So this is something I finished > yesterday. > > A few days ago, for about the hundredth time, I accidentally locked > myself out of an Access file by mistakenly running code to change its > properties, including setting the AllowShiftBypass property to False.? > The normal way to fix this is to open a new Access file and import all > the objects, then reset references, startup properties, and options.? > It?s a pain. > > I recently did some work with OpenCurrentDatabase, and wondered if I > could make a utility to reset an Access file?s properties where that > file had its properties set to False.? And it worked! > > Below is code that you can copy into a standard module in a new Access > file.? Name that new file AllowBypass.mdb, or something similar.? Run > the first procedure - this will ask you to select an Access file, and > it will then reset several properties to true so that you can open it > normally again.? > > Hope someone can use this! > Dan > From stuart at lexacorp.com.pg Thu Feb 24 15:47:23 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 25 Feb 2011 07:47:23 +1000 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net>, <4D66CA33.2897.28C1E75@stuart.lexacorp.com.pg> Message-ID: <4D66D1EB.25156.2AA4508@stuart.lexacorp.com.pg> Incidentally, I often leave a trapdoor inside the applications. I use a function to toggle the security state ( comment out particular properties depending on the requirement of the application) Function Lockdown(state As Boolean) SetProperty "AllowBypassKey", dbBoolean, Not state SetProperty "AllowFullMenus", dbBoolean, Not state SetProperty "AllowSpecialKeys", dbBoolean, Not state SetProperty "AllowToolbarChanges", dbBoolean, Not state SetProperty "AllowBuiltInToolbars", dbBoolean, Not state SetProperty "AllowBreakIntoCode", dbBoolean, Not state 'SetProperty "AllowSHortcutMenus", dbBoolean, Not state End Function Public Function SetProperty(strPropName As String, _ varPropType As Variant, varPropValue As Variant) As Boolean On Error GoTo Err_SetProperty Dim db As DAO.Database, prp As DAO.Property Set db = CurrentDb db.Properties(strPropName) = varPropValue SetProperty = True Set db = Nothing Exit_SetProperty: Exit Function Err_SetProperty: If Err = 3270 Then 'Property not found Set prp = db.CreateProperty(strPropName, varPropType, varPropValue) db.Properties.Append prp Resume Next Else SetProperty = False MsgBox "SetProperty", Err.Number, Err.Description Resume Exit_SetProperty End If End Function If I am using my own user level security, in my login process I use something like: If AccessLevel = 5 Then MsgBox "Developer Mode! - Close and Reopen Using the Bypass key" Lockdown False DoCmd.Quit You can also do something similar with a commandline switch and a Startup() function called from an AutoExec macro or your startup form. Note that similar code to the above is used in the tollbox MDB, the only difference is that "db" is passed as a parameter to SetProperty, rather than being hard coded to CurrentDB. Note also that Setproperty() can also be used to set other things such as built in Copyright notices, Version Numbers etc in the same or a different database and a similar GetProperty() function can be used to read them. -- Stuart On 25 Feb 2011 at 7:14, Stuart McLachlan wrote: > "The normal way to fix this is to open a new Access file and import > all the objects, then reset references, startup properties, and > options." > > Not for everyone. :-) > > I think you will find that quite a few of us have a similar module in > little MDB that we keep in our toolboxes. Still, it's good to remind > people occassionally > > > -- > Stuart > > On 24 Feb 2011 at 7:40, Dan Waters wrote: > > > Sure been quiet for a few days!? So this is something I finished > > yesterday. > > > > A few days ago, for about the hundredth time, I accidentally locked > > myself out of an Access file by mistakenly running code to change > > its properties, including setting the AllowShiftBypass property to > > False.? The normal way to fix this is to open a new Access file and > > import all the objects, then reset references, startup properties, > > and options.? It?s a pain. > > > > I recently did some work with OpenCurrentDatabase, and wondered if I > > could make a utility to reset an Access file?s properties where that > > file had its properties set to False.? And it worked! > > > > Below is code that you can copy into a standard module in a new > > Access file.? Name that new file AllowBypass.mdb, or something > > similar.? Run the first procedure - this will ask you to select an > > Access file, and it will then reset several properties to true so > > that you can open it normally again.? > > > > Hope someone can use this! > > Dan > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Thu Feb 24 17:04:31 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Thu, 24 Feb 2011 17:04:31 -0600 Subject: [AccessD] Access 2007 Runtime on Windows Server 2003 ??? References: <008d01cbd3d5$10b9fbf0$322df3d0$@iowatelecom.net> <73E27E9362364AC8BFB27A6EAB332DFA@HAL9005> Message-ID: All, We are thinking about putting a small application, built for Access 2007 (Runtime) on a Windows Server 2003 - Standard Edition - Service Pack 2. This application will run unattended. Will Access 2007 Runtime work on Windows Server 2003 Standard Edition - SP2? Are others doing this? Are we headed for trouble? Thanks, Brad From iggy at nanaimo.ark.com Fri Feb 25 08:50:54 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 25 Feb 2011 06:50:54 -0800 Subject: [AccessD] How To Undo Disabled Shift Bypass In-Reply-To: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> References: <000501cbd428$5cb8daf0$162a90d0$@comcast.net> Message-ID: <4D67C1CE.1080804@nanaimo.ark.com> Hey Dan Ha ha ha ha ha ha ha ha ha !. This should have been OT: Friday Humour. That is the best I have heard, a developer locking themselves out of their own application. Just kidding I think we have all run into it at one time or another, trying to lock down what a user can do in an app. I know I did it myself a couple of years ago and spent several hours going "Oh crap Oh crap" until the "Duh" light came on and luckily I was able to copy it. Not a nice feeling. Dan Waters wrote: >Sure been quiet for a few days! So this is something I finished yesterday. > >A few days ago, for about the hundredth time, I accidentally locked myself >out of an Access file by mistakenly running code to change its properties, >including setting the AllowShiftBypass property to False. The normal way to >fix this is to open a new Access file and import all the objects, then reset >references, startup properties, and options. It?s a pain. > >I recently did some work with OpenCurrentDatabase, and wondered if I could >make a utility to reset an Access file?s properties where that file had its >properties set to False. And it worked! > >Below is code that you can copy into a standard module in a new Access >file. Name that new file AllowBypass.mdb, or something similar. Run the >first procedure ? this will ask you to select an Access file, and it will >then reset several properties to true so that you can open it normally >again. > >Hope someone can use this! >Dan > >?------------------------ >Private MappSource As Access.Application > >Private Sub UnlockMDB() >1 On Error GoTo EH > > '-- Note: Run this application from this procedure. > > Dim stgSourceFilePath As String > Dim stgPrompt As String > > '-- Select Access File >2 stgSourceFilePath = SelectFile >3 If stgSourceFilePath = "File Not Selected" Or stgSourceFilePath = >"" Then >4 MsgBox "Can't find file!", vbExclamation + vbOKOnly, "No File" >5 Exit Sub >6 End If >7 DoEvents > > '-- Set Source MDB as the CurrentDatabase >8 Set MappSource = New Access.Application >9 MappSource.Visible = False >10 MappSource.OpenCurrentDatabase stgSourceFilePath >11 DoEvents > >12 ChangeProperty "AllowBypassKey", dbBoolean, True '-- Allow shift >key bypass >13 ChangeProperty "AllowSpecialKeys", dbBoolean, True '-- Allow F11 >key >14 ChangeProperty "AllowBreakIntoCode", dbBoolean, True >15 ChangeProperty "AllowFullMenus", dbBoolean, True >16 ChangeProperty "StartupShowDBWindow", dbBoolean, True > >17 MappSource.CloseCurrentDatabase >18 Set MappSource = Nothing > >19 MsgBox "Your file at " & stgSourceFilePath & " is now available!", >vbInformation + vbOKOnly, "File Now Available" > >20 Exit Sub > >EH: >21 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >22 MsgBox stgPrompt, vbExclamation + vbOKOnly >23 Stop > >End Sub > >Private Function SelectFile() As String >1 On Error GoTo EH > > Dim fDialog As Office.FileDialog > Dim stgPrompt As String > Dim varFile As Variant > >2 Set fDialog = FileDialog(msoFileDialogFilePicker) > >3 With fDialog > >4 .AllowMultiSelect = False >5 .InitialView = msoFileDialogViewList >6 .InitialFileName = CurrentProject.Path >7 .Title = "Select the Access file." > >8 .Filters.Clear >9 .Filters.Add "Access Databases", "*.MDB" > '.Filters.Add "Access Projects", "*.ADP" > > '-- Show the dialog box. If the .Show method returns True, the >_ > user picked at least one file. If the .Show method returns >_ > False, the user clicked Cancel. >10 If .Show = True Then >11 For Each varFile In .SelectedItems >12 SelectFile = varFile >13 Next varFile >14 Else >15 SelectFile = "File Not Selected" >16 End If > >17 End With > >18 Exit Function > >EH: >19 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >20 MsgBox stgPrompt, vbExclamation + vbOKOnly >21 Stop > >End Function > >Public Function ChangeProperty(stgPropName As String, varPropType As >Variant, varPropValue As Variant) As Boolean >1 On Error GoTo EH > > Dim prp As DAO.Property > Dim stgPrompt As String > Dim dbs As DAO.Database > >2 Set dbs = MappSource.DBEngine(0)(0) > >3 dbs.Properties(stgPropName) = varPropValue > > ' For Each prp In dbs.Properties > ' If prp.Name = "AllowBypassKey" = True Then > ' Debug.Print prp.Name > ' Debug.Print prp.Type > ' Debug.Print prp.Value > ' Debug.Print > ' End If > ' Next prp > >4 ChangeProperty = True > >XH: >5 Exit Function > >EH: >6 Select Case Err.Number > > Case 3270 > '-- Add property if not already created >7 Set prp = DBEngine(0)(0).CreateProperty(stgPropName, >varPropType, varPropValue) >8 DBEngine(0)(0).Properties.Append prp >9 Set prp = Nothing >10 Resume Next > >11 Case Else >12 stgPrompt = "ERROR: SelectFile" & vbNewLine & vbNewLine _ > & "Line: " & Erl & vbNewLine _ > & "Number: " & Err.Number & vbNewLine _ > & "Description: " & Err.Description >13 MsgBox stgPrompt, vbExclamation + vbOKOnly >14 Stop > >15 End Select > >End Function > >?------------------------ > > > > > > From iggy at nanaimo.ark.com Sun Feb 27 07:43:20 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 05:43:20 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6A54F8.30203@nanaimo.ark.com> Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? From stuart at lexacorp.com.pg Sun Feb 27 08:33:01 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 00:33:01 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> A few thoughts on your questions: There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an application development environment. You still need some sort of development enviroment for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, Access, PowerBasic or anything else which is you feel is appropriate. An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC links to the SQL Server tables. That is all that you need sometimes. I tend to use Access this way for reporting applications. I generally don't use Access as the FE for data *management" since you should not as rule use linked table and bound forms to maintain data in SQL Server, you should be using CRUD (create, read, update, delete) stored procedures for this which implies going "unbound". I use PowerBasic/SQLTools for these applications. A major reason for using SQL Server is user security now that MS have depreciated it in Access. I update the same way that I update an Access FE/BE application. A user runs the FE by clicking on shortcut to a batch/cmd file or small application which copies the latest version of the FE to a local drive and then opens it. Updates to the BE are made by building a small Updater application which modifies the backend database using ODBC with CREATE and ALTER statements. -- Stuart On 27 Feb 2011 at 5:43, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > From iggy at nanaimo.ark.com Sun Feb 27 08:54:30 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 27 Feb 2011 06:54:30 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg> Message-ID: <4D6A65A6.2080604@nanaimo.ark.com> Hey Stuart Thanks Quickly and concisely cleared up many questions I had. How to you about updating stored procedures on the SQL Server end?. Stuart McLachlan wrote: >A few thoughts on your questions: > >There is really no such thing as an SQL Server app. SQL Server is a RDMS, not an >application development environment. You still need some sort of development enviroment >for the front end, up to you whether you use a web server and PHP or ADO.net, VB.Net, C#, >Access, PowerBasic or anything else which is you feel is appropriate. > >An SQLServer/Access is no more complex than an Access FE/BE app if you just use ODBC >links to the SQL Server tables. That is all that you need sometimes. I tend to use Access >this way for reporting applications. > >I generally don't use Access as the FE for data *management" since you should not as rule >use linked table and bound forms to maintain data in SQL Server, you should be using >CRUD (create, read, update, delete) stored procedures for this which implies going >"unbound". I use PowerBasic/SQLTools for these applications. > >A major reason for using SQL Server is user security now that MS have depreciated it in >Access. > >I update the same way that I update an Access FE/BE application. A user runs the FE by >clicking on shortcut to a batch/cmd file or small application which copies the latest version of >the FE to a local drive and then opens it. Updates to the BE are made by building a small >Updater application which modifies the backend database using ODBC with CREATE and >ALTER statements. > > > From ssharkins at gmail.com Sun Feb 27 09:32:15 2011 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 27 Feb 2011 10:32:15 -0500 Subject: [AccessD] Access and SQL Server References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <026EA1F3F2D543959BEF646378CB7B19@salvationomc4p> > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. ========Don't buy it... just ask questions here. :) > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? ========I'm not -- do almost no development work anymore. Susan H. From jwcolby at colbyconsulting.com Sun Feb 27 12:10:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 13:10:23 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <4D6A938F.1070900@colbyconsulting.com> I am trying to use Access to quickly get small applications up which can hit a database over the internet. An MDB is notorious for corrupting if accessed by an Access FE over the internet. AFAICT SQL Server works great. I have a hand full of small databases which have to be geographically dispersed, running on joe blow's computer from his house (or the local pub with internet). Access is RAD and has good reporting capabilities. *IF* I can get it to run under a runtime then it is also free. AFAICT it talks to the SQL Server over the internet just fine. I am talking about databases with 20 tables, FEs running on 10-20 people's machines, coming in to a SQL Server database over cable or DSL over an Hamachi VPN. Now that I am starting to understand the SQL Server security it is beginning to come together. John W. Colby www.ColbyConsulting.com On 2/27/2011 8:43 AM, Tony Septav wrote: > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly > complex pass through queries, ADO connections with stored procedures and Views, I have still to buy > Susan's book to answer some of my under lying questions. Other than being prepared for a client's > request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my > applications I have out there are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I don't think any of my clients > (including the big companies) know what SQL Server is. In fact I have produced only one app for a > client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL > Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server > link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from > the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) > much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? > Are you producing major apps dealing with millions of records? > Are you producing major apps dealing with hundreds of users? > How do you go about distributing changes to an ACCESS/SQL Server app? > > > > From stuart at lexacorp.com.pg Sun Feb 27 14:44:18 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:44:18 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A65A6.2080604@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A609D.14543.108FB59F@stuart.lexacorp.com.pg>, <4D6A65A6.2080604@nanaimo.ark.com> Message-ID: <4D6AB7A2.29205.11E3A570@stuart.lexacorp.com.pg> Use the ALTER PROCEDURE procedure that you get when you modify a stored procedure in Management Studio. Just copy that script into a string in the updater application and Execute it as part of the update process. If it is a new procedure in the destination database, change the ALTER to CREATE. -- Stuart On 27 Feb 2011 at 6:54, Tony Septav wrote: > Hey Stuart > Thanks > Quickly and concisely cleared up many questions I had. > How to you about updating stored procedures on the SQL Server end?. > > Stuart McLachlan wrote: > > >A few thoughts on your questions: > > > >There is really no such thing as an SQL Server app. SQL Server is a > >RDMS, not an application development environment. You still need some > >sort of development enviroment for the front end, up to you whether > >you use a web server and PHP or ADO.net, VB.Net, C#, Access, > >PowerBasic or anything else which is you feel is appropriate. > > > >An SQLServer/Access is no more complex than an Access FE/BE app if > >you just use ODBC links to the SQL Server tables. That is all that > >you need sometimes. I tend to use Access this way for reporting > >applications. > > > >I generally don't use Access as the FE for data *management" since > >you should not as rule use linked table and bound forms to maintain > >data in SQL Server, you should be using CRUD (create, read, update, > >delete) stored procedures for this which implies going "unbound". I > >use PowerBasic/SQLTools for these applications. > > > >A major reason for using SQL Server is user security now that MS > >have depreciated it in Access. > > > >I update the same way that I update an Access FE/BE application. A > >user runs the FE by clicking on shortcut to a batch/cmd file or small > >application which copies the latest version of the FE to a local > >drive and then opens it. Updates to the BE are made by building a > >small Updater application which modifies the backend database using > >ODBC with CREATE and ALTER statements. > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 14:51:28 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 06:51:28 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A938F.1070900@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> Message-ID: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> John, How are your Access apps getting/putting data to the SQL Server? Are you using ODBC/linked tables and bound forms (or have you gone over to the dark side)? If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. -- Stuart On 27 Feb 2011 at 13:10, jwcolby wrote: > I am trying to use Access to quickly get small applications up which > can hit a database over the internet. > > An MDB is notorious for corrupting if accessed by an Access FE over > the internet. AFAICT SQL Server works great. > From Darryl.Collins at iag.com.au Sun Feb 27 15:13:53 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Mon, 28 Feb 2011 08:13:53 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6A54F8.30203@nanaimo.ark.com> References: <4D6A54F8.30203@nanaimo.ark.com> Message-ID: <201102272114.p1RLE0tJ003528@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From rusty.hammond at cpiqpc.com Sun Feb 27 15:25:28 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 15:25:28 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102272114.p1RLE0tJ003528@databaseadvisors.com> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** 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 stuart at lexacorp.com.pg Sun Feb 27 15:30:45 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 07:30:45 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <201102272114.p1RLE0tJ003528@databaseadvisors.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AC285.26719.120E2CD8@stuart.lexacorp.com.pg> Very good point! -- Stuart On 27 Feb 2011 at 15:25, Rusty Hammond wrote: > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at comcast.net Sun Feb 27 15:43:49 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 15:43:49 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com> <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <004501cbd6c7$6dd32060$49796120$@comcast.net> Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Sun Feb 27 16:33:22 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:33:22 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com> <201102272114.p1RLE0tJ003528@databaseadvisors.com><49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET> <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Both. Of course you have to be careful. If someone is linked directly to a table and you add a field to the middle of the table, then their app will likely error out until you relink the table in the front end. Adding the field to the end of the table usually allows people to keep on working. Then you refresh the links in your development front end, make your programming changes, and distribute the new front end. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and SQL Server Rusty, Do you mean data changes, design changes, or both? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server I would add: Ability to make changes to the backend tables without kicking everyone out of the database. Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server ________________________________________________________________________ _______________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. ________________________________________________________________________ _______________ Tony, Why I like a SQL server BE. 1: Performance. It is faster and much more stable, especially if set up correctly and over a WAN / LAN. 2: Security of access and the actual data itself. 3: Audit: It is dead easy to set up triggers to show who changed what, when and from where. 4: Backup and restore is better cheers darryl ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Well I have spent a couple of weeks now fooling around with ACCESS and SQL Server. Using fairly complex pass through queries, ADO connections with stored procedures and Views, I have still to buy Susan's book to answer some of my under lying questions. Other than being prepared for a client's request to use SQL Server, I keep asking myself when would I need to use this. Only a few of my applications I have out there are dealing with records greater than a million. Because the apps are user specific I don't usually have more than 10 users on a network. I don't think any of my clients (including the big companies) know what SQL Server is. In fact I have produced only one app for a client that linked into an Oracle database (that is the flavour in my area not SQL). Yes I know SQL Server has hundreds of nifty little features that ACCESS doesn't, many activities use a SQL Server link (Web Pages), so it begs the question "Should I be learning how to develop a SQL Server app from the bottom up?" What I am finding is that an ACCESS/SQL Server app becomes very code intensive (forms, queries, etc) much more so than just using ACCESS. My question to those of you proficient in using ACCESS and SQL Server, how exactly are you applying it? Are you producing major apps dealing with millions of records? Are you producing major apps dealing with hundreds of users? How do you go about distributing changes to an ACCESS/SQL Server app? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________________________________ _______________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. ________________________________________________________________________ _______________ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From stuart at lexacorp.com.pg Sun Feb 27 16:38:15 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:38:15 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004501cbd6c7$6dd32060$49796120$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> Message-ID: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sun Feb 27 16:41:02 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 08:41:02 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rusty.hammond at cpiqpc.com Sun Feb 27 16:58:00 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Sun, 27 Feb 2011 16:58:00 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <004501cbd6c7$6dd32060$49796120$@comcast.net>, <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE00F@CPIEMAIL-EVS1.CPIQPC.NET> Never, but he asked. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better cheers darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop a > SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From df.waters at comcast.net Sun Feb 27 17:17:19 2011 From: df.waters at comcast.net (Dan Waters) Date: Sun, 27 Feb 2011 17:17:19 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE00D@CPIEMAIL-EVS1.CPIQPC.NET>, <004501cbd6c7$6dd32060$49796120$@comcast.net> <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg> Message-ID: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> The reason I asked about data changes was because I wanted to be sure I surrounded your statement, since I didn't understand it. I can make same design changes in an MDB BE as you described for SQL Server, as long as the BE is in a client-server configuration. What would prevent you from making design changes in a working MDB BE file? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Design changes. If you can't make data changes without kicking everyone out, you must be using the wrong DBMS. -- Stuart On 27 Feb 2011 at 15:43, Dan Waters wrote: > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Feb 27 17:45:52 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 09:45:52 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6AD257.1010.124BF797@stuart.lexacorp.com.pg>, <004b01cbd6d4$7b7272e0$725758a0$@comcast.net> Message-ID: <4D6AE230.23695.1289E189@stuart.lexacorp.com.pg> If a user is accessing the data in a table in an Access database, you can't modify that table - you get a dialog saying: "You can't open the table 'tblSomething' for modification. A query or form bound to the table is open...." -- Stuart On 27 Feb 2011 at 17:17, Dan Waters wrote: > The reason I asked about data changes was because I wanted to be sure > I surrounded your statement, since I didn't understand it. > > I can make same design changes in an MDB BE as you described for SQL > Server, as long as the BE is in a client-server configuration. What > would prevent you from making design changes in a working MDB BE file? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan Sent: Sunday, February 27, 2011 4:38 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Access and SQL Server > > Design changes. If you can't make data changes without kicking > everyone out, you must be using the wrong DBMS. > > -- > Stuart > > > On 27 Feb 2011 at 15:43, Dan Waters wrote: > > > Rusty, > > > > Do you mean data changes, design changes, or both? > > > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > I would add: Ability to make changes to the backend tables without > > kicking everyone out of the database. > > > > Rusty > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > > > ____________________________________________________________________ > > __ __ _______________ > > > > Note: This e-mail is subject to the disclaimer contained at the > > bottom of this message. > > ____________________________________________________________________ > > __ __ _______________ > > > > > > Tony, > > > > Why I like a SQL server BE. > > > > 1: Performance. It is faster and much more stable, especially if > > set up correctly and over a WAN / LAN. 2: Security of access and the > > actual data itself. 3: Audit: It is dead easy to set up triggers to > > show who changed what, when and from where. 4: Backup and restore is > > better > > cheers > > darryl > > > > > > > > ________________________________________ > > From: accessd-bounces at databaseadvisors.com > > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > > [iggy at nanaimo.ark.com] Sent: Monday, 28 February 2011 12:43 AM To: > > Access Developers discussion and problem solving Subject: [AccessD] > > Access and SQL Server > > > > Hey All > > Well I have spent a couple of weeks now fooling around with ACCESS > > and SQL Server. Using fairly complex pass through queries, ADO > > connections with stored procedures and Views, I have still to buy > > Susan's book to answer some of my under lying questions. Other than > > being prepared for a client's request to use SQL Server, I keep > > asking myself when would I need to use this. Only a few of my > > applications I have out there are dealing with records greater than > > a million. Because the apps are user specific I don't usually have > > more than 10 users on a network. I don't think any of my clients > > (including the big companies) know what SQL Server is. In fact I > > have produced only one app for a client that linked into an Oracle > > database (that is the flavour in my area not SQL). Yes I know SQL > > Server has hundreds of nifty little features that ACCESS doesn't, > > many activities use a SQL Server link (Web Pages), so it begs the > > question "Should I be learning how to develop a SQL Server app from > > the bottom up?" > > > > What I am finding is that an ACCESS/SQL Server app becomes very code > > intensive (forms, queries, etc) much more so than just using ACCESS. > > > > My question to those of you proficient in using ACCESS and SQL > > Server, how exactly are you applying it? Are you producing major > > apps dealing with millions of records? Are you producing major apps > > dealing with hundreds of users? How do you go about distributing > > changes to an ACCESS/SQL Server app? > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ____________________________________________________________________ > > __ __ _______________ > > > > The information transmitted in this message and its attachments (if > > any) is intended only for the person or entity to which it is > > addressed. The message may contain confidential and/or privileged > > material. Any review, retransmission, dissemination or other use of, > > or taking of any action in reliance upon this information, by > > persons or entities other than the intended recipient is prohibited. > > > > If you have received this in error, please contact the sender and > > delete this e-mail and associated material from any computer. > > > > The intended recipient of this e-mail may only use, reproduce, > > disclose or distribute the information contained in this e-mail and > > any attached files, with the permission of the sender. > > > > This message has been scanned for viruses. > > ____________________________________________________________________ > > __ __ _______________ > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > ******************************************************************** > > ** WARNING: All e-mail sent to and from this address will be > > received, scanned or otherwise recorded by the CPI Qualified Plan > > Consultants, Inc. corporate e-mail system and is subject to > > archival, monitoring or review by, and/or disclosure to, someone > > other than the recipient. > > ******************************************************************** > > ** > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sun Feb 27 18:12:48 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:12:48 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6A938F.1070900@colbyconsulting.com> <4D6AB950.22674.11EA3466@stuart.lexacorp.com.pg> Message-ID: <4D6AE880.2000806@colbyconsulting.com> ODBC Linked tables. > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables were held open over slow connections. No, the corruption occurs any time that a write occurs to an MDB and the connection is lost. Given the massive instability of the internet... John W. Colby www.ColbyConsulting.com On 2/27/2011 3:51 PM, Stuart McLachlan wrote: > John, > > How are your Access apps getting/putting data to the SQL Server? Are you using > ODBC/linked tables and bound forms (or have you gone over to the dark side)? > > If I recall correctly, the corruption with Access over the 'net was mainly when linked tables > were held open over slow connections. > From jwcolby at colbyconsulting.com Sun Feb 27 18:19:16 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 19:19:16 -0500 Subject: [AccessD] Troubleshooting a runtime Message-ID: <4D6AEA04.6090107@colbyconsulting.com> I have installed a runtime package to a VM for testing. I have a FE and a library which, when accesses from other machines with full Access installed do not error in any way. I try to run this under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open any (bound) form "there was an error executing the command". Basically it is just opening a form. Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to install Office (Access) on the machine for troubleshooting. Does anyone on the group actually use runtimes? What do you do if there is an error? -- John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Sun Feb 27 18:49:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 28 Feb 2011 10:49:36 +1000 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> What happens if you try it with a FE that doesn't open open a startup form and leaves the database exposed. Can you access the data in the tables? And no, I don't use runtimes. -- Stuart On 27 Feb 2011 at 19:19, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE > and a library which, when accesses from other machines with full > Access installed do not error in any way. I try to run this under the > runtime and the switchboard opens, but I get an immediate error as > soon as I try to open any (bound) form "there was an error executing > the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are > you supposed to troubleshoot install issues? Suppose I install this > on computer XYZ and it gives me an error. I am not going to install > Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if > there is an error? > > -- > 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 Sun Feb 27 20:18:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:18:08 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> References: <4D6AEA04.6090107@colbyconsulting.com> <4D6AF120.15306.12C4395A@stuart.lexacorp.com.pg> Message-ID: <4D6B05E0.2010905@colbyconsulting.com> The runtime doesn't leave the database exposed. Or any of the database tabs for that matter. Or any built-in menu. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:49 PM, Stuart McLachlan wrote: > What happens if you try it with a FE that doesn't open open a startup form and leaves the > database exposed. Can you access the data in the tables? > > And no, I don't use runtimes. > From jwcolby at colbyconsulting.com Sun Feb 27 20:21:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:21:00 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B068C.3090000@colbyconsulting.com> The switchboard is bound to a local table in the FE and it opens just fine. The bound forms that the switchboard opens without any complaint in a full on Access install appear to complain under the runtime. I just realized that the database is A2003 and the runtime is A2007. I guess I need to open it under A2007 full install and see what it says. The point really is that if you are going to use a runtime you really need feedback. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From jwcolby at colbyconsulting.com Sun Feb 27 20:38:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 27 Feb 2011 21:38:59 -0500 Subject: [AccessD] Troubleshooting a runtime In-Reply-To: <4D6AEA04.6090107@colbyconsulting.com> References: <4D6AEA04.6090107@colbyconsulting.com> Message-ID: <4D6B0AC3.3070005@colbyconsulting.com> I got it. The library was referenced at c:\Dev\PrisonMinistry but I had placed the FE and FW at c:\Runtimes\LenoirPM on the VM which has the runtime installed.. As soon as I created the same directory structure as my dev machine and moved the FE/FW to that location, and run AddPath.exe on that location - it started working. So, I am running a VM with only an Access 2007 runtime, with my FE and framework running under that runtime, hitting a SQL Server at a specific Hamachi IP address. Bound forms, linked tables. The table links have the Hamachi IP address hard coded in the connection, as well as a username / password which has db_DataReader and db_DataWriter rights on that specific database. Not optimum I know but *it works*! ATM it is on my local network but I have hope at least that it will run under a 2007 runtime on another machine across the internet. Now what I need to do is to get this VM running on my laptop, then take the laptop back to Arby's to test with their internet back into my network. John W. Colby www.ColbyConsulting.com On 2/27/2011 7:19 PM, jwcolby wrote: > I have installed a runtime package to a VM for testing. I have a FE and a library which, when > accesses from other machines with full Access installed do not error in any way. I try to run this > under the runtime and the switchboard opens, but I get an immediate error as soon as I try to open > any (bound) form "there was an error executing the command". Basically it is just opening a form. > > Given that the runtime does not provide any assistance at all, how are you supposed to troubleshoot > install issues? Suppose I install this on computer XYZ and it gives me an error. I am not going to > install Office (Access) on the machine for troubleshooting. > > Does anyone on the group actually use runtimes? What do you do if there is an error? > From iggy at nanaimo.ark.com Mon Feb 28 06:56:40 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 04:56:40 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6B9B88.2000405@nanaimo.ark.com> Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? From accessd at shaw.ca Mon Feb 28 09:56:43 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Feb 2011 07:56:43 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> Message-ID: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 users on at the time. Added the table and re-populated in about 5 minutes and only 1 person complained about the BE being slower and having to do a refresh. Real SQL DBs are very rugged...everything is just queued, cached and applied through background processes. The one thing is that a Real SQL DB is not just another MDB...there is little or no resemblance other than the both hold data. (Not wanting to get into a heated discussion, I must admit I cringe every time I hear of someone attempting a bound MS SQL DB.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Both? When did you ever have to kick users out of Access or any other multi-user DBMS to make data changes? -- Stuart On 27 Feb 2011 at 16:33, Rusty Hammond wrote: > Both. Of course you have to be careful. If someone is linked > directly to a table and you add a field to the middle of the table, > then their app will likely error out until you relink the table in the > front end. Adding the field to the end of the table usually allows > people to keep on working. Then you refresh the links in your > development front end, make your programming changes, and distribute > the new front end. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Sunday, February 27, 2011 3:44 PM To: 'Access Developers > discussion and problem solving' Subject: Re: [AccessD] Access and SQL > Server > > Rusty, > > Do you mean data changes, design changes, or both? > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty > Hammond Sent: Sunday, February 27, 2011 3:25 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > I would add: Ability to make changes to the backend tables without > kicking everyone out of the database. > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl > Collins Sent: Sunday, February 27, 2011 3:14 PM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Access and SQL > Server > > > ______________________________________________________________________ > __ _______________ > > Note: This e-mail is subject to the disclaimer contained at the bottom > of this message. > ______________________________________________________________________ > __ _______________ > > > Tony, > > Why I like a SQL server BE. > > 1: Performance. It is faster and much more stable, especially if set > up correctly and over a WAN / LAN. 2: Security of access and the > actual data itself. 3: Audit: It is dead easy to set up triggers to > show who changed what, when and from where. 4: Backup and restore is > better > cheers > darryl > > > > ________________________________________ > From: accessd-bounces at databaseadvisors.com > [accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav > [iggy at nanaimo.ark.com] > Sent: Monday, 28 February 2011 12:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and SQL Server > > Hey All > Well I have spent a couple of weeks now fooling around with ACCESS and > SQL Server. Using fairly complex pass through queries, ADO connections > with stored procedures and Views, I have still to buy Susan's book to > answer some of my under lying questions. Other than being prepared for > a client's request to use SQL Server, I keep asking myself when would > I need to use this. Only a few of my applications I have out there > are dealing with records greater than a million. Because the apps are > user specific I don't usually have more than 10 users on a network. I > don't think any of my clients (including the big companies) know what > SQL Server is. In fact I have produced only one app for a client that > linked into an Oracle database (that is the flavour in my area not > SQL). Yes I know SQL Server has hundreds of nifty little features > that ACCESS doesn't, many activities use a SQL Server link (Web > Pages), so it begs the question "Should I be learning how to develop > a SQL Server app from the bottom up?" > > What I am finding is that an ACCESS/SQL Server app becomes very code > intensive (forms, queries, etc) much more so than just using ACCESS. > > My question to those of you proficient in using ACCESS and SQL Server, > how exactly are you applying it? Are you producing major apps dealing > with millions of records? Are you producing major apps dealing with > hundreds of users? How do you go about distributing changes to an > ACCESS/SQL Server app? > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ______________________________________________________________________ > __ _______________ > > The information transmitted in this message and its attachments (if > any) is intended only for the person or entity to which it is > addressed. The message may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, > or taking of any action in reliance upon this information, by persons > or entities other than the intended recipient is prohibited. > > If you have received this in error, please contact the sender and > delete this e-mail and associated material from any computer. > > The intended recipient of this e-mail may only use, reproduce, > disclose or distribute the information contained in this e-mail and > any attached files, with the permission of the sender. > > This message has been scanned for viruses. > ______________________________________________________________________ > __ _______________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. corporate e-mail system and is subject to archival, monitoring or > review by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 11:01:27 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:01:27 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> Message-ID: <4D6BD4E7.6040106@colbyconsulting.com> Cringe away, it seems to work just fine. Until I see evidence to the contrary... John W. Colby www.ColbyConsulting.com On 2/28/2011 10:56 AM, Jim Lawrence wrote: > Years ago I dropped a table in error, on a live MS SQL DB...had about 50 > users on at the time. Added the table and re-populated in about 5 minutes > and only 1 person complained about the BE being slower and having to do a > refresh. Real SQL DBs are very rugged...everything is just queued, cached > and applied through background processes. > > The one thing is that a Real SQL DB is not just another MDB...there is > little or no resemblance other than the both hold data. (Not wanting to get > into a heated discussion, I must admit I cringe every time I hear of someone > attempting a bound MS SQL DB.) > > Jim > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Sunday, February 27, 2011 2:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Both? > > When did you ever have to kick users out of Access or any other multi-user > DBMS to make > data changes? > From davidmcafee at gmail.com Mon Feb 28 11:37:13 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 09:37:13 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 11:46:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:46:38 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> References: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <4D6BDF7E.7000603@colbyconsulting.com> > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? From jwcolby at colbyconsulting.com Mon Feb 28 11:59:33 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 12:59:33 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6BE285.7010601@colbyconsulting.com> > SQL Server will do everything on the server and return only the result set, which is much faster. And this is key. I am attempting to use bound forms, bound to a sql server table, over the internet. If I were foolish I would just bind the form to a result set which included every record in the table. Or I could open the form with a control set to a specific record ID and have SQL Server go get and return the data for that specific record ID to display in the form. For parent forms this would seem to be a no-brainer. For subforms it is less clear, and probably set up on a case by case basis. Perhaps (as an example) all of the orders for a client for a specific date range or something like that. In any event, it seems that you need to coerce SQL Server into doing the filtering back in the server and just sending a limited set of records, already sorted etc. John W. Colby www.ColbyConsulting.com On 2/28/2011 12:37 PM, David McAfee wrote: > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From jimdettman at verizon.net Mon Feb 28 12:29:21 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 13:29:21 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <6C1A3B79856049B1A846FE8C08D916B8@XPS> <> Um not quite right. Jet will pull indexes and read them before it starts doing a table scan if it can. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Monday, February 28, 2011 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Tony, you've already been given really good answers. I'd just like to add the following. Access/Jet, when querying will bring all of the tables over from the BE/Server (if FE/BE are split) then join them and filter out the unnecessary stuff on the user's PC to give you your final result set. SQL Server will do everything on the server (if you are running it on a server) and return only the result set, which is much faster. The other thing, like Jim mentioned. Did someone make an oops?!?!? Delete the wrong table? Update the wrong data/field/FK... You can restore the server back 5-10-15 minutes if you need. Pretty awesome. D On Mon, Feb 28, 2011 at 9:01 AM, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > >> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >> users on at the time. Added the table and re-populated in about 5 minutes >> and only 1 person complained about the BE being slower and having to do a >> refresh. Real SQL DBs are very rugged...everything is just queued, cached >> and applied through background processes. >> >> The one thing is that a Real SQL DB is not just another MDB...there is >> little or no resemblance other than the both hold data. (Not wanting to >> get >> into a heated discussion, I must admit I cringe every time I hear of >> someone >> attempting a bound MS SQL DB.) >> >> Jim >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Sunday, February 27, 2011 2:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access and SQL Server >> >> Both? >> >> When did you ever have to kick users out of Access or any other multi-user >> DBMS to make >> data changes? >> >> -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 28 12:48:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 13:48:39 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <6C1A3B79856049B1A846FE8C08D916B8@XPS> References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <6C1A3B79856049B1A846FE8C08D916B8@XPS> Message-ID: <4D6BEE07.9090405@colbyconsulting.com> Right. It will pull some of all of the indexes required for joins and filters (where clause), and then ask for specific parts of the file (if going to an MDB) or specific records (if going to SQL Server). With SQL Server it is possible to just hand the filter and join info to SQL Server and have SQL Server do all of the work, returning just the data. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:29 PM, Jim Dettman wrote: > < BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set.>> > > Um not quite right. Jet will pull indexes and read them before it starts > doing a table scan if it can. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Monday, February 28, 2011 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Tony, you've already been given really good answers. > > I'd just like to add the following. > > Access/Jet, when querying will bring all of the tables over from the > BE/Server (if FE/BE are split) then join them and filter out the unnecessary > stuff on the user's PC to give you your final result set. > SQL Server will do everything on the server (if you are running it on a > server) and return only the result set, which is much faster. > > The other thing, like Jim mentioned. Did someone make an oops?!?!? > Delete the wrong table? Update the wrong data/field/FK... > > You can restore the server back 5-10-15 minutes if you need. > > Pretty awesome. > > > D > > > > > > On Mon, Feb 28, 2011 at 9:01 AM, jwcolbywrote: > >> Cringe away, it seems to work just fine. Until I see evidence to the >> contrary... >> >> >> John W. Colby >> www.ColbyConsulting.com >> >> On 2/28/2011 10:56 AM, Jim Lawrence wrote: >> >>> Years ago I dropped a table in error, on a live MS SQL DB...had about 50 >>> users on at the time. Added the table and re-populated in about 5 minutes >>> and only 1 person complained about the BE being slower and having to do a >>> refresh. Real SQL DBs are very rugged...everything is just queued, cached >>> and applied through background processes. >>> >>> The one thing is that a Real SQL DB is not just another MDB...there is >>> little or no resemblance other than the both hold data. (Not wanting to >>> get >>> into a heated discussion, I must admit I cringe every time I hear of >>> someone >>> attempting a bound MS SQL DB.) >>> >>> Jim >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >>> McLachlan >>> Sent: Sunday, February 27, 2011 2:41 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Access and SQL Server >>> >>> Both? >>> >>> When did you ever have to kick users out of Access or any other > multi-user >>> DBMS to make >>> data changes? >>> >>> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> From rusty.hammond at cpiqpc.com Mon Feb 28 12:57:14 2011 From: rusty.hammond at cpiqpc.com (Rusty Hammond) Date: Mon, 28 Feb 2011 12:57:14 -0600 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BDF7E.7000603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> Message-ID: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- 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 Mon Feb 28 13:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:01:34 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BF10E.5050603@colbyconsulting.com> As soon as you say "use macros, not vba" I stop listening. Just me of course. John W. Colby www.ColbyConsulting.com On 2/28/2011 1:57 PM, Rusty Hammond wrote: > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From iggy at nanaimo.ark.com Mon Feb 28 12:09:39 2011 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 28 Feb 2011 10:09:39 -0800 Subject: [AccessD] Access and SQL Server Message-ID: <4D6BE4E3.8050801@nanaimo.ark.com> Hey All Thank you all again, I am quickly learning many things from your responses. I am just an old fart trying to play catch up with you guys (Oops and gals). I am trying to learn how to do things with a SQL Server back end, by trying to duplicate what I can do with an old MDB back end application. I am finding at times when doing my research on the Internet that I will read "Do it this way" and then next read "No don't do it that way do it this way". Also when I complete one task I think "Now how can I do this slighty different", this becomes quite frustrating, after 2 to 3 hours of reading other forum responses and basically finding no "hits", I will find some esoteric little example, usually not on topic, that finally simply describes how to do what I was looking for. Anyway this is my problem to solve, thank you again for your all your help. Onward and upward. This is a scary path. From jimdettman at verizon.net Mon Feb 28 13:27:47 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 14:27:47 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: Very limited (I fired it up once to date). You must develop your app as a web database and not all Access features are available. And a existing database won't always convert to a web enabled database either, so it's not as cut and dry as one would think. There are restrictions on the data types, control events, primary keys (all must be longs). There is also an off-line caching mode that can be used, which so far looks messy (here's your replication replacement). But that may be my lack of understanding. It's come a very long way over what was offered in A2007, but I think it still has another version to go before I'd want to try anything with it. This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), which introduced a host of new features (and made Access really usable for the first time), but didn't become solid until Access 2.0. And I haven't checked the licensing yet, but I've heard a couple grumble that it's pricey. Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond Sent: Monday, February 28, 2011 01:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Reading your decriptions of what you are doing, sounds like a good fit for the new Access Sharepoint services. I'm curious if anyone on the list has used the service. >From what I understand, with Access 2010 and the Access Sharepoint service, you can create your app in Access, then post it to Sharepoint and your forms, reports, queries, etc... Are converted to Sharepoint pages. One caveat seems to be that you have to use Access Macro's and not any vba for it to work. Anyone have any experience with this yet? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, February 28, 2011 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server > Are any of your developing full blown ACCESS/SQL Server applications for clients? I am just beginning to do this. I have three applications that need to access data from the internet. Real (old) men use SQL Server and HTML, written in notepad. I am not a real man. Though I am old! ;) Real young men use SQL Server and C#. I aspire to be young (again). Physiologically, that ain't happening. I am learning a ton of C# and SQL server stuff but I am not yet to the point of doing full on database applications in C#. Given the above, while I aspire to C# there is a lot to learn before I am going to write an app in C# which I have to maintain (and write reports for). Someday but not this month. This month I hope to actually place in production two Access applications, both running under a runtime environment, which Access a SQL Server database over the web. >If so what type of an app is it? One app is a time sheet / reporting application for a non-profit. This organization has a handful of part time employees who meet with parents of children with disabilities. The purpose is to provide information about resources available to the parents. So individuals go to people's homes, discuss their child's disabilities and provide the parents referrals to organizations which can actually assist the parent in dealing with the disabilities. These employees need to document every visit. They have to enter very basic name/address info for the parents, and then enter some records child to that parent info with referrals, literature etc. These employees will enter their time sheets from their homes or a local wi-fi hot-spot from their laptop. Management of this non-profit will then run reports about what work was done by the organization. The organization has to report to the money guys (grants) and to the IRS IIRC. >If so what type of an app is it? The next application I am developing is a volunteer database for the local prison. They do various training programs and need to maintain a list of volunteers, a list of projects, which volunteers are working on which projects, and the date/times of the project meetings. Stuff like that. They will have a couple of people actively maintaining the database - adding / deleting / updating records. There will be a handful of people just looking at reports. The people using the database will access it from their home computer or laptop from a wi-fi hot-spot.. >If so what type of an app is it? And finally (for now) I go into the prison for various reasons. Some volunteers may check certain inmates out. In order to do so I have to fill out a specific piece of paper for each inmate I am checking out, every time I want to check that inmate out. The paper lists my name / address, the prisoner's ID number, and a list of exact places and start / stop date / times where I will be taking the prisoner. I can take them to church, or to an AA meeting, or a restaurant etc. There is space on the form for three locations / dates / times. So the next application allows me to maintain a list of inmates that I might routinely check out, a list of locations (addresses) and allow me to fill out this paperwork with a few mouse clicks and then turn that into a PDF and fax it off to the prison. ATM it will be only me using it, but if it is actually faster than manually filling in the paper and faxing it, then other volunteers who check out prisoners may want to use it. So there you have my three ACTIVE Access / SQL Server projects. Each of these is being designed from scratch to: 1) Use SQL Server for the data store. 2) Use Hamachi VPN to get at the SQL Server 3) Use a runtime And because of the first two above, to be usable over the internet. John W. Colby www.ColbyConsulting.com On 2/28/2011 7:56 AM, Tony Septav wrote: > Hey All > Thanks > I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. > I am not finding any significant differences in speed when using ACCESS tables and queries versus > SQL Server tables and pass through queries, I assume that is because I am doing my testing on my > local machine and not on a network (or Web). > > Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of > an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 28 13:50:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 14:50:11 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <4D6BFC73.9030200@colbyconsulting.com> > Unless I had hundreds of users, I think I would stick with a TS setup and Citrix and just run with one version of an app. Hmm... sounds pricey as well. John W. Colby www.ColbyConsulting.com On 2/28/2011 2:27 PM, Jim Dettman wrote: > > Very limited (I fired it up once to date). > > You must develop your app as a web database and not all Access features > are available. And a existing database won't always convert to a web > enabled database either, so it's not as cut and dry as one would think. > > There are restrictions on the data types, control events, primary keys > (all must be longs). > > There is also an off-line caching mode that can be used, which so far > looks messy (here's your replication replacement). But that may be my lack > of understanding. > > It's come a very long way over what was offered in A2007, but I think it > still has another version to go before I'd want to try anything with it. > > This release feels like Access 1.1 (Access 2007 + SharePoint being 1.0), > which introduced a host of new features (and made Access really usable for > the first time), but didn't become solid until Access 2.0. > > And I haven't checked the licensing yet, but I've heard a couple grumble > that it's pricey. > > Unless I had hundreds of users, I think I would stick with a TS setup and > Citrix and just run with one version of an app. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 01:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > >> From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: >> Hey All >> Thanks >> I have got to try out Stuart suggestion for updating stored procedures > in SQL Server using ACCESS. >> I am not finding any significant differences in speed when using > ACCESS tables and queries versus >> SQL Server tables and pass through queries, I assume that is because I > am doing my testing on my >> local machine and not on a network (or Web). >> >> Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of >> an app is it? From stuart at lexacorp.com.pg Mon Feb 28 15:13:49 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:13:49 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BD4E7.6040106@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com>, <4D6BD4E7.6040106@colbyconsulting.com> Message-ID: <4D6C100D.29834.1725090E@stuart.lexacorp.com.pg> A few small tables and limited number of users it's fine. Try over 50 concurrent operators inserting/updating records in tables with up to 7 million rows with multiple large lookup tables on that data. At the same time have a number of others users pulling summaries of that data. Not fine. :-) -- Stuart On 28 Feb 2011 at 12:01, jwcolby wrote: > Cringe away, it seems to work just fine. Until I see evidence to the > contrary... > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 10:56 AM, Jim Lawrence wrote: > > Years ago I dropped a table in error, on a live MS SQL DB...had > > about 50 users on at the time. Added the table and re-populated in > > about 5 minutes and only 1 person complained about the BE being > > slower and having to do a refresh. Real SQL DBs are very > > rugged...everything is just queued, cached and applied through > > background processes. > > > > The one thing is that a Real SQL DB is not just another MDB...there > > is little or no resemblance other than the both hold data. (Not > > wanting to get into a heated discussion, I must admit I cringe every > > time I hear of someone attempting a bound MS SQL DB.) > > > > Jim > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > > McLachlan Sent: Sunday, February 27, 2011 2:41 PM To: Access > > Developers discussion and problem solving Subject: Re: [AccessD] > > Access and SQL Server > > > > Both? > > > > When did you ever have to kick users out of Access or any other > > multi-user DBMS to make data changes? > > > -- > 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 Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6BF10E.5050603@colbyconsulting.com> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6BF10E.5050603@colbyconsulting.com> Message-ID: <4D6C1247.11063.172DBB5C@stuart.lexacorp.com.pg> No, not just you! There's quite a few of us out there :-) -- Stuart On 28 Feb 2011 at 14:01, jwcolby wrote: > As soon as you say "use macros, not vba" I stop listening. > > Just me of course. > From stuart at lexacorp.com.pg Mon Feb 28 15:23:19 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 07:23:19 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, Message-ID: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > From jimdettman at verizon.net Mon Feb 28 16:36:49 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 17:36:49 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> Message-ID: <6AE34C2DB8F044CEB01B53602E59A855@XPS> Stuart, <> Occasionally on a lookup table if a client insists on having a short code along with a description. Then I do this: LookupCode - Text - PK Description - Text as I don't see any sense in doing this: LookupID - Autonumber - PK Code - Text - CK Description - Text However I do my best to steer them to: LookupID - Autonumber - PK Description - Text - CK And usually on straight lookup tables, I cheat a bit and do this: tblLookupTypes LookupTypeID - Autonumber - PK Description - Text UserModify - Yes/No tblLookupValues LookupID - Autonumber - PK LookupTypeID - Long - FK to tblLookupTypes Description - Text and then use views to represent the different types rather then going against multiple tables. But if I need any attributes outside of a code or description, then I break things into separate tables. This means one maintenance form for all the lookups. Not great relationally, but it works fine and saves a ton of work when a lot of lookups exist in an app. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, February 28, 2011 04:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and SQL Server Do you ever use anything other than longs for PK? If so, why? (Apart from GUIDs in rare circumstances) -- Stuart On 28 Feb 2011 at 14:27, Jim Dettman wrote: > There are restrictions on the data types, control events, primary > keys > (all must be longs). > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at iag.com.au Mon Feb 28 16:41:28 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 09:41:28 +1100 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6B9B88.2000405@nanaimo.ark.com> Message-ID: <201102282241.p1SMfaRg026442@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ "Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it?" When I was at Coles Group a year or so back I was part of a team of developers that built and maintained a whole suite of custom applications that were built on a common template. All the apps were based on a template which in turn was based on a SQL Server BE with MS Access FE (mde of course). We were starting to move any new apps to a web UI and away from MS Access. Many of these apps were critical for the day to day running of large national retail businesses. To give you some idea Coles Group is one of Australia's largest retailers with more than 2,600 stores throughout Australia and New Zealand, over 400,000 shareholders and more than 190,000 employees. My good friend Beny build a complex logistics app, which was used for scheduling all store deliveries based on availablity and type of truck (Some trucks can only fit in certain bays for example, some truck have to be in the cold store etc). Damn clever with a great UI. Some of these apps had hundreds of concurrent users 24/7, although many also lead a far less demanding life. The financial control system I build had about 50 users over a WAN. It was fast, stable and accurate. Gotta love that :) The big advantage was even though each application was build for a totally different purpose, it had a common platform and build, which meant that any of the development team could work on it if the main developer was away or busy. I miss working with SQL Server. Current role is 100% access based. Feel a bit left behind to be honest... :-/ cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Monday, 28 February 2011 11:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access and SQL Server Hey All Thanks I have got to try out Stuart suggestion for updating stored procedures in SQL Server using ACCESS. I am not finding any significant differences in speed when using ACCESS tables and queries versus SQL Server tables and pass through queries, I assume that is because I am doing my testing on my local machine and not on a network (or Web). Are any of your developing full blown ACCESS/SQL Server applications for clients? If so what type of an app is it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From stuart at lexacorp.com.pg Mon Feb 28 17:00:10 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:00:10 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <6AE34C2DB8F044CEB01B53602E59A855@XPS> References: <4D6B9B88.2000405@nanaimo.ark.com>, <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg>, <6AE34C2DB8F044CEB01B53602E59A855@XPS> Message-ID: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why you should not use a natural key as your PK. What happens when the Description changes and the existing Code is no longer an accurate short representation of Description? Do you change it throughout all the tables which store it or do you leave your customer with strange Codes which don't match the description (And please don't tell me that you use Relationships with "Cascade Update" turned on.) -- Stuart On 28 Feb 2011 at 17:36, Jim Dettman wrote: > Stuart, > > <> > > Occasionally on a lookup table if a client insists on having a short > code > along with a description. Then I do this: > > LookupCode - Text - PK > Description - Text > > as I don't see any sense in doing this: > > LookupID - Autonumber - PK > Code - Text - CK > Description - Text > From newsgrps at dalyn.co.nz Mon Feb 28 17:01:15 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:01:15 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <201102282241.p1SMfaRg026442@databaseadvisors.com> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> Message-ID: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> > "Are any of your developing full blown ACCESS/SQL Server > applications for clients? If so what type of an app is it?" I have done a couple of apps like this. One was a full prospecting/client management/billing/reporting system for a gas company. Access XP ade with SQL2000. The other is a stock management and reporting system for oil companies. Access XP ade with SQL2005. Both cases are multi user and have lots of business logic that was done in SQL. Both required the better security and data integrity that SQL provided over Access. Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From jimdettman at verizon.net Mon Feb 28 17:17:56 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:17:56 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: It's pretty rare that a description changes in relation to the code and I can't think of the last time that was an issue. In fact it's been quite some time since I used a design like that, but if I did and it was, then yes, cascading updates would get turned on. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 28 17:21:00 2011 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 28 Feb 2011 18:21:00 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6C1247.23155.172DBBD9@stuart.lexacorp.com.pg> <6AE34C2DB8F044CEB01B53602E59A855@XPS> <4D6C28FA.28044.17866745@stuart.lexacorp.com.pg> Message-ID: One other thing: keep in mind that the description reflects the code, not the other way around. It's basically a long form of the code. Jim Sent from my iPhone On Feb 28, 2011, at 6:00 PM, "Stuart McLachlan" wrote: > I see a lot of sense in it having a separate Autonumber PK. This is a classic case of why > you should not use a natural key as your PK. > > What happens when the Description changes and the existing Code is no longer an accurate > short representation of Description? Do you change it throughout all the tables which store it > or do you leave your customer with strange Codes which don't match the description > > (And please don't tell me that you use Relationships with "Cascade Update" turned on.) > > > -- > Stuart > > On 28 Feb 2011 at 17:36, Jim Dettman wrote: > >> Stuart, >> >> <> >> >> Occasionally on a lookup table if a client insists on having a short >> code >> along with a description. Then I do this: >> >> LookupCode - Text - PK >> Description - Text >> >> as I don't see any sense in doing this: >> >> LookupID - Autonumber - PK >> Code - Text - CK >> Description - Text >> > > > -- > 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 Feb 28 17:24:36 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 09:24:36 +1000 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> .ade! Yuk! The best thing that MS ever did for Access was depreciating these :-) -- Stuart On 1 Mar 2011 at 12:01, David Emerson wrote: > > > "Are any of your developing full blown ACCESS/SQL Server > > applications for clients? If so what type of an app is it?" > > I have done a couple of apps like this. > > One was a full prospecting/client management/billing/reporting system > for a gas company. Access XP ade with SQL2000. The other is a stock > management and reporting system for oil companies. Access XP ade with > SQL2005. > > Both cases are multi user and have lots of business logic that was > done in SQL. Both required the better security and data integrity > that SQL provided over Access. > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Mon Feb 28 17:40:03 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:40:03 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: Really? I work in ADP/ADEs every day and think they are the best of both worlds. D On Mon, Feb 28, 2011 at 3:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > > -- > Stuart > > On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Feb 28 17:42:08 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 18:42:08 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com>, <201102282241.p1SMfaRg026442@databaseadvisors.com>, <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <4D6C32D0.7080709@colbyconsulting.com> I assume this is a compiled adp? I never used an adp so... John W. Colby www.ColbyConsulting.com On 2/28/2011 6:24 PM, Stuart McLachlan wrote: > .ade! Yuk! > > The best thing that MS ever did for Access was depreciating these :-) > From newsgrps at dalyn.co.nz Mon Feb 28 17:43:00 2011 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 01 Mar 2011 12:43:00 +1300 Subject: [AccessD] Access and SQL Server In-Reply-To: <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> Message-ID: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Why is that? Once the concepts were learnt (thanks to Susan and Martins book, along with Chipman and Baron's Microsoft Access Developers Guide to SQL Server) I found it much easier to do all the development in the Access environment (including table, view, sproc and functions) than switching between Access and enterprise manager. David At 1/03/2011, Stuart McLachlan wrote: >.ade! Yuk! > >The best thing that MS ever did for Access was depreciating these :-) > >-- >Stuart > >On 1 Mar 2011 at 12:01, David Emerson wrote: > > > > > > "Are any of your developing full blown ACCESS/SQL Server > > > applications for clients? If so what type of an app is it?" > > > > I have done a couple of apps like this. > > > > One was a full prospecting/client management/billing/reporting system > > for a gas company. Access XP ade with SQL2000. The other is a stock > > management and reporting system for oil companies. Access XP ade with > > SQL2005. > > > > Both cases are multi user and have lots of business logic that was > > done in SQL. Both required the better security and data integrity > > that SQL provided over Access. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Feb 28 17:53:11 2011 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 28 Feb 2011 15:53:11 -0800 Subject: [AccessD] Access and SQL Server In-Reply-To: <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> References: <4D6B9B88.2000405@nanaimo.ark.com> <201102282241.p1SMfaRg026442@databaseadvisors.com> <20110228230124.MSXP5781.mta02.xtra.co.nz@David-PC.dalyn.co.nz> <4D6C2EB4.16390.179CC424@stuart.lexacorp.com.pg> <20110228234307.SIMA26379.mta01.xtra.co.nz@David-PC.dalyn.co.nz> Message-ID: The ease of populating comboboxes and listboxes: Me.lstHistory.rowsource = "EXEC stpGetMachineHistory " & nz(me.txtMachineID,0) Cascading combobox (On Enter of comboBox): Me.cboModel.rowsource "EXEC stpSelectModels " & nz(me.cboMake.Column(0),0) On Mon, Feb 28, 2011 at 3:43 PM, David Emerson wrote: > Why is that? Once the concepts were learnt (thanks to Susan and Martins > book, along with Chipman and Baron's Microsoft Access Developers Guide to > SQL Server) I found it much easier to do all the development in the Access > environment (including table, view, sproc and functions) than switching > between Access and enterprise manager. > > David > > > At 1/03/2011, Stuart McLachlan wrote: > >> .ade! Yuk! >> >> The best thing that MS ever did for Access was depreciating these :-) >> >> -- >> Stuart >> >> On 1 Mar 2011 at 12:01, David Emerson wrote: >> >> > >> > > "Are any of your developing full blown ACCESS/SQL Server >> > > applications for clients? If so what type of an app is it?" >> > >> > I have done a couple of apps like this. >> > >> > One was a full prospecting/client management/billing/reporting system >> > for a gas company. Access XP ade with SQL2000. The other is a stock >> > management and reporting system for oil companies. Access XP ade with >> > SQL2005. >> > >> > Both cases are multi user and have lots of business logic that was >> > done in SQL. Both required the better security and data integrity >> > that SQL provided over Access. >> > >> > Regards >> > >> > David Emerson >> > Dalyn Software Ltd >> > Wellington, New Zealand >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marksimms at verizon.net Mon Feb 28 18:54:02 2011 From: marksimms at verizon.net (Mark Simms) Date: Mon, 28 Feb 2011 19:54:02 -0500 Subject: [AccessD] Access and SQL Server In-Reply-To: <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> References: <4D6B9B88.2000405@nanaimo.ark.com> <4D6BDF7E.7000603@colbyconsulting.com> <49A286ABF515E94A8505CD14DEB721700DCFE018@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <013801cbd7ab$2979aad0$7c6d0070$@net> Nope, but heard it is the typical Microsoft roll-out....a high, high wall of undocumented "features" and surprises. Some are finding this feature quite useful, but only after climbing up that wall. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Rusty Hammond > Sent: Monday, February 28, 2011 1:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > Reading your decriptions of what you are doing, sounds like a good fit > for the new Access Sharepoint services. I'm curious if anyone on the > list has used the service. > > From what I understand, with Access 2010 and the Access Sharepoint > service, you can create your app in Access, then post it to Sharepoint > and your forms, reports, queries, etc... Are converted to Sharepoint > pages. One caveat seems to be that you have to use Access Macro's and > not any vba for it to work. Anyone have any experience with this yet? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, February 28, 2011 11:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and SQL Server > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? > > I am just beginning to do this. I have three applications that need to > access data from the internet. > > Real (old) men use SQL Server and HTML, written in notepad. I am not a > real man. Though I am old! ;) > > Real young men use SQL Server and C#. I aspire to be young (again). > Physiologically, that ain't happening. I am learning a ton of C# and > SQL server stuff but I am not yet to the point of doing full on > database > applications in C#. > > Given the above, while I aspire to C# there is a lot to learn before I > am going to write an app in C# which I have to maintain (and write > reports for). Someday but not this month. > > This month I hope to actually place in production two Access > applications, both running under a runtime environment, which Access a > SQL Server database over the web. > > >If so what type of an app is it? > > One app is a time sheet / reporting application for a non-profit. This > organization has a handful of part time employees who meet with parents > of children with disabilities. The purpose is to provide information > about resources available to the parents. > > So individuals go to people's homes, discuss their child's disabilities > and provide the parents referrals to organizations which can actually > assist the parent in dealing with the disabilities. > > These employees need to document every visit. They have to enter very > basic name/address info for the parents, and then enter some records > child to that parent info with referrals, literature etc. > These employees will enter their time sheets from their homes or a > local > wi-fi hot-spot from their laptop. > > Management of this non-profit will then run reports about what work was > done by the organization. > The organization has to report to the money guys (grants) and to the > IRS > IIRC. > > >If so what type of an app is it? > > The next application I am developing is a volunteer database for the > local prison. They do various training programs and need to maintain a > list of volunteers, a list of projects, which volunteers are working on > which projects, and the date/times of the project meetings. Stuff like > that. They will have a couple of people actively maintaining the > database - adding / deleting / updating records. There will be a > handful of people just looking at reports. > > The people using the database will access it from their home computer > or > laptop from a wi-fi hot-spot.. > > >If so what type of an app is it? > > And finally (for now) I go into the prison for various reasons. Some > volunteers may check certain inmates out. In order to do so I have to > fill out a specific piece of paper for each inmate I am checking out, > every time I want to check that inmate out. The paper lists my name / > address, the prisoner's ID number, and a list of exact places and start > / stop date / times where I will be taking the prisoner. I can take > them to church, or to an AA meeting, or a restaurant etc. There is > space on the form for three locations / dates / times. > > So the next application allows me to maintain a list of inmates that I > might routinely check out, a list of locations (addresses) and allow me > to fill out this paperwork with a few mouse clicks and then turn that > into a PDF and fax it off to the prison. > > ATM it will be only me using it, but if it is actually faster than > manually filling in the paper and faxing it, then other volunteers who > check out prisoners may want to use it. > > > So there you have my three ACTIVE Access / SQL Server projects. Each > of > these is being designed > from scratch to: > > 1) Use SQL Server for the data store. > 2) Use Hamachi VPN to get at the SQL Server > 3) Use a runtime > > And because of the first two above, to be usable over the internet. > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 7:56 AM, Tony Septav wrote: > > Hey All > > Thanks > > I have got to try out Stuart suggestion for updating stored > procedures > in SQL Server using ACCESS. > > I am not finding any significant differences in speed when using > ACCESS tables and queries versus > > SQL Server tables and pass through queries, I assume that is because > I > am doing my testing on my > > local machine and not on a network (or Web). > > > > Are any of your developing full blown ACCESS/SQL Server applications > for clients? If so what type of > > an app is it? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ********************************************************************** > WARNING: All e-mail sent to and from this address will be received, > scanned or otherwise recorded by the CPI Qualified Plan Consultants, > Inc. > corporate e-mail system and is subject to archival, monitoring or > review > by, and/or disclosure to, someone other than the recipient. > ********************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From BradM at blackforestltd.com Mon Feb 28 18:57:06 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 18:57:06 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com> <4D6BE285.7010601@colbyconsulting.com> Message-ID: We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal ?error handling? set up. When we ran tests to ensure that the ?No Duplicates? on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have ?DoCmd.SetWarnings True? Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other ?Status Code? available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From rockysmolin at bchacc.com Mon Feb 28 19:11:16 2011 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 28 Feb 2011 17:11:16 -0800 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com> <004501cbd6c7$6dd32060$49796120$@comcast.net> <49A286ABF515E94A8505CD14DEB721700DCFE00E@CPIEMAIL-EVS1.CPIQPC.NET> <4D6AD2FE.8187.124E85B2@stuart.lexacorp.com.pg> <7274EFBBD39B45EF8BCD9CF855DDC414@creativesystemdesigns.com> <4D6BD4E7.6040106@colbyconsulting.com><4D6BE285.7010601@colbyconsulting.com> Message-ID: I think I'd try the BeforeUpdate event, check for a duplicate in the event, and if there is, update your tracking table, give a message to the user and set Cancel = True. I think. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Monday, February 28, 2011 4:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) We have an Access table that we want to insert records into (via DoCmd.RunSQL). We have one field Indexed (No Duplicates). There is the normal "error handling" set up. When we ran tests to ensure that the "No Duplicates" on the Indexed Field is working, we were was expecting that the normal error-handling would trap the error. It does not. If we have "DoCmd.SetWarnings True" Access displays a pop-up message with the error message, but we would like to be able to programmatically trap the error in VBA code. We want to keep track of how often there is an attempt to insert a duplicate record. The input data is actually coming from another system. We know that there will be attempts to insert duplicates, and we know the the "Index (No Duplicates)" will prevent duplicates from being inserted. We would like to be able to trap the error with VBA code so that we can analyze the number of times that this is happening. Is there a way to do this? Is there some other "Status Code" available after an insert to indicate if an insert worked or not (that we can get at with VBA code)? Thanks, Brad From stuart at lexacorp.com.pg Mon Feb 28 19:26:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:26:22 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused by Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, Message-ID: <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > From stuart at lexacorp.com.pg Mon Feb 28 19:27:41 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 11:27:41 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) caused byIndexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, , Message-ID: <4D6C4B8D.5594.180D7684@stuart.lexacorp.com.pg> No BeforeUpdate event. This is updating via SQL in code, not through a form. -- Stuart On 28 Feb 2011 at 17:11, Rocky Smolin wrote: > I think I'd try the BeforeUpdate event, check for a duplicate in the > event, and if there is, update your tracking table, give a message to > the user and set Cancel = True. I think. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks > Sent: Monday, February 28, 2011 4:57 PM To: Access Developers > discussion and problem solving Subject: [AccessD] How to Trap ?Insert > Error? (Duplicate record) caused byIndexed Field (No Duplicates) > > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BradM at blackforestltd.com Mon Feb 28 20:03:55 2011 From: BradM at blackforestltd.com (Brad Marks) Date: Mon, 28 Feb 2011 20:03:55 -0600 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from ?DoCmd.RunSQL SQL_String? to ?CurrentDb.Execute SQL_String, dbFailOnError? I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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 Darryl.Collins at iag.com.au Mon Feb 28 20:08:11 2011 From: Darryl.Collins at iag.com.au (Darryl Collins) Date: Tue, 1 Mar 2011 13:08:11 +1100 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: Message-ID: <201103010208.p2128JV2008457@databaseadvisors.com> _______________________________________________________________________________________ Note: This e-mail is subject to the disclaimer contained at the bottom of this message. _______________________________________________________________________________________ as a rule I don't recommend using Docmd.RunSQL. Using the other method seems to work far better and gives you more control. You can also avoid any confirmation messages (assuming the user has that option enabled). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brad Marks Sent: Tuesday, 1 March 2011 1:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Stuart, Yes, thanks a million for the help. Here is what I learned tonight... By switching from "DoCmd.RunSQL SQL_String" to "CurrentDb.Execute SQL_String, dbFailOnError" I can trap Err.Number = 3022 (duplicate record) I really appreciate the help. I was pulling my hair out as I thought that the "DoCmd.RunSQL SQL_String" method would allow me to see the 3022 error. Brad -----Original Message----- From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) Hi Brad, I just answered this for you on Linked In. Use CurrentDB.Execute str_SQL ,dbFailOnError instead of DoCmd.RunSQL. Then look for Err.Number 3022 in your error trap. -- Stuart On 28 Feb 2011 at 18:57, Brad Marks wrote: > We have an Access table that we want to insert records into (via > DoCmd.RunSQL). > > We have one field Indexed (No Duplicates). > > There is the normal "error handling" set up. > > When we ran tests to ensure that the "No Duplicates" on the Indexed > Field is working, we were was expecting that the normal error-handling > would trap the error. It does not. > > If we have "DoCmd.SetWarnings True" Access displays a pop-up message > with the error message, but we would like to be able to > programmatically trap the error in VBA code. > > We want to keep track of how often there is an attempt to insert a > duplicate record. The input data is actually coming from another > system. We know that there will be attempts to insert duplicates, and > we know the the "Index (No Duplicates)" will prevent duplicates from > being inserted. We would like to be able to trap the error with VBA > code so that we can analyze the number of times that this is > happening. > > Is there a way to do this? > > Is there some other "Status Code" available after an insert to > indicate if an insert worked or not (that we can get at with VBA > code)? > > Thanks, > > Brad > -- 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. _______________________________________________________________________________________ The information transmitted in this message and its attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files, with the permission of the sender. This message has been scanned for viruses. _______________________________________________________________________________________ From jwcolby at colbyconsulting.com Mon Feb 28 20:17:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 28 Feb 2011 21:17:22 -0500 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: References: <4D6A54F8.30203@nanaimo.ark.com>, <4D6C4B3E.3696.180C4086@stuart.lexacorp.com.pg> Message-ID: <4D6C5732.9050103@colbyconsulting.com> You can also get NoRecsAffected from the db.Execute John W. Colby www.ColbyConsulting.com On 2/28/2011 9:03 PM, Brad Marks wrote: > Stuart, > > Yes, thanks a million for the help. > > Here is what I learned tonight... > > By switching from > > ?DoCmd.RunSQL SQL_String? > > to > > ?CurrentDb.Execute SQL_String, dbFailOnError? > > I can trap Err.Number = 3022 (duplicate record) > > > > I really appreciate the help. I was pulling my hair out as I thought that the ?DoCmd.RunSQL SQL_String? method would allow me to see the 3022 error. > > Brad > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com on behalf of Stuart McLachlan > Sent: Mon 2/28/2011 7:26 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) > > Hi Brad, > > I just answered this for you on Linked In. > > Use CurrentDB.Execute str_SQL ,dbFailOnError > instead of DoCmd.RunSQL. > > Then look for Err.Number 3022 in your error trap. > > From stuart at lexacorp.com.pg Mon Feb 28 20:53:40 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Mar 2011 12:53:40 +1000 Subject: [AccessD] How to Trap ?Insert Error? (Duplicate record) causedby Indexed Field (No Duplicates) In-Reply-To: <4D6C5732.9050103@colbyconsulting.com> References: <4D6A54F8.30203@nanaimo.ark.com>, , <4D6C5732.9050103@colbyconsulting.com> Message-ID: <4D6C5FB4.22433.185C2E21@stuart.lexacorp.com.pg> But note: CurrentDb.Execute strSQL Debug.Print CurrentDB.RecordsAffected will always return 0. You need to do this instead: Dim db as DAO.Database Set db = CurrentDB() ... db.Execute StrSQL Debug.Print db.RecordsAffected ... -- Stuart On 28 Feb 2011 at 21:17, jwcolby wrote: > You can also get NoRecsAffected from the db.Execute > > John W. Colby > www.ColbyConsulting.com > > On 2/28/2011 9:03 PM, Brad Marks wrote: > > Stuart, > > > > Yes, thanks a million for the help. > > > > Here is what I learned tonight... > > > > By switching from > > > > "DoCmd.RunSQL SQL_String" > > > > to > > > > "CurrentDb.Execute SQL_String, dbFailOnError" > > > > I can trap Err.Number = 3022 (duplicate record) > > > > > > > > I really appreciate the help. I was pulling my hair out as I > > thought that the "DoCmd.RunSQL SQL_String" method would allow me to > > see the 3022 error. > > > > Brad > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com on behalf of Stuart > > McLachlan Sent: Mon 2/28/2011 7:26 PM To: Access Developers > > discussion and problem solving Subject: Re: [AccessD] How to Trap > > ?Insert Error? (Duplicate record) causedby Indexed Field (No > > Duplicates) > > > > Hi Brad, > > > > I just answered this for you on Linked In. > > > > Use CurrentDB.Execute str_SQL ,dbFailOnError > > instead of DoCmd.RunSQL. > > > > Then look for Err.Number 3022 in your error trap. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >