From rockysmolin at bchacc.com Fri Oct 6 19:56:48 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 6 Oct 2017 17:56:48 -0700 Subject: [AccessD] Name Flipping Message-ID: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> Dear List: I have a requirement from a client to show a list in a combo box of contact names which appear in Sales Order records sorted by last name. Unfortunately the names are entered First Name (space) Last Name. Fortunately this is very consistent. So I wrote a Public function to flip the names and called it in the query which is the Row Source of the combo box like this: Flipped Name: FlipName([fldRAHOrderedBy]) And it works perfectly. Except. When I add the 'Ascending' to the Sort field, then I get a message "Data Type Mismatch in criteria expression". When I add the 'Ascending' sort to the Flipped Name field the end of the SQL adds the ORDER BY clause: SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], tblCustomer.fldCustomerName AS Customer, tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], Format([DiscountTotal]+Nz(tblRentalAgreementHeader.fldRAHStrikeCharge)+Nz(tb lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz(tblRentalAgreementHeader.fld RAHPickUpCharge)+Nz(tblRentalAgreementHeader.fldRAHSetUpCharge),"Currency") AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, tblRentalAgreementHeader.fldRAHDiscount FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) LEFT JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = qryDailyBookings.fldRAHID ORDER BY FlipName([fldRAHOrderedBy]); Which apparently is causing it to barf because the query runs fine without the ORDER BY. Does anyone know how to work around this? MTIA, Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From df.waters at outlook.com Fri Oct 6 20:27:56 2017 From: df.waters at outlook.com (Dan Waters) Date: Sat, 7 Oct 2017 01:27:56 +0000 Subject: [AccessD] Name Flipping In-Reply-To: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> Message-ID: Hi Rocky, I would try to resolve this first by removing any sorting from the query you wrote. Then write a second query which simply selects the output of the first query and let this second query handle the sorting. Use the second query as the data source for the combobox. HTH! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: October 6, 2017 19:57 To: 'Access Developers discussion and problem solving'; 'Off Topic' Subject: [AccessD] Name Flipping Dear List: I have a requirement from a client to show a list in a combo box of contact names which appear in Sales Order records sorted by last name. Unfortunately the names are entered First Name (space) Last Name. Fortunately this is very consistent. So I wrote a Public function to flip the names and called it in the query which is the Row Source of the combo box like this: Flipped Name: FlipName([fldRAHOrderedBy]) And it works perfectly. Except. When I add the 'Ascending' to the Sort field, then I get a message "Data Type Mismatch in criteria expression". When I add the 'Ascending' sort to the Flipped Name field the end of the SQL adds the ORDER BY clause: SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], tblCustomer.fldCustomerName AS Customer, tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], Format([DiscountTotal]+Nz(tblRentalAgreementHeader.fldRAHStrikeCharge)+Nz(tb lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz(tblRentalAgreementHeader.fld RAHPickUpCharge)+Nz(tblRentalAgreementHeader.fldRAHSetUpCharge),"Currency") AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, tblRentalAgreementHeader.fldRAHDiscount FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) LEFT JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = qryDailyBookings.fldRAHID ORDER BY FlipName([fldRAHOrderedBy]); Which apparently is causing it to barf because the query runs fine without the ORDER BY. Does anyone know how to work around this? MTIA, Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at googlemail.com Fri Oct 6 21:34:18 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 7 Oct 2017 03:34:18 +0100 Subject: [AccessD] Name Flipping In-Reply-To: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> Message-ID: It sounds to me like one of the names is causing the problem, I would run the function on its own to view all the results and maybe paste into excel or use the function to create a table and then sort the results to see the top few names, could you also post your function as there may be a simple work around there as well Paul On 7 Oct 2017 01:57, "Rocky Smolin" wrote: > Dear List: > > > > I have a requirement from a client to show a list in a combo box of contact > names which appear in Sales Order records sorted by last name. > > > > Unfortunately the names are entered First Name (space) Last Name. > > > > Fortunately this is very consistent. > > > > So I wrote a Public function to flip the names and called it in the query > which is the Row Source of the combo box like this: > > > > Flipped Name: FlipName([fldRAHOrderedBy]) > > > > And it works perfectly. Except. When I add the 'Ascending' to the Sort > field, then I get a message "Data Type Mismatch in criteria expression". > > > > When I add the 'Ascending' sort to the Flipped Name field the end of the > SQL > adds the ORDER BY clause: > > > > SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS > FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], > tblCustomer.fldCustomerName AS Customer, > tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], > Format([DiscountTotal]+Nz(tblRentalAgreementHeader. > fldRAHStrikeCharge)+Nz(tb > lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz( > tblRentalAgreementHeader.fld > RAHPickUpCharge)+Nz(tblRentalAgreementHeader. > fldRAHSetUpCharge),"Currency") > AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, > tblRentalAgreementHeader.fldRAHDiscount > > FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON > tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) > LEFT > JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = > qryDailyBookings.fldRAHID > > ORDER BY FlipName([fldRAHOrderedBy]); > > > > Which apparently is causing it to barf because the query runs fine without > the ORDER BY. > > > > Does anyone know how to work around this? > > > > MTIA, > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at googlemail.com Fri Oct 6 21:38:25 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 7 Oct 2017 03:38:25 +0100 Subject: [AccessD] Free cloud database In-Reply-To: References: Message-ID: To all, Does anyone know of/recommend a decent free cloud database I can use even if a trial for a month or two while I try to test a few things, will be happy to pay if I decide to use it afterwards. Paul From rockysmolin at bchacc.com Fri Oct 6 22:22:16 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 6 Oct 2017 20:22:16 -0700 Subject: [AccessD] Name Flipping In-Reply-To: References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> Message-ID: <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Dan and Paul: I didn't solve the problem but I worked around it in a way that defied (to me) explanation. I added the OrderedBy field, the one with the First Name/Last Name, to the query. (in the combo box, it's a zero width field). Then I added a criterion >="A", so that this criterion would retrieve all the records. It worked. Then I set the Unique Values property of the query to yes. It still worked. Finally, I set the Sort on the Flipped Name field to Ascending and...inexplicably...it worked. Now Paul's solution will probably work a treat. I may try it tomorrow out of curiosity. But like raising children, when I get the behavior I'm looking for I generally stop working the problem. Thank you both for your inputs. Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, October 06, 2017 6:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Name Flipping Hi Rocky, I would try to resolve this first by removing any sorting from the query you wrote. Then write a second query which simply selects the output of the first query and let this second query handle the sorting. Use the second query as the data source for the combobox. HTH! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: October 6, 2017 19:57 To: 'Access Developers discussion and problem solving'; 'Off Topic' Subject: [AccessD] Name Flipping Dear List: I have a requirement from a client to show a list in a combo box of contact names which appear in Sales Order records sorted by last name. Unfortunately the names are entered First Name (space) Last Name. Fortunately this is very consistent. So I wrote a Public function to flip the names and called it in the query which is the Row Source of the combo box like this: Flipped Name: FlipName([fldRAHOrderedBy]) And it works perfectly. Except. When I add the 'Ascending' to the Sort field, then I get a message "Data Type Mismatch in criteria expression". When I add the 'Ascending' sort to the Flipped Name field the end of the SQL adds the ORDER BY clause: SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], tblCustomer.fldCustomerName AS Customer, tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], Format([DiscountTotal]+Nz(tblRentalAgreementHeader.fldRAHStrikeCharge)+Nz(tb lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz(tblRentalAgreementHeader.fld RAHPickUpCharge)+Nz(tblRentalAgreementHeader.fldRAHSetUpCharge),"Currency") AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, tblRentalAgreementHeader.fldRAHDiscount FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) LEFT JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = qryDailyBookings.fldRAHID ORDER BY FlipName([fldRAHOrderedBy]); Which apparently is causing it to barf because the query runs fine without the ORDER BY. Does anyone know how to work around this? MTIA, Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at googlemail.com Fri Oct 6 22:32:36 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sat, 7 Oct 2017 04:32:36 +0100 Subject: [AccessD] Name Flipping In-Reply-To: <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Message-ID: Forgot to mention the (possible) easy work around as well, could of tried ORDER BY CStr(FlipName([fldRAHOrderedBy])); On 7 Oct 2017 04:23, "Rocky Smolin" wrote: > Dan and Paul: > > I didn't solve the problem but I worked around it in a way that defied (to > me) explanation. > > I added the OrderedBy field, the one with the First Name/Last Name, to the > query. (in the combo box, it's a zero width field). Then I added a > criterion >="A", so that this criterion would retrieve all the records. It > worked. > > Then I set the Unique Values property of the query to yes. It still > worked. > > Finally, I set the Sort on the Flipped Name field to Ascending > and...inexplicably...it worked. > > Now Paul's solution will probably work a treat. I may try it tomorrow out > of curiosity. But like raising children, when I get the behavior I'm > looking for I generally stop working the problem. > > Thank you both for your inputs. > > > Rocky Smolin > Beach Access Software > 760-683-5777 > www.bchacc.com > www.e-z-mrp.com > Skype: rocky.smolin > > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Dan > Waters > Sent: Friday, October 06, 2017 6:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Name Flipping > > Hi Rocky, > > I would try to resolve this first by removing any sorting from the query > you > wrote. Then write a second query which simply selects the output of the > first query and let this second query handle the sorting. > > Use the second query as the data source for the combobox. > > HTH! > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: October 6, 2017 19:57 > To: 'Access Developers discussion and problem solving'; 'Off Topic' > Subject: [AccessD] Name Flipping > > Dear List: > > > > I have a requirement from a client to show a list in a combo box of contact > names which appear in Sales Order records sorted by last name. > > > > Unfortunately the names are entered First Name (space) Last Name. > > > > Fortunately this is very consistent. > > > > So I wrote a Public function to flip the names and called it in the query > which is the Row Source of the combo box like this: > > > > Flipped Name: FlipName([fldRAHOrderedBy]) > > > > And it works perfectly. Except. When I add the 'Ascending' to the Sort > field, then I get a message "Data Type Mismatch in criteria expression". > > > > When I add the 'Ascending' sort to the Flipped Name field the end of the > SQL > adds the ORDER BY clause: > > > > SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS > FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], > tblCustomer.fldCustomerName AS Customer, > tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], > Format([DiscountTotal]+Nz(tblRentalAgreementHeader. > fldRAHStrikeCharge)+Nz(tb > lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz( > tblRentalAgreementHeader.fld > RAHPickUpCharge)+Nz(tblRentalAgreementHeader. > fldRAHSetUpCharge),"Currency") > AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, > tblRentalAgreementHeader.fldRAHDiscount > > FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON > tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) > LEFT > JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = > qryDailyBookings.fldRAHID > > ORDER BY FlipName([fldRAHOrderedBy]); > > > > Which apparently is causing it to barf because the query runs fine without > the ORDER BY. > > > > Does anyone know how to work around this? > > > > MTIA, > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Sat Oct 7 05:41:18 2017 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 7 Oct 2017 10:41:18 +0000 Subject: [AccessD] [dba-SQLServer] Free cloud database In-Reply-To: References: , Message-ID: Hi Paul The obvious place to start - Azure SQL: https://azure.microsoft.com/en-us/free/services/sql-database/ /gustav ________________________________________ Fra: dba-SQLServer p? vegne af Paul Hartland via dba-SQLServer Sendt: 7. oktober 2017 04:38:25 Til: Access List; SQLServerList; Development in Visual Studio Cc: Paul Hartland Emne: [dba-SQLServer] Free cloud database To all, Does anyone know of/recommend a decent free cloud database I can use even if a trial for a month or two while I try to test a few things, will be happy to pay if I decide to use it afterwards. Paul _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ssharkins at gmail.com Sat Oct 7 08:06:48 2017 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 7 Oct 2017 09:06:48 -0400 Subject: [AccessD] Name Flipping In-Reply-To: References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Message-ID: <005201d33f6d$257e84b0$707b8e10$@gmail.com> Aw... there ya go. Nice! Susan H. Forgot to mention the (possible) easy work around as well, could of tried ORDER BY CStr(FlipName([fldRAHOrderedBy])); From accessd at shaw.ca Sat Oct 7 14:50:00 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 7 Oct 2017 13:50:00 -0600 (MDT) Subject: [AccessD] Free cloud database In-Reply-To: References: Message-ID: <805384982.497588292.1507405800533.JavaMail.zimbra@shaw.ca> I would recommend DigitalOcean. They have a very resonable entrance pricing, as low as $5.00 per month or you can choose to pay by the minute for a big short term project. Like 0.119 cents an hour for a 8GB memory, 4vCPUs, 80GB SSD and 5TB transfer. It should be noted that there is not transfer charges if the transferring is done through an SSH/SSL pipe. There is also special rated block-storage for projects requiring large amounts of data to test on or use. https://www.digitalocean.com HTH Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" , "Discussion concerning MS SQL Server" , "Development in Visual Studio" Cc: "Paul Hartland" Sent: Friday, October 6, 2017 7:38:25 PM Subject: [AccessD] Free cloud database To all, Does anyone know of/recommend a decent free cloud database I can use even if a trial for a month or two while I try to test a few things, will be happy to pay if I decide to use it afterwards. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Oct 7 14:53:42 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 7 Oct 2017 13:53:42 -0600 (MDT) Subject: [AccessD] Name Flipping In-Reply-To: <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Message-ID: <1720536147.497593283.1507406022389.JavaMail.zimbra@shaw.ca> Just a note. Would your solution also suggest that there are some null or empty sort fields? Would it be an issue if you had 100 records and only 95 records were displayed? Jim ----- Original Message ----- From: "rockysmolin" To: "Access Developers discussion and problem solving" , "Off Topic" Sent: Friday, October 6, 2017 8:22:16 PM Subject: Re: [AccessD] Name Flipping Dan and Paul: I didn't solve the problem but I worked around it in a way that defied (to me) explanation. I added the OrderedBy field, the one with the First Name/Last Name, to the query. (in the combo box, it's a zero width field). Then I added a criterion >="A", so that this criterion would retrieve all the records. It worked. Then I set the Unique Values property of the query to yes. It still worked. Finally, I set the Sort on the Flipped Name field to Ascending and...inexplicably...it worked. Now Paul's solution will probably work a treat. I may try it tomorrow out of curiosity. But like raising children, when I get the behavior I'm looking for I generally stop working the problem. Thank you both for your inputs. Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, October 06, 2017 6:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Name Flipping Hi Rocky, I would try to resolve this first by removing any sorting from the query you wrote. Then write a second query which simply selects the output of the first query and let this second query handle the sorting. Use the second query as the data source for the combobox. HTH! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: October 6, 2017 19:57 To: 'Access Developers discussion and problem solving'; 'Off Topic' Subject: [AccessD] Name Flipping Dear List: I have a requirement from a client to show a list in a combo box of contact names which appear in Sales Order records sorted by last name. Unfortunately the names are entered First Name (space) Last Name. Fortunately this is very consistent. So I wrote a Public function to flip the names and called it in the query which is the Row Source of the combo box like this: Flipped Name: FlipName([fldRAHOrderedBy]) And it works perfectly. Except. When I add the 'Ascending' to the Sort field, then I get a message "Data Type Mismatch in criteria expression". When I add the 'Ascending' sort to the Flipped Name field the end of the SQL adds the ORDER BY clause: SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], tblCustomer.fldCustomerName AS Customer, tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], Format([DiscountTotal]+Nz(tblRentalAgreementHeader.fldRAHStrikeCharge)+Nz(tb lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz(tblRentalAgreementHeader.fld RAHPickUpCharge)+Nz(tblRentalAgreementHeader.fldRAHSetUpCharge),"Currency") AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, tblRentalAgreementHeader.fldRAHDiscount FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) LEFT JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = qryDailyBookings.fldRAHID ORDER BY FlipName([fldRAHOrderedBy]); Which apparently is causing it to barf because the query runs fine without the ORDER BY. Does anyone know how to work around this? MTIA, Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at googlemail.com Sun Oct 8 02:17:14 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Sun, 8 Oct 2017 08:17:14 +0100 Subject: [AccessD] Free cloud database In-Reply-To: <805384982.497588292.1507405800533.JavaMail.zimbra@shaw.ca> References: <805384982.497588292.1507405800533.JavaMail.zimbra@shaw.ca> Message-ID: Thanks all for suggestions, I think when I am ready I may go with azure, I have an account with them as I joined when I got visual studio express, but have never used it....I just wondered if anyone had any good experiences with cloud as I have never used a cloud service before. Virus-free. www.avg.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On 7 October 2017 at 20:50, Jim Lawrence wrote: > I would recommend DigitalOcean. > > They have a very resonable entrance pricing, as low as $5.00 per month or > you can choose to pay by the minute for a big short term project. Like > 0.119 cents an hour for a 8GB memory, 4vCPUs, 80GB SSD and 5TB transfer. It > should be noted that there is not transfer charges if the transferring is > done through an SSH/SSL pipe. There is also special rated block-storage for > projects requiring large amounts of data to test on or use. > > https://www.digitalocean.com > > HTH > > Jim > > ----- Original Message ----- > From: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com>, "Discussion concerning MS SQL Server" < > dba-sqlserver at databaseadvisors.com>, "Development in Visual Studio" < > dba-vs at databaseadvisors.com> > Cc: "Paul Hartland" > Sent: Friday, October 6, 2017 7:38:25 PM > Subject: [AccessD] Free cloud database > > To all, > > Does anyone know of/recommend a decent free cloud database I can use even > if a trial for a month or two while I try to test a few things, will be > happy to pay if I decide to use it afterwards. > > Paul > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > 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 dw-murphy at cox.net Sun Oct 8 12:51:08 2017 From: dw-murphy at cox.net (Doug Murphy) Date: Sun, 8 Oct 2017 10:51:08 -0700 Subject: [AccessD] Free cloud database In-Reply-To: References: Message-ID: <018601d3405e$05b52f20$111f8d60$@cox.net> Paul, You might want to try Amazon Web Services. First month is free and depending on your requirements cost can be as little as $.022/hour. https://aws.amazon.com/rds/sqlserver/pricing/ Doug -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland via AccessD Sent: Friday, October 06, 2017 7:38 PM To: Access List; SQLServerList; Development in Visual Studio Cc: Paul Hartland Subject: [AccessD] Free cloud database To all, Does anyone know of/recommend a decent free cloud database I can use even if a trial for a month or two while I try to test a few things, will be happy to pay if I decide to use it afterwards. Paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thesmileycoder at gmail.com Mon Oct 9 14:38:29 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Mon, 9 Oct 2017 21:38:29 +0200 Subject: [AccessD] Name Flipping In-Reply-To: <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Message-ID: Access being a very smart tool will only calculate expressions when required. So e.g. if your form shows 10 out of 1000 records, access will only calculate the expression (flipname in this case) for the first 10 (visible) records. Scrolling in the form, will cause access to calculate the expression for the following now visible records. Now the exception to this, is when we force access to calculate the expression for all records. You can do this by adding a where clause on the expression, or an order by. So in your first test, the expression was not calculated for all records, but only those visible. In your second test, adding the order by, caused access to calculated the expression for ALL records (how else would it know the sort order). Then you added something to the where clause, >="A". This essentialy filtered out the records where name was Null, and thus those records where never passed to your function, thus the function did not error. I hope that helps to explain what happened. In cases where I might potentially pass a null value into a function, I will usually set the input data type to variant, and then check it for null in the function itself, and decide accordingly. Or alternatively, filter out the null values, since they probably shouldn't be selectable in the dropdown anyway. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Sat, Oct 7, 2017 at 5:22 AM, Rocky Smolin wrote: > Dan and Paul: > > I didn't solve the problem but I worked around it in a way that defied (to > me) explanation. > > I added the OrderedBy field, the one with the First Name/Last Name, to the > query. (in the combo box, it's a zero width field). Then I added a > criterion >="A", so that this criterion would retrieve all the records. It > worked. > > Then I set the Unique Values property of the query to yes. It still > worked. > > Finally, I set the Sort on the Flipped Name field to Ascending > and...inexplicably...it worked. > > Now Paul's solution will probably work a treat. I may try it tomorrow out > of curiosity. But like raising children, when I get the behavior I'm > looking for I generally stop working the problem. > > Thank you both for your inputs. > > > Rocky Smolin > Beach Access Software > 760-683-5777 > www.bchacc.com > www.e-z-mrp.com > Skype: rocky.smolin > > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Dan > Waters > Sent: Friday, October 06, 2017 6:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Name Flipping > > Hi Rocky, > > I would try to resolve this first by removing any sorting from the query > you > wrote. Then write a second query which simply selects the output of the > first query and let this second query handle the sorting. > > Use the second query as the data source for the combobox. > > HTH! > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: October 6, 2017 19:57 > To: 'Access Developers discussion and problem solving'; 'Off Topic' > Subject: [AccessD] Name Flipping > > Dear List: > > > > I have a requirement from a client to show a list in a combo box of contact > names which appear in Sales Order records sorted by last name. > > > > Unfortunately the names are entered First Name (space) Last Name. > > > > Fortunately this is very consistent. > > > > So I wrote a Public function to flip the names and called it in the query > which is the Row Source of the combo box like this: > > > > Flipped Name: FlipName([fldRAHOrderedBy]) > > > > And it works perfectly. Except. When I add the 'Ascending' to the Sort > field, then I get a message "Data Type Mismatch in criteria expression". > > > > When I add the 'Ascending' sort to the Flipped Name field the end of the > SQL > adds the ORDER BY clause: > > > > SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS > FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], > tblCustomer.fldCustomerName AS Customer, > tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], > Format([DiscountTotal]+Nz(tblRentalAgreementHeader. > fldRAHStrikeCharge)+Nz(tb > lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz( > tblRentalAgreementHeader.fld > RAHPickUpCharge)+Nz(tblRentalAgreementHeader. > fldRAHSetUpCharge),"Currency") > AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, > tblRentalAgreementHeader.fldRAHDiscount > > FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON > tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) > LEFT > JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = > qryDailyBookings.fldRAHID > > ORDER BY FlipName([fldRAHOrderedBy]); > > > > Which apparently is causing it to barf because the query runs fine without > the ORDER BY. > > > > Does anyone know how to work around this? > > > > MTIA, > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From thesmileycoder at gmail.com Mon Oct 9 14:41:30 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Mon, 9 Oct 2017 21:41:30 +0200 Subject: [AccessD] Free cloud database In-Reply-To: References: Message-ID: I've been quite happy with Azure. A great feature is point in time backup and recovery for 30 days (with S0 subscription) and I belive it is 7 days with basic. Another usefull feature is the ability to scale up and down in a manner of minutes. Wan't to see how performance would be with a better subscription? Crank up the service for 2 hours, test it, and crank the service back down, and only pay for 2 hours of cranked up service. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Sat, Oct 7, 2017 at 4:38 AM, Paul Hartland via AccessD < accessd at databaseadvisors.com> wrote: > To all, > > Does anyone know of/recommend a decent free cloud database I can use even > if a trial for a month or two while I try to test a few things, will be > happy to pay if I decide to use it afterwards. > > Paul > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Mon Oct 9 15:16:57 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 9 Oct 2017 14:16:57 -0600 (MDT) Subject: [AccessD] Free cloud database In-Reply-To: References: <805384982.497588292.1507405800533.JavaMail.zimbra@shaw.ca> Message-ID: <504506712.501446626.1507580217073.JavaMail.zimbra@shaw.ca> Hi Paul: I have a personal dislike for AVG as my memories of the product is that it is extremely invasive. If you wish to run your own mail-client on your desktop I suggest you check out the following. Each of these applications is open-source and extremely difficult to hack: https://itsfoss.com/best-email-clients-linux/ I have no experience with any of these as my ISP provider has a browser-based Zimbra client. Of course, if you wish to roll your own Server and Client mail system, I would suggest you check out Zimbra. It is a backend package equivalent to MS Exchange...Zimbra can handle from one client to millions. It also has collaborative functionality built into its design so it can run on a personal Cloud like nextCloud (https://nextcloud.com/) and can also be federated into multiple Cloud architectures....Azure/AWS/OpenStack etc. etc. https://www.zimbra.com/open-source-edition-support-ppc/?gclid=CNeSk_2n5NYCFUdufgodZEAILg http://bit.ly/2xumi1A I like Azure Cloud as it is a Windows-styled desktop, that supports most MS applications, that runs on and with Cloud Linux servers. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "Paul Hartland" Sent: Sunday, October 8, 2017 12:17:14 AM Subject: Re: [AccessD] Free cloud database Thanks all for suggestions, I think when I am ready I may go with azure, I have an account with them as I joined when I got visual studio express, but have never used it....I just wondered if anyone had any good experiences with cloud as I have never used a cloud service before. Virus-free. www.avg.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On 7 October 2017 at 20:50, Jim Lawrence wrote: > I would recommend DigitalOcean. > > They have a very resonable entrance pricing, as low as $5.00 per month or > you can choose to pay by the minute for a big short term project. Like > 0.119 cents an hour for a 8GB memory, 4vCPUs, 80GB SSD and 5TB transfer. It > should be noted that there is not transfer charges if the transferring is > done through an SSH/SSL pipe. There is also special rated block-storage for > projects requiring large amounts of data to test on or use. > > https://www.digitalocean.com > > HTH > > Jim > > ----- Original Message ----- > From: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com>, "Discussion concerning MS SQL Server" < > dba-sqlserver at databaseadvisors.com>, "Development in Visual Studio" < > dba-vs at databaseadvisors.com> > Cc: "Paul Hartland" > Sent: Friday, October 6, 2017 7:38:25 PM > Subject: [AccessD] Free cloud database > > To all, > > Does anyone know of/recommend a decent free cloud database I can use even > if a trial for a month or two while I try to test a few things, will be > happy to pay if I decide to use it afterwards. > > Paul > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > 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 bensonforums at gmail.com Mon Oct 9 16:27:40 2017 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 9 Oct 2017 17:27:40 -0400 Subject: [AccessD] Name Flipping In-Reply-To: References: <01e301d33f07$27fcdb80$77f69280$@bchacc.com> <021d01d33f1b$79efc560$6dcf5020$@bchacc.com> Message-ID: Super great explanation there Anders! Keep smilin! On Mon, Oct 9, 2017 at 3:38 PM, The Smiley Coder wrote: > Access being a very smart tool will only calculate expressions when > required. So e.g. if your form shows 10 out of 1000 records, access will > only calculate the expression (flipname in this case) for the first 10 > (visible) records. Scrolling in the form, will cause access to calculate > the expression for the following now visible records. > > Now the exception to this, is when we force access to calculate the > expression for all records. You can do this by adding a where clause on the > expression, or an order by. > > So in your first test, the expression was not calculated for all records, > but only those visible. In your second test, adding the order by, caused > access to calculated the expression for ALL records (how else would it know > the sort order). > Then you added something to the where clause, >="A". This essentialy > filtered out the records where name was Null, and thus those records where > never passed to your function, thus the function did not error. > > I hope that helps to explain what happened. > > In cases where I might potentially pass a null value into a function, I > will usually set the input data type to variant, and then check it for null > in the function itself, and decide accordingly. Or alternatively, filter > out the null values, since they probably shouldn't be selectable in the > dropdown anyway. > > Best regards > Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > > > On Sat, Oct 7, 2017 at 5:22 AM, Rocky Smolin > wrote: > > > Dan and Paul: > > > > I didn't solve the problem but I worked around it in a way that defied > (to > > me) explanation. > > > > I added the OrderedBy field, the one with the First Name/Last Name, to > the > > query. (in the combo box, it's a zero width field). Then I added a > > criterion >="A", so that this criterion would retrieve all the records. > It > > worked. > > > > Then I set the Unique Values property of the query to yes. It still > > worked. > > > > Finally, I set the Sort on the Flipped Name field to Ascending > > and...inexplicably...it worked. > > > > Now Paul's solution will probably work a treat. I may try it tomorrow > out > > of curiosity. But like raising children, when I get the behavior I'm > > looking for I generally stop working the problem. > > > > Thank you both for your inputs. > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Dan > > Waters > > Sent: Friday, October 06, 2017 6:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Name Flipping > > > > Hi Rocky, > > > > I would try to resolve this first by removing any sorting from the query > > you > > wrote. Then write a second query which simply selects the output of the > > first query and let this second query handle the sorting. > > > > Use the second query as the data source for the combobox. > > > > HTH! > > Dan > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Rocky Smolin > > Sent: October 6, 2017 19:57 > > To: 'Access Developers discussion and problem solving'; 'Off Topic' > > Subject: [AccessD] Name Flipping > > > > Dear List: > > > > > > > > I have a requirement from a client to show a list in a combo box of > contact > > names which appear in Sales Order records sorted by last name. > > > > > > > > Unfortunately the names are entered First Name (space) Last Name. > > > > > > > > Fortunately this is very consistent. > > > > > > > > So I wrote a Public function to flip the names and called it in the query > > which is the Row Source of the combo box like this: > > > > > > > > Flipped Name: FlipName([fldRAHOrderedBy]) > > > > > > > > And it works perfectly. Except. When I add the 'Ascending' to the Sort > > field, then I get a message "Data Type Mismatch in criteria expression". > > > > > > > > When I add the 'Ascending' sort to the Flipped Name field the end of the > > SQL > > adds the ORDER BY clause: > > > > > > > > SELECT tblRentalAgreementHeader.fldRAHID, FlipName([fldRAHOrderedBy]) AS > > FlippedName, tblRentalAgreementHeader.fldRAHOrderNumber AS [Order #], > > tblCustomer.fldCustomerName AS Customer, > > tblRentalAgreementHeader.fldRAHDateOut AS [Date Out], > > Format([DiscountTotal]+Nz(tblRentalAgreementHeader. > > fldRAHStrikeCharge)+Nz(tb > > lRentalAgreementHeader.fldRAHDeliveryCharge)+Nz( > > tblRentalAgreementHeader.fld > > RAHPickUpCharge)+Nz(tblRentalAgreementHeader. > > fldRAHSetUpCharge),"Currency") > > AS [Order $], tblCustomer.fldCustomerInactive AS Inactive, > > tblRentalAgreementHeader.fldRAHDiscount > > > > FROM (tblRentalAgreementHeader LEFT JOIN tblCustomer ON > > tblRentalAgreementHeader.fldRAHCustomerID = tblCustomer.fldCustomerID) > > LEFT > > JOIN qryDailyBookings ON tblRentalAgreementHeader.fldRAHID = > > qryDailyBookings.fldRAHID > > > > ORDER BY FlipName([fldRAHOrderedBy]); > > > > > > > > Which apparently is causing it to barf because the query runs fine > without > > the ORDER BY. > > > > > > > > Does anyone know how to work around this? > > > > > > > > MTIA, > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Oct 12 13:17:56 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 11:17:56 -0700 Subject: [AccessD] Transfer field names to excel Message-ID: <019e01d34386$6d913d70$48b3b850$@bchacc.com> Dear list(s): Is there an easy way to transfer the field names of a table to an excel spreadsheet? I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. I could copy and paste them, it?s not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) But is there an easier more automated way to do this? MTIA \ \ Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From martinreid at gmail.com Thu Oct 12 13:27:34 2017 From: martinreid at gmail.com (Martin Reid) Date: Thu, 12 Oct 2017 19:27:34 +0100 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <019e01d34386$6d913d70$48b3b850$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> Message-ID: <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> http://www.accessmvp.com/JConrad/accessjunkie/doctable.html Various options Martin -----Original Message----- From: "Rocky Smolin" Sent: ?12/?10/?2017 19:18 To: "'Access Developers discussion and problem solving'" ; "'Off Topic'" Subject: [dba-OT] Transfer field names to excel Dear list(s): Is there an easy way to transfer the field names of a table to an excel spreadsheet? I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. I could copy and paste them, it?s not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) But is there an easier more automated way to do this? MTIA \ \ Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From bill_patten at outlook.com Thu Oct 12 14:43:21 2017 From: bill_patten at outlook.com (Bill Patten) Date: Thu, 12 Oct 2017 19:43:21 +0000 Subject: [AccessD] Transfer field names to excel In-Reply-To: <019e01d34386$6d913d70$48b3b850$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> Message-ID: Rocky, I don?t know if you subscribe to dba-OT but if you don't Martin Reid replied to you with this URL stating it had various options. http://www.accessmvp.com/JConrad/accessjunkie/doctable.html HTH Bill -----Original Message----- From: Rocky Smolin Sent: Thursday, October 12, 2017 11:17 AM To: 'Access Developers discussion and problem solving' ; 'Off Topic' Subject: [AccessD] Transfer field names to excel Dear list(s): Is there an easy way to transfer the field names of a table to an excel spreadsheet? I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. I could copy and paste them, it's not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) But is there an easier more automated way to do this? MTIA \ \ Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Oct 12 15:53:59 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 12 Oct 2017 16:53:59 -0400 Subject: [AccessD] Heads-up!!! Message-ID: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> This is a heads up that the following Access components available as standalone downloads are moving past extended support in the near future and along with other Office 2007 products, will not be available for download after that time. If you have any software that depends on the 2007 (32bit) database engine or the 2007 run time, you'll want to download these as soon as possible so you have them. . Access 2007 runtime - https://www.microsoft.com/en-us/download/details.aspx?id=4438 . Office Data Connectivity Components (ACE) - https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be 11f-ede8-5a0c-058c-2ee190a24fa6=True . ADE - https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the packaging wizard, source code control, and the save as template functionality) Jim. From tinanfields at torchlake.com Thu Oct 12 16:00:35 2017 From: tinanfields at torchlake.com (Tina N Fields) Date: Thu, 12 Oct 2017 17:00:35 -0400 Subject: [AccessD] Heads-up!!! In-Reply-To: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> References: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> Message-ID: <7dee26a1-4e09-c19a-ed38-36a76ae284fd@torchlake.com> How grateful we are to have you on this list, Jim. Thanks. T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com On 10/12/2017 4:53 PM, Jim Dettman wrote: > This is a heads up that the following Access components available as > standalone downloads are moving past extended support in the near future and > along with other Office 2007 products, will not be available for download > after that time. > > If you have any software that depends on the 2007 (32bit) database engine > or the 2007 run time, you'll want to download these as soon as possible so > you have them. > > . Access 2007 runtime - > > https://www.microsoft.com/en-us/download/details.aspx?id=4438 > . Office Data Connectivity Components (ACE) - > 7-49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751b > e11f-ede8-5a0c-058c-2ee190a24fa6=True> > https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 > -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be > 11f-ede8-5a0c-058c-2ee190a24fa6=True > . ADE - > > https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the > packaging wizard, source code control, and the save as template > functionality) > > > > Jim. > > > > > From rockysmolin at bchacc.com Thu Oct 12 16:21:34 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 14:21:34 -0700 Subject: [AccessD] Transfer field names to excel In-Reply-To: References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> Message-ID: <01cf01d343a0$150c91d0$3f25b570$@bchacc.com> Thanks Bill. I'm a charter member of OT - proud to say we got kicked off of AccessD by the moderators in 2000 for too much off topic about the election. Interesting list. You should lurk it some time. You might find it entertaining. We'd be happy to have you. :) R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, October 12, 2017 12:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transfer field names to excel Rocky, I don?t know if you subscribe to dba-OT but if you don't Martin Reid replied to you with this URL stating it had various options. http://www.accessmvp.com/JConrad/accessjunkie/doctable.html HTH Bill -----Original Message----- From: Rocky Smolin Sent: Thursday, October 12, 2017 11:17 AM To: 'Access Developers discussion and problem solving' ; 'Off Topic' Subject: [AccessD] Transfer field names to excel Dear list(s): Is there an easy way to transfer the field names of a table to an excel spreadsheet? I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. I could copy and paste them, it's not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) But is there an easier more automated way to do this? MTIA \ \ Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Oct 12 16:35:33 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Oct 2017 07:35:33 +1000 Subject: [AccessD] Transfer field names to excel In-Reply-To: <01cf01d343a0$150c91d0$3f25b570$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, , <01cf01d343a0$150c91d0$3f25b570$@bchacc.com> Message-ID: <59DFE025.21963.452CEBA@stuart.lexacorp.com.pg> Yep, the discussions on OT are amazing! On 12 Oct 2017 at 14:21, Rocky Smolin wrote: > Thanks Bill. I'm a charter member of OT - proud to say we got kicked > off of AccessD by the moderators in 2000 for too much off topic about > the election. Interesting list. You should lurk it some time. You > might find it entertaining. We'd be happy to have you. :) > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bill Patten Sent: Thursday, October 12, 2017 12:43 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Transfer field names to excel > > Rocky, > > I don?t know if you subscribe to dba-OT but if you don't Martin Reid > replied to you with this URL stating it had various options. > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > HTH > > Bill > > -----Original Message----- > From: Rocky Smolin > Sent: Thursday, October 12, 2017 11:17 AM > To: 'Access Developers discussion and problem solving' ; 'Off Topic' > Subject: [AccessD] Transfer field names to excel > > Dear list(s): > > > > Is there an easy way to transfer the field names of a table to an > excel spreadsheet? > > > > I have 11 tables and I would like the field names of all of them to be > in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > I could copy and paste them, it's not an overwhelming number. Probably > take ? hr. or less. Which may be faster (although not as much fun as > writing a bit of code to push the field names onto a spreadsheet.) > > > > But is there an easier more automated way to do this? > > > > MTIA > > \ > > \ > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jeff.developer at gmail.com Thu Oct 12 16:57:39 2017 From: jeff.developer at gmail.com (Jeff) Date: Thu, 12 Oct 2017 16:57:39 -0500 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <01e501d343a3$272a2500$757e6f00$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> Message-ID: <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> Did you try Find and Replace by Rick Fisher? http://www.rickworld.com/products.html I have used it to show used and unused fields in a table and to document table structure. It says it will work up through Access 10, I used it last week on Access 2016. Thanks, Jeff Sent from my iPhone > On Oct 12, 2017, at 4:43 PM, Rocky Smolin wrote: > > Martin: > > Lot of good tools there but didn't see one that would get the field names into an Excel sheet. I'll keep looking, though. > > > r > > -----Original Message----- > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: Thursday, October 12, 2017 11:28 AM > To: Off Topic; 'Access Developers discussion and problem solving' > Subject: Re: [dba-OT] Transfer field names to excel > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > Various options > > Martin > > -----Original Message----- > From: "Rocky Smolin" > Sent: ?12/?10/?2017 19:18 > To: "'Access Developers discussion and problem solving'" ; "'Off Topic'" > Subject: [dba-OT] Transfer field names to excel > > Dear list(s): > > > > Is there an easy way to transfer the field names of a table to an excel spreadsheet? > > > > I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > I could copy and paste them, it?s not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) > > > > But is there an easier more automated way to do this? > > > > MTIA > > \ > > \ > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > > From paul.hartland at googlemail.com Thu Oct 12 17:20:34 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 12 Oct 2017 23:20:34 +0100 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> Message-ID: I could probably get you some code tomorrow, I would go about it using the tabledef object to loop through the tables, then inside every loop, loop through the fields of that tabledef object writing each out to an excel file On 12 Oct 2017 22:58, "Jeff" wrote: > Did you try Find and Replace by Rick Fisher? > > > http://www.rickworld.com/products.html > > I have used it to show used and unused fields in a table and to document > table structure. It says it will work up through Access 10, I used it last > week on Access 2016. > > > Thanks, > Jeff > > Sent from my iPhone > > > On Oct 12, 2017, at 4:43 PM, Rocky Smolin > wrote: > > > > Martin: > > > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > > > > > r > > > > -----Original Message----- > > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of > Martin Reid > > Sent: Thursday, October 12, 2017 11:28 AM > > To: Off Topic; 'Access Developers discussion and problem solving' > > Subject: Re: [dba-OT] Transfer field names to excel > > > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > > > Various options > > > > Martin > > > > -----Original Message----- > > From: "Rocky Smolin" > > Sent: ?12/?10/?2017 19:18 > > To: "'Access Developers discussion and problem solving'" < > accessd at databaseadvisors.com>; "'Off Topic'" > > Subject: [dba-OT] Transfer field names to excel > > > > Dear list(s): > > > > > > > > Is there an easy way to transfer the field names of a table to an excel > spreadsheet? > > > > > > > > I have 11 tables and I would like the field names of all of them to be > in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > > > > > I could copy and paste them, it?s not an overwhelming number. Probably > take ? hr. or less. Which may be faster (although not as much fun as > writing a bit of code to push the field names onto a spreadsheet.) > > > > > > > > But is there an easier more automated way to do this? > > > > > > > > MTIA > > > > \ > > > > \ > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > -- > 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 Oct 12 17:23:49 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Oct 2017 08:23:49 +1000 Subject: [AccessD] [dba-OT] Transfer field names to excel, In-Reply-To: <01e501d343a3$272a2500$757e6f00$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, <59dfb41b.5db8df0a.71342.1cf5@mx.google.com>, <01e501d343a3$272a2500$757e6f00$@bchacc.com> Message-ID: <59DFEB75.32206.47EFE23@stuart.lexacorp.com.pg> On 12 Oct 2017 at 14:43, Rocky Smolin wrote: > Martin: > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > Just knocked this up for you. You can open the resultant Tab delimited text file in Excel. Function GetTableData() As Long Dim Tbls() As String Dim t As TableDef Dim f As Field Dim x As Long Dim y As Long Dim tblCount As Long Dim maxfields As Long 'Get required array dimension For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then tblCount = tblCount + 1 y = t.Fields.Count If y > maxfields Then maxfields = y End If Next ReDim Tbls(1 To tblCount, 0 To maxfields) 'get table and field names into array For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then x = x + 1 y = 0 Tbls(x, 0) = t.Name For Each f In t.Fields y = y + 1 Tbls(x, y) = f.Name Next End If Next 'Export to tab delimited file Open CurrentProject.Path & "\TableFieldNames.txt" For Output As #1 For y = 0 To maxfields For x = 1 To tblCount - 1 Print #1, Tbls(x, y) & Chr$(9); Next Print #1, Tbls(tblCount, y) Next Close #1 MsgBox "Done" End Function From stuart at lexacorp.com.pg Thu Oct 12 17:30:34 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Oct 2017 08:30:34 +1000 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com>, Message-ID: <59DFED0A.1738.4852AAF@stuart.lexacorp.com.pg> Tomorrow? It took me all of 5 minutes. Isn't that amazing! On 12 Oct 2017 at 23:20, Paul Hartland via AccessD wrote: > I could probably get you some code tomorrow, I would go about it using > the tabledef object to loop through the tables, then inside every > loop, loop through the fields of that tabledef object writing each out > to an excel file > From paul.hartland at googlemail.com Thu Oct 12 17:51:08 2017 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 12 Oct 2017 23:51:08 +0100 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <59DFED0A.1738.4852AAF@stuart.lexacorp.com.pg> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> <59DFED0A.1738.4852AAF@stuart.lexacorp.com.pg> Message-ID: Lol yes well in bed reading messages on phone, and didnt want to send anything freehand as been a few years since used vba, sorry for replying at all, obviously not needed now anyway On 12 Oct 2017 23:31, "Stuart McLachlan" wrote: > Tomorrow? It took me all of 5 minutes. Isn't that amazing! > > On 12 Oct 2017 at 23:20, Paul Hartland via AccessD wrote: > > > I could probably get you some code tomorrow, I would go about it using > > the tabledef object to loop through the tables, then inside every > > loop, loop through the fields of that tabledef object writing each out > > to an excel file > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Oct 12 17:54:17 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 15:54:17 -0700 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> Message-ID: <001301d343ad$090ee290$1b2ca7b0$@bchacc.com> I have F&R but don't see a feature to export a table's field names. Is there something there I am missing? Thanks R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, October 12, 2017 2:58 PM To: DBA-AccessD Subject: Re: [AccessD] [dba-OT] Transfer field names to excel Did you try Find and Replace by Rick Fisher? http://www.rickworld.com/products.html I have used it to show used and unused fields in a table and to document table structure. It says it will work up through Access 10, I used it last week on Access 2016. Thanks, Jeff Sent from my iPhone > On Oct 12, 2017, at 4:43 PM, Rocky Smolin wrote: > > Martin: > > Lot of good tools there but didn't see one that would get the field names into an Excel sheet. I'll keep looking, though. > > > r > > -----Original Message----- > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: Thursday, October 12, 2017 11:28 AM > To: Off Topic; 'Access Developers discussion and problem solving' > Subject: Re: [dba-OT] Transfer field names to excel > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > Various options > > Martin > > -----Original Message----- > From: "Rocky Smolin" > Sent: ?12/?10/?2017 19:18 > To: "'Access Developers discussion and problem solving'" ; "'Off Topic'" > Subject: [dba-OT] Transfer field names to excel > > Dear list(s): > > > > Is there an easy way to transfer the field names of a table to an excel spreadsheet? > > > > I have 11 tables and I would like the field names of all of them to be in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > I could copy and paste them, it?s not an overwhelming number. Probably take ? hr. or less. Which may be faster (although not as much fun as writing a bit of code to push the field names onto a spreadsheet.) > > > > But is there an easier more automated way to do this? > > > > MTIA > > \ > > \ > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Oct 12 17:54:41 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 15:54:41 -0700 Subject: [AccessD] Transfer field names to excel In-Reply-To: <59DFE025.21963.452CEBA@stuart.lexacorp.com.pg> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, , <01cf01d343a0$150c91d0$3f25b570$@bchacc.com> <59DFE025.21963.452CEBA@stuart.lexacorp.com.pg> Message-ID: <001401d343ad$16c02250$444066f0$@bchacc.com> Well, pretty amazing. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, October 12, 2017 2:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Transfer field names to excel Yep, the discussions on OT are amazing! On 12 Oct 2017 at 14:21, Rocky Smolin wrote: > Thanks Bill. I'm a charter member of OT - proud to say we got kicked > off of AccessD by the moderators in 2000 for too much off topic about > the election. Interesting list. You should lurk it some time. You > might find it entertaining. We'd be happy to have you. :) > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bill Patten Sent: Thursday, October 12, 2017 12:43 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Transfer field names to excel > > Rocky, > > I don?t know if you subscribe to dba-OT but if you don't Martin Reid > replied to you with this URL stating it had various options. > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > HTH > > Bill > > -----Original Message----- > From: Rocky Smolin > Sent: Thursday, October 12, 2017 11:17 AM > To: 'Access Developers discussion and problem solving' ; 'Off Topic' > Subject: [AccessD] Transfer field names to excel > > Dear list(s): > > > > Is there an easy way to transfer the field names of a table to an > excel spreadsheet? > > > > I have 11 tables and I would like the field names of all of them to be > in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > I could copy and paste them, it's not an overwhelming number. Probably > take ? hr. or less. Which may be faster (although not as much fun as > writing a bit of code to push the field names onto a spreadsheet.) > > > > But is there an easier more automated way to do this? > > > > MTIA > > \ > > \ > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 12 17:55:57 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 15:55:57 -0700 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> Message-ID: <001501d343ad$4487f3c0$cd97db40$@bchacc.com> Well, don't do that Paul. That was one of my options. It's a fun piece of code to write. But I may not need it that badly. Gonna talk to the client tomorrow before I go any further (on my dime). r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland via AccessD Sent: Thursday, October 12, 2017 3:21 PM To: Access List Cc: Paul Hartland Subject: Re: [AccessD] [dba-OT] Transfer field names to excel I could probably get you some code tomorrow, I would go about it using the tabledef object to loop through the tables, then inside every loop, loop through the fields of that tabledef object writing each out to an excel file On 12 Oct 2017 22:58, "Jeff" wrote: > Did you try Find and Replace by Rick Fisher? > > > http://www.rickworld.com/products.html > > I have used it to show used and unused fields in a table and to > document table structure. It says it will work up through Access 10, > I used it last week on Access 2016. > > > Thanks, > Jeff > > Sent from my iPhone > > > On Oct 12, 2017, at 4:43 PM, Rocky Smolin > wrote: > > > > Martin: > > > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > > > > > r > > > > -----Original Message----- > > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf > > Of > Martin Reid > > Sent: Thursday, October 12, 2017 11:28 AM > > To: Off Topic; 'Access Developers discussion and problem solving' > > Subject: Re: [dba-OT] Transfer field names to excel > > > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > > > Various options > > > > Martin > > > > -----Original Message----- > > From: "Rocky Smolin" > > Sent: ?12/?10/?2017 19:18 > > To: "'Access Developers discussion and problem solving'" < > accessd at databaseadvisors.com>; "'Off Topic'" > > > Subject: [dba-OT] Transfer field names to excel > > > > Dear list(s): > > > > > > > > Is there an easy way to transfer the field names of a table to an > > excel > spreadsheet? > > > > > > > > I have 11 tables and I would like the field names of all of them to > > be > in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > > > > > I could copy and paste them, it?s not an overwhelming number. > > Probably > take ? hr. or less. Which may be faster (although not as much fun as > writing a bit of code to push the field names onto a spreadsheet.) > > > > > > > > But is there an easier more automated way to do this? > > > > > > > > MTIA > > > > \ > > > > \ > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 12 17:57:05 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 15:57:05 -0700 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <59DFED0A.1738.4852AAF@stuart.lexacorp.com.pg> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com>, <59DFED0A.1738.4852AAF@stuart.lexacorp.com.pg> Message-ID: <001601d343ad$6d2b8c10$4782a430$@bchacc.com> Somewhat amazing at least. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, October 12, 2017 3:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-OT] Transfer field names to excel Tomorrow? It took me all of 5 minutes. Isn't that amazing! On 12 Oct 2017 at 23:20, Paul Hartland via AccessD wrote: > I could probably get you some code tomorrow, I would go about it using > the tabledef object to loop through the tables, then inside every > loop, loop through the fields of that tabledef object writing each out > to an excel file > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Oct 12 17:57:57 2017 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 12 Oct 2017 17:57:57 -0500 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <001501d343ad$4487f3c0$cd97db40$@bchacc.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> <001501d343ad$4487f3c0$cd97db40$@bchacc.com> Message-ID: I just use the database documenter tool and export the document to excel and copy and paste from there. GK On Thu, Oct 12, 2017 at 5:55 PM, Rocky Smolin wrote: > Well, don't do that Paul. That was one of my options. It's a fun piece of code to write. But I may not need it that badly. Gonna talk to the client tomorrow before I go any further (on my dime). > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland via AccessD > Sent: Thursday, October 12, 2017 3:21 PM > To: Access List > Cc: Paul Hartland > Subject: Re: [AccessD] [dba-OT] Transfer field names to excel > > I could probably get you some code tomorrow, I would go about it using the tabledef object to loop through the tables, then inside every loop, loop through the fields of that tabledef object writing each out to an excel file > > On 12 Oct 2017 22:58, "Jeff" wrote: > >> Did you try Find and Replace by Rick Fisher? >> >> >> http://www.rickworld.com/products.html >> >> I have used it to show used and unused fields in a table and to >> document table structure. It says it will work up through Access 10, >> I used it last week on Access 2016. >> >> >> Thanks, >> Jeff >> >> Sent from my iPhone >> >> > On Oct 12, 2017, at 4:43 PM, Rocky Smolin >> wrote: >> > >> > Martin: >> > >> > Lot of good tools there but didn't see one that would get the field >> names into an Excel sheet. I'll keep looking, though. >> > >> > >> > r >> > >> > -----Original Message----- >> > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf >> > Of >> Martin Reid >> > Sent: Thursday, October 12, 2017 11:28 AM >> > To: Off Topic; 'Access Developers discussion and problem solving' >> > Subject: Re: [dba-OT] Transfer field names to excel >> > >> > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html >> > >> > Various options >> > >> > Martin >> > >> > -----Original Message----- >> > From: "Rocky Smolin" >> > Sent: ?12/?10/?2017 19:18 >> > To: "'Access Developers discussion and problem solving'" < >> accessd at databaseadvisors.com>; "'Off Topic'" >> >> > Subject: [dba-OT] Transfer field names to excel >> > >> > Dear list(s): >> > >> > >> > >> > Is there an easy way to transfer the field names of a table to an >> > excel >> spreadsheet? >> > >> > >> > >> > I have 11 tables and I would like the field names of all of them to >> > be >> in 11 columns of a spreadsheet. Each table has about 15 fields. >> > >> > >> > >> > I could copy and paste them, it?s not an overwhelming number. >> > Probably >> take ? hr. or less. Which may be faster (although not as much fun as >> writing a bit of code to push the field names onto a spreadsheet.) >> > >> > >> > >> > But is there an easier more automated way to do this? >> > >> > >> > >> > MTIA >> > >> > \ >> > >> > \ >> > >> > Rocky Smolin >> > >> > Beach Access Software >> > >> > 760-683-5777 >> > >> > www.bchacc.com >> > >> > www.e-z-mrp.com >> > >> > Skype: rocky.smolin >> > >> > >> > >> > >> > >> > >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Gary Kjos garykjos at gmail.com From rockysmolin at bchacc.com Thu Oct 12 18:07:31 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 16:07:31 -0700 Subject: [AccessD] [dba-OT] Transfer field names to excel, In-Reply-To: <59DFEB75.32206.47EFE23@stuart.lexacorp.com.pg> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com>, <59dfb41b.5db8df0a.71342.1cf5@mx.google.com>, <01e501d343a3$272a2500$757e6f00$@bchacc.com> <59DFEB75.32206.47EFE23@stuart.lexacorp.com.pg> Message-ID: <001701d343ae$e1f337e0$a5d9a7a0$@bchacc.com> Thank you. You're very good https://www.youtube.com/watch?v=86DiuQAkADI r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, October 12, 2017 3:24 PM To: Off Topic; access Developers discussion and problem solving Subject: Re: [AccessD] [dba-OT] Transfer field names to excel, On 12 Oct 2017 at 14:43, Rocky Smolin wrote: > Martin: > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > Just knocked this up for you. You can open the resultant Tab delimited text file in Excel. Function GetTableData() As Long Dim Tbls() As String Dim t As TableDef Dim f As Field Dim x As Long Dim y As Long Dim tblCount As Long Dim maxfields As Long 'Get required array dimension For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then tblCount = tblCount + 1 y = t.Fields.Count If y > maxfields Then maxfields = y End If Next ReDim Tbls(1 To tblCount, 0 To maxfields) 'get table and field names into array For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then x = x + 1 y = 0 Tbls(x, 0) = t.Name For Each f In t.Fields y = y + 1 Tbls(x, y) = f.Name Next End If Next 'Export to tab delimited file Open CurrentProject.Path & "\TableFieldNames.txt" For Output As #1 For y = 0 To maxfields For x = 1 To tblCount - 1 Print #1, Tbls(x, y) & Chr$(9); Next Print #1, Tbls(tblCount, y) Next Close #1 MsgBox "Done" End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Oct 12 18:27:29 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Oct 2017 16:27:29 -0700 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> <001501d343ad$4487f3c0$cd97db40$@bchacc.com> Message-ID: <001c01d343b1$ac58ced0$050a6c70$@bchacc.com> That works except on my system it didn't export the table names. But anyway, we have Stuart. Who needs Microsoft? R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, October 12, 2017 3:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-OT] Transfer field names to excel I just use the database documenter tool and export the document to excel and copy and paste from there. GK On Thu, Oct 12, 2017 at 5:55 PM, Rocky Smolin wrote: > Well, don't do that Paul. That was one of my options. It's a fun piece of code to write. But I may not need it that badly. Gonna talk to the client tomorrow before I go any further (on my dime). > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Paul Hartland via AccessD > Sent: Thursday, October 12, 2017 3:21 PM > To: Access List > Cc: Paul Hartland > Subject: Re: [AccessD] [dba-OT] Transfer field names to excel > > I could probably get you some code tomorrow, I would go about it using > the tabledef object to loop through the tables, then inside every > loop, loop through the fields of that tabledef object writing each out > to an excel file > > On 12 Oct 2017 22:58, "Jeff" wrote: > >> Did you try Find and Replace by Rick Fisher? >> >> >> http://www.rickworld.com/products.html >> >> I have used it to show used and unused fields in a table and to >> document table structure. It says it will work up through Access 10, >> I used it last week on Access 2016. >> >> >> Thanks, >> Jeff >> >> Sent from my iPhone >> >> > On Oct 12, 2017, at 4:43 PM, Rocky Smolin >> wrote: >> > >> > Martin: >> > >> > Lot of good tools there but didn't see one that would get the field >> names into an Excel sheet. I'll keep looking, though. >> > >> > >> > r >> > >> > -----Original Message----- >> > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf >> > Of >> Martin Reid >> > Sent: Thursday, October 12, 2017 11:28 AM >> > To: Off Topic; 'Access Developers discussion and problem solving' >> > Subject: Re: [dba-OT] Transfer field names to excel >> > >> > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html >> > >> > Various options >> > >> > Martin >> > >> > -----Original Message----- >> > From: "Rocky Smolin" >> > Sent: ?12/?10/?2017 19:18 >> > To: "'Access Developers discussion and problem solving'" < >> accessd at databaseadvisors.com>; "'Off Topic'" >> >> > Subject: [dba-OT] Transfer field names to excel >> > >> > Dear list(s): >> > >> > >> > >> > Is there an easy way to transfer the field names of a table to an >> > excel >> spreadsheet? >> > >> > >> > >> > I have 11 tables and I would like the field names of all of them to >> > be >> in 11 columns of a spreadsheet. Each table has about 15 fields. >> > >> > >> > >> > I could copy and paste them, it?s not an overwhelming number. >> > Probably >> take ? hr. or less. Which may be faster (although not as much fun as >> writing a bit of code to push the field names onto a spreadsheet.) >> > >> > >> > >> > But is there an easier more automated way to do this? >> > >> > >> > >> > MTIA >> > >> > \ >> > >> > \ >> > >> > Rocky Smolin >> > >> > Beach Access Software >> > >> > 760-683-5777 >> > >> > www.bchacc.com >> > >> > www.e-z-mrp.com >> > >> > Skype: rocky.smolin >> > >> > >> > >> > >> > >> > >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thesmileycoder at gmail.com Fri Oct 13 01:36:40 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Fri, 13 Oct 2017 08:36:40 +0200 Subject: [AccessD] [dba-OT] Transfer field names to excel In-Reply-To: <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <6DB6882C-8CC9-45E3-A7B0-EEF39DAAC035@gmail.com> Message-ID: I should mention that I've heard several reports, that he is no longer replying to requests on his site. I've not tried to verify this myself, just wanted to give a word of caution. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Thu, Oct 12, 2017 at 11:57 PM, Jeff wrote: > Did you try Find and Replace by Rick Fisher? > > > http://www.rickworld.com/products.html > > I have used it to show used and unused fields in a table and to document > table structure. It says it will work up through Access 10, I used it last > week on Access 2016. > > > Thanks, > Jeff > > Sent from my iPhone > > > On Oct 12, 2017, at 4:43 PM, Rocky Smolin > wrote: > > > > Martin: > > > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > > > > > r > > > > -----Original Message----- > > From: dba-OT [mailto:dba-ot-bounces at databaseadvisors.com] On Behalf Of > Martin Reid > > Sent: Thursday, October 12, 2017 11:28 AM > > To: Off Topic; 'Access Developers discussion and problem solving' > > Subject: Re: [dba-OT] Transfer field names to excel > > > > http://www.accessmvp.com/JConrad/accessjunkie/doctable.html > > > > Various options > > > > Martin > > > > -----Original Message----- > > From: "Rocky Smolin" > > Sent: ?12/?10/?2017 19:18 > > To: "'Access Developers discussion and problem solving'" < > accessd at databaseadvisors.com>; "'Off Topic'" > > Subject: [dba-OT] Transfer field names to excel > > > > Dear list(s): > > > > > > > > Is there an easy way to transfer the field names of a table to an excel > spreadsheet? > > > > > > > > I have 11 tables and I would like the field names of all of them to be > in 11 columns of a spreadsheet. Each table has about 15 fields. > > > > > > > > I could copy and paste them, it?s not an overwhelming number. Probably > take ? hr. or less. Which may be faster (although not as much fun as > writing a bit of code to push the field names onto a spreadsheet.) > > > > > > > > But is there an easier more automated way to do this? > > > > > > > > MTIA > > > > \ > > > > \ > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Fri Oct 13 05:39:05 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 13 Oct 2017 06:39:05 -0400 Subject: [AccessD] Heads-up!!! In-Reply-To: <7dee26a1-4e09-c19a-ed38-36a76ae284fd@torchlake.com> References: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> <7dee26a1-4e09-c19a-ed38-36a76ae284fd@torchlake.com> Message-ID: <10c001d3440f$7e6ac100$7b404300$@verizon.net> Thanks. It's nice to be able to give back when I can. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina N Fields Sent: Thursday, October 12, 2017 05:01 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Heads-up!!! How grateful we are to have you on this list, Jim. Thanks. T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com On 10/12/2017 4:53 PM, Jim Dettman wrote: > This is a heads up that the following Access components available as > standalone downloads are moving past extended support in the near future and > along with other Office 2007 products, will not be available for download > after that time. > > If you have any software that depends on the 2007 (32bit) database engine > or the 2007 run time, you'll want to download these as soon as possible so > you have them. > > . Access 2007 runtime - > > https://www.microsoft.com/en-us/download/details.aspx?id=4438 > . Office Data Connectivity Components (ACE) - > 7-49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751b > e11f-ede8-5a0c-058c-2ee190a24fa6=True> > https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 > -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be > 11f-ede8-5a0c-058c-2ee190a24fa6=True > . ADE - > > https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the > packaging wizard, source code control, and the save as template > functionality) > > > > Jim. > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Oct 14 01:56:52 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 14 Oct 2017 00:56:52 -0600 (MDT) Subject: [AccessD] Heads-up!!! In-Reply-To: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> References: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> Message-ID: <2128125287.513131491.1507964212490.JavaMail.zimbra@shaw.ca> Cool...thanks for the link. Jim ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Thursday, October 12, 2017 1:53:59 PM Subject: [AccessD] Heads-up!!! This is a heads up that the following Access components available as standalone downloads are moving past extended support in the near future and along with other Office 2007 products, will not be available for download after that time. If you have any software that depends on the 2007 (32bit) database engine or the 2007 run time, you'll want to download these as soon as possible so you have them. . Access 2007 runtime - https://www.microsoft.com/en-us/download/details.aspx?id=4438 . Office Data Connectivity Components (ACE) - https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be 11f-ede8-5a0c-058c-2ee190a24fa6=True . ADE - https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the packaging wizard, source code control, and the save as template functionality) Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Oct 14 02:09:16 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 14 Oct 2017 01:09:16 -0600 (MDT) Subject: [AccessD] [dba-OT] Transfer field names to excel, In-Reply-To: <59DFEB75.32206.47EFE23@stuart.lexacorp.com.pg> References: <019e01d34386$6d913d70$48b3b850$@bchacc.com> <59dfb41b.5db8df0a.71342.1cf5@mx.google.com> <01e501d343a3$272a2500$757e6f00$@bchacc.com> <59DFEB75.32206.47EFE23@stuart.lexacorp.com.pg> Message-ID: <1087902750.513146685.1507964956860.JavaMail.zimbra@shaw.ca> Well that definitely works...well done. Jim ----- Original Message ----- From: "stuart" To: "Off Topic" databaseadvisors.com>, "Access Developers discussion and problem solving" Sent: Thursday, October 12, 2017 3:23:49 PM Subject: Re: [AccessD] [dba-OT] Transfer field names to excel, On 12 Oct 2017 at 14:43, Rocky Smolin wrote: > Martin: > > Lot of good tools there but didn't see one that would get the field > names into an Excel sheet. I'll keep looking, though. > > Just knocked this up for you. You can open the resultant Tab delimited text file in Excel. Function GetTableData() As Long Dim Tbls() As String Dim t As TableDef Dim f As Field Dim x As Long Dim y As Long Dim tblCount As Long Dim maxfields As Long 'Get required array dimension For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then tblCount = tblCount + 1 y = t.Fields.Count If y > maxfields Then maxfields = y End If Next ReDim Tbls(1 To tblCount, 0 To maxfields) 'get table and field names into array For Each t In CurrentDb.TableDefs If Left$(t.Name, 4) <> "mSys" Then x = x + 1 y = 0 Tbls(x, 0) = t.Name For Each f In t.Fields y = y + 1 Tbls(x, y) = f.Name Next End If Next 'Export to tab delimited file Open CurrentProject.Path & "\TableFieldNames.txt" For Output As #1 For y = 0 To maxfields For x = 1 To tblCount - 1 Print #1, Tbls(x, y) & Chr$(9); Next Print #1, Tbls(tblCount, y) Next Close #1 MsgBox "Done" End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Oct 14 02:30:16 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 14 Oct 2017 01:30:16 -0600 (MDT) Subject: [AccessD] New astronomic phenomenon In-Reply-To: <7dee26a1-4e09-c19a-ed38-36a76ae284fd@torchlake.com> References: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> <7dee26a1-4e09-c19a-ed38-36a76ae284fd@torchlake.com> Message-ID: <1092030043.513166609.1507966216366.JavaMail.zimbra@shaw.ca> New astronomic phenomenon. When I originally read the article one part of it confused me... Quote: " According to the media advisory released today by the ESO, scientists have observed an astronomical phenomenon that has never been witnessed before. Beyond that, no information is available regarding this most recent announcement." ...but it does get better. https://futurism.com/a-european-astronomical-observatory-is-announcing-an-unprecedented-discovery/ http://bit.ly/2i9eW1t Jim From tinanfields at torchlake.com Sat Oct 14 08:39:03 2017 From: tinanfields at torchlake.com (Tina N Fields) Date: Sat, 14 Oct 2017 09:39:03 -0400 Subject: [AccessD] Heads-up!!! In-Reply-To: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> References: <104d01d3439c$3ab9ca50$b02d5ef0$@verizon.net> Message-ID: <2b2df8dc-aa2e-5b0f-8827-56efcf672a7c@torchlake.com> Thanks again, Jim. Got them all downloaded and stored in a tools folder for future use. Regards, T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com On 10/12/2017 4:53 PM, Jim Dettman wrote: > This is a heads up that the following Access components available as > standalone downloads are moving past extended support in the near future and > along with other Office 2007 products, will not be available for download > after that time. > > If you have any software that depends on the 2007 (32bit) database engine > or the 2007 run time, you'll want to download these as soon as possible so > you have them. > > . Access 2007 runtime - > > https://www.microsoft.com/en-us/download/details.aspx?id=4438 > . Office Data Connectivity Components (ACE) - > 7-49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751b > e11f-ede8-5a0c-058c-2ee190a24fa6=True> > https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 > -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be > 11f-ede8-5a0c-058c-2ee190a24fa6=True > . ADE - > > https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the > packaging wizard, source code control, and the save as template > functionality) > > > > Jim. > > > > > From jwcolby at gmail.com Sat Oct 14 09:45:46 2017 From: jwcolby at gmail.com (John Colby) Date: Sat, 14 Oct 2017 10:45:46 -0400 Subject: [AccessD] Can anyone help me with this Message-ID: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> My SQL Server (Windows 2008) reboots periodically.? Periodically implies on a schedule so perhaps sporadically is a better description.? This has been going on for years.? It will do so several times a day. What I have discovered is that if I keep one of the cores busy, and I use a script in SQL Server to do that, then it never reboots. I read that Windows 2008 can be led to believe (accidentally in my case) that it needs to reboot to finish an install or something of that nature, and it will do so when the system is "idle".? By keeping a core active, the system never does that reboot thing.? I do not know for sure that this is what is going on but it absolutely makes sense.? In he meantime I have to do this "keep a core active" thing or my server reboots.? If anyone out there understands what is really going on and how to tell Windows to knock it off, please contact me. Thanks, -- John W. Colby From mwp.reid at qub.ac.uk Sat Oct 14 10:33:07 2017 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 14 Oct 2017 15:33:07 +0000 Subject: [AccessD] Can anyone help me with this In-Reply-To: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> Message-ID: <976E500DD0AF35409874A413967BFAECA09AAE93@EX2K10-MBX5.ads.qub.ac.uk> John I have passed to a Microsoft contact to see if she knows someone who can assist. Martin Sent from my Windows Phone ________________________________ From: John Colby Sent: ?14/?10/?2017 15:49 To: Access Developers discussion and problem solving Subject: [AccessD] Can anyone help me with this My SQL Server (Windows 2008) reboots periodically. Periodically implies on a schedule so perhaps sporadically is a better description. This has been going on for years. It will do so several times a day. What I have discovered is that if I keep one of the cores busy, and I use a script in SQL Server to do that, then it never reboots. I read that Windows 2008 can be led to believe (accidentally in my case) that it needs to reboot to finish an install or something of that nature, and it will do so when the system is "idle". By keeping a core active, the system never does that reboot thing. I do not know for sure that this is what is going on but it absolutely makes sense. In he meantime I have to do this "keep a core active" thing or my server reboots. If anyone out there understands what is really going on and how to tell Windows to knock it off, please contact me. Thanks, -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sat Oct 14 10:46:44 2017 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 14 Oct 2017 15:46:44 +0000 Subject: [AccessD] Can anyone help me with this In-Reply-To: <976E500DD0AF35409874A413967BFAECA09AAE93@EX2K10-MBX5.ads.qub.ac.uk> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com>, <976E500DD0AF35409874A413967BFAECA09AAE93@EX2K10-MBX5.ads.qub.ac.uk> Message-ID: <976E500DD0AF35409874A413967BFAECA09AAEF7@EX2K10-MBX5.ads.qub.ac.uk> John Got a reply. Already passed to a SQL Server engineer. Will if they are any use now!!! Martin Sent from my Windows Phone ________________________________ From: Martin Reid Sent: ?14/?10/?2017 16:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can anyone help me with this John I have passed to a Microsoft contact to see if she knows someone who can assist. Martin Sent from my Windows Phone ________________________________ From: John Colby Sent: ?14/?10/?2017 15:49 To: Access Developers discussion and problem solving Subject: [AccessD] Can anyone help me with this My SQL Server (Windows 2008) reboots periodically. Periodically implies on a schedule so perhaps sporadically is a better description. This has been going on for years. It will do so several times a day. What I have discovered is that if I keep one of the cores busy, and I use a script in SQL Server to do that, then it never reboots. I read that Windows 2008 can be led to believe (accidentally in my case) that it needs to reboot to finish an install or something of that nature, and it will do so when the system is "idle". By keeping a core active, the system never does that reboot thing. I do not know for sure that this is what is going on but it absolutely makes sense. In he meantime I have to do this "keep a core active" thing or my server reboots. If anyone out there understands what is really going on and how to tell Windows to knock it off, please contact me. Thanks, -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Sat Oct 14 10:53:00 2017 From: jwcolby at gmail.com (John Colby) Date: Sat, 14 Oct 2017 11:53:00 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <976E500DD0AF35409874A413967BFAECA09AAEF7@EX2K10-MBX5.ads.qub.ac.uk> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <976E500DD0AF35409874A413967BFAECA09AAE93@EX2K10-MBX5.ads.qub.ac.uk> <976E500DD0AF35409874A413967BFAECA09AAEF7@EX2K10-MBX5.ads.qub.ac.uk> Message-ID: <342b794d-5127-e654-4f15-879f9f5c16f7@Gmail.com> Wow.? Well at least they respond. Thanks! On 10/14/2017 11:46 AM, Martin Reid wrote: > John > > Got a reply. > Already passed to a SQL Server engineer. Will if they are any use now!!! > > Martin > > Sent from my Windows Phone > ________________________________ > From: Martin Reid > Sent: ?14/?10/?2017 16:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Can anyone help me with this > > John > > I have passed to a Microsoft contact to see if she knows someone who can assist. > > Martin > > Sent from my Windows Phone > ________________________________ > From: John Colby > Sent: ?14/?10/?2017 15:49 > To: Access Developers discussion and problem solving > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- John W. Colby From gustav at cactus.dk Sat Oct 14 12:27:23 2017 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 14 Oct 2017 17:27:23 +0000 Subject: [AccessD] Where Access is moving Message-ID: Hi all If you are interested in where Access is moving, watch this presentation from Ignite 2017 by Michal Bar and Juan Soto: https://techcommunity.microsoft.com/t5/Access-Blog/Access-Recap-from-Ignite-2017/ba-p/114269 Also, to keep up on a regular basis: https://support.office.com/en-us/article/What-s-new-in-Access-2016-76454345-f85d-47af-ace1-98a456cb3496 and the tech blog main page: https://techcommunity.microsoft.com/t5/Access-Blog/bg-p/AccessBlog /gustav From accessd at shaw.ca Sat Oct 14 13:20:17 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 14 Oct 2017 12:20:17 -0600 (MDT) Subject: [AccessD] Can anyone help me with this In-Reply-To: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> Message-ID: <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> Hi John: You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? Jim ----- Original Message ----- From: "John Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, October 14, 2017 7:45:46 AM Subject: [AccessD] Can anyone help me with this My SQL Server (Windows 2008) reboots periodically. Periodically implies on a schedule so perhaps sporadically is a better description. This has been going on for years. It will do so several times a day. What I have discovered is that if I keep one of the cores busy, and I use a script in SQL Server to do that, then it never reboots. I read that Windows 2008 can be led to believe (accidentally in my case) that it needs to reboot to finish an install or something of that nature, and it will do so when the system is "idle". By keeping a core active, the system never does that reboot thing. I do not know for sure that this is what is going on but it absolutely makes sense. In he meantime I have to do this "keep a core active" thing or my server reboots. If anyone out there understands what is really going on and how to tell Windows to knock it off, please contact me. Thanks, -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Oct 14 13:35:02 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 14 Oct 2017 12:35:02 -0600 (MDT) Subject: [AccessD] Where Access is moving In-Reply-To: References: Message-ID: <1993013302.514115117.1508006102413.JavaMail.zimbra@shaw.ca> Hi Gustav: You are a great source of Microsoft information. :-) When I get a chance I will go through all this stuff. I have recently been working on a project with an old friend and it is a mashup of hardware and software. I will post the project details on DBA-Tech, later. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, October 14, 2017 10:27:23 AM Subject: [AccessD] Where Access is moving Hi all If you are interested in where Access is moving, watch this presentation from Ignite 2017 by Michal Bar and Juan Soto: https://techcommunity.microsoft.com/t5/Access-Blog/Access-Recap-from-Ignite-2017/ba-p/114269 Also, to keep up on a regular basis: https://support.office.com/en-us/article/What-s-new-in-Access-2016-76454345-f85d-47af-ace1-98a456cb3496 and the tech blog main page: https://techcommunity.microsoft.com/t5/Access-Blog/bg-p/AccessBlog /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Sun Oct 15 10:19:19 2017 From: jwcolby at gmail.com (John Colby) Date: Sun, 15 Oct 2017 11:19:19 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> Message-ID: <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> The machine just reboots.? It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing.? So what is bizarre is that it will stay running as long as I keep a core running something.? NEVER reboots as long as it is kept active.? Which is my "solution" at this point.? The reboots are at random times.? Sometimes once every few days, normally a few times a day, sometimes 10 times in a day.? But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active.? I run long queries maxing out all 16 cores for hours and it works just fine.? NEVER reboots if kept active.? Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby From gustav at cactus.dk Sun Oct 15 10:54:07 2017 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Oct 2017 15:54:07 +0000 Subject: [AccessD] [dba-VB] C#, mantissa, math fun In-Reply-To: References: , Message-ID: Hi all I posted a method for this in C#. Finding the mantissa in VBA it could be like: ' Returns the mantissa of a decimal number as ' a string to preserve leading zeroes. ' ' Examples: ' Mantissa(1234.56789) -> "56789" ' Mantissa(-1234.56789) -> "56789" ' Mantissa(1234.056789) -> "056789" ' Mantissa(-1234.056789) -> "056789" ' Mantissa(123456789) -> "" ' ' 2017-10-15. Gustav Brock, Cactus Data ApS, CPH. ' Public Function Mantissa( _ ByVal Number As Double) _ As String Dim Result As String Dim Fraction As Variant Fraction = CDec(Number) - CDec(Fix(Number)) If Fraction <> 0 Then Result = Mid(Str(Abs(Fraction)), 3) End If Mantissa = Result End Function /gustav From fuller.artful at gmail.com Sun Oct 15 11:03:07 2017 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 15 Oct 2017 12:03:07 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: John, Is it possible that the behaviour occurs at the hardware level, rather than the OS or SQL Server? I'm thinking of Energy Conservation settings. I have a tower I have that randomly shuts off and just as randomly turns back on. If I intrude, i.e. press the power button while the machine is in "shut off" mode, then it comes back to life much more quickly than after a cold boot, and it returns to precisely where I left it. It also seems, although I haven't verified this, that if I run gmail on that machine (since I get a lot of email), that seems to preserve the connection and prevent the shutdown. Arthur ? From jwcolby at gmail.com Sun Oct 15 11:14:53 2017 From: jwcolby at gmail.com (John Colby) Date: Sun, 15 Oct 2017 12:14:53 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: <7cd77701-7c6d-8086-d13e-6b2d5adabe8c@Gmail.com> Well as you can see I really don't have a clue why it is happening.? I was under the impression that such hardware kind of shutdowns informed the OS which then initiated the shutdown.? Mine does not shutdown, it simply reboots. On 10/15/2017 12:03 PM, Arthur Fuller wrote: > John, > > Is it possible that the behaviour occurs at the hardware level, rather than > the OS or SQL Server? I'm thinking of Energy Conservation settings. I have > a tower I have that randomly shuts off and just as randomly turns back on. > If I intrude, i.e. press the power button while the machine is in "shut > off" mode, then it comes back to life much more quickly than after a cold > boot, and it returns to precisely where I left it. It also seems, although > I haven't verified this, that if I run gmail on that machine (since I get a > lot of email), that seems to preserve the connection and prevent the > shutdown. > > Arthur > ? -- John W. Colby From jamesbutton at blueyonder.co.uk Sun Oct 15 12:21:35 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Sun, 15 Oct 2017 18:21:35 +0100 Subject: [AccessD] Can anyone help me with this In-Reply-To: <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: Maybe check on Designed-in "Do this when no user activity processes" features: - Write all memory to pagefile - so is the pagefile pre-allocated as big enough, and is the allocated space OK for read after rite? Compress and tidy up the MFT (for NTFS) - so do you have a partition with a folder that has enormous numbers of empty, or very small files ? Has an OS update re-instated hibernate ? Is there a drive that is shutting down as in sleep after a period ? I had a WD drive that did that - and caused write failures usually updating the MFT with entries where the app was not specifying verification of writes - so the Windoze just kept the data until it decided it needed to write them to the drive - usually when it got the "I'm going beddy-byes" notification from the drive. And - note the validation required on writes to the drive applies to APPS - NOT to the windows activities - Nice design feature Microsoft - goes along with the we will be making things secure opening of comms before starting the firewall in XP So - I'm getting back to my current annoyance Onedrive - where the upload progress report removes the destination folder id from the actions heading when it gets to the end of a set of actions NOTE - I did not say completes the set - and - when you go to see what has happened to the folders - the report has been totally removed And - it being much faster to restart the system (or at least the browser( than wait for Onedrive "long running script" to finish arguing over which of the 2 threads it uses should get itself back from pagefile into RAM - Maybe an hour - or more - 2GB with 10GB pagefile to get the upload to usually run! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 4:19 PM To: Access Developers discussion and problem solving ; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jamesbutton at blueyonder.co.uk Sun Oct 15 12:29:07 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Sun, 15 Oct 2017 18:29:07 +0100 Subject: [AccessD] Can anyone help me with this In-Reply-To: <7cd77701-7c6d-8086-d13e-6b2d5adabe8c@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <7cd77701-7c6d-8086-d13e-6b2d5adabe8c@Gmail.com> Message-ID: Reboot on 'error' shutdown is an option - OK - it was an option And - further thoughts - is there enough space on the pagefile / hiber.sys? / swapfile partition(s) And - wild supposition - the PSU and power regulation is going wrong when the load drops - as in less drive, CPU and Memory usage = less heat = turn off/turn down the fans The problem being that any log recording may well stop the problem - Maybe set screen to stay on, and video the screen to catch any transient message JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 5:15 PM To: Access Developers discussion and problem solving ; Arthur Fuller Subject: Re: [AccessD] Can anyone help me with this Well as you can see I really don't have a clue why it is happening. I was under the impression that such hardware kind of shutdowns informed the OS which then initiated the shutdown. Mine does not shutdown, it simply reboots. On 10/15/2017 12:03 PM, Arthur Fuller wrote: > John, > > Is it possible that the behaviour occurs at the hardware level, rather than > the OS or SQL Server? I'm thinking of Energy Conservation settings. I have > a tower I have that randomly shuts off and just as randomly turns back on. > If I intrude, i.e. press the power button while the machine is in "shut > off" mode, then it comes back to life much more quickly than after a cold > boot, and it returns to precisely where I left it. It also seems, although > I haven't verified this, that if I run gmail on that machine (since I get a > lot of email), that seems to preserve the connection and prevent the > shutdown. > > Arthur > ? -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Oct 15 13:22:34 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 15 Oct 2017 14:22:34 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <7cd77701-7c6d-8086-d13e-6b2d5adabe8c@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <7cd77701-7c6d-8086-d13e-6b2d5adabe8c@Gmail.com> Message-ID: <33AC9A73-845F-47EE-B4B2-6D1C106C4545@verizon.net> Power events would all be in the system event log. Unexpected shutdowns due to hardware would be as well, but logged at next boot. Checking the event logs should be your first stop. Jim Sent from my iPhone > On Oct 15, 2017, at 12:14 PM, John Colby wrote: > > Well as you can see I really don't have a clue why it is happening. I was under the impression that such hardware kind of shutdowns informed the OS which then initiated the shutdown. Mine does not shutdown, it simply reboots. > > >> On 10/15/2017 12:03 PM, Arthur Fuller wrote: >> John, >> >> Is it possible that the behaviour occurs at the hardware level, rather than >> the OS or SQL Server? I'm thinking of Energy Conservation settings. I have >> a tower I have that randomly shuts off and just as randomly turns back on. >> If I intrude, i.e. press the power button while the machine is in "shut >> off" mode, then it comes back to life much more quickly than after a cold >> boot, and it returns to precisely where I left it. It also seems, although >> I haven't verified this, that if I run gmail on that machine (since I get a >> lot of email), that seems to preserve the connection and prevent the >> shutdown. >> >> Arthur >> ? > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Sun Oct 15 13:25:04 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 15 Oct 2017 14:25:04 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: <9F5E7E90-8AE9-46F9-8819-8F7B0FE278A0@verizon.net> If it's an older server (more than a few years), reseat all the memory and consider running a memory dish. Jim Sent from my iPhone > On Oct 15, 2017, at 11:19 AM, John Colby wrote: > > The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. > > Puzzling and frustrating. > > In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) > >> On 10/14/2017 2:20 PM, Jim Lawrence wrote: >> Hi John: >> >> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >> >> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >> Jim >> >> ----- Original Message ----- >> From: "John Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Saturday, October 14, 2017 7:45:46 AM >> Subject: [AccessD] Can anyone help me with this >> >> My SQL Server (Windows 2008) reboots periodically. Periodically implies >> on a schedule so perhaps sporadically is a better description. This has >> been going on for years. It will do so several times a day. >> >> What I have discovered is that if I keep one of the cores busy, and I >> use a script in SQL Server to do that, then it never reboots. >> >> I read that Windows 2008 can be led to believe (accidentally in my case) >> that it needs to reboot to finish an install or something of that >> nature, and it will do so when the system is "idle". By keeping a core >> active, the system never does that reboot thing. I do not know for sure >> that this is what is going on but it absolutely makes sense. In he >> meantime I have to do this "keep a core active" thing or my server >> reboots. If anyone out there understands what is really going on and >> how to tell Windows to knock it off, please contact me. >> >> Thanks, >> > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Oct 15 14:06:39 2017 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 15 Oct 2017 19:06:39 +0000 Subject: [AccessD] Can anyone help me with this In-Reply-To: <9F5E7E90-8AE9-46F9-8819-8F7B0FE278A0@verizon.net> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com>, <9F5E7E90-8AE9-46F9-8819-8F7B0FE278A0@verizon.net> Message-ID: <976E500DD0AF35409874A413967BFAECA09AB64A@EX2K10-MBX5.ads.qub.ac.uk> John Do you have windows event logs when this happens? Martin Sent from my Windows Phone ________________________________ From: Jim Dettman Sent: ?15/?10/?2017 19:36 To: Access Developers discussion and problem solving Cc: Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this If it's an older server (more than a few years), reseat all the memory and consider running a memory dish. Jim Sent from my iPhone > On Oct 15, 2017, at 11:19 AM, John Colby wrote: > > The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. > > Puzzling and frustrating. > > In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) > >> On 10/14/2017 2:20 PM, Jim Lawrence wrote: >> Hi John: >> >> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >> >> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >> Jim >> >> ----- Original Message ----- >> From: "John Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Saturday, October 14, 2017 7:45:46 AM >> Subject: [AccessD] Can anyone help me with this >> >> My SQL Server (Windows 2008) reboots periodically. Periodically implies >> on a schedule so perhaps sporadically is a better description. This has >> been going on for years. It will do so several times a day. >> >> What I have discovered is that if I keep one of the cores busy, and I >> use a script in SQL Server to do that, then it never reboots. >> >> I read that Windows 2008 can be led to believe (accidentally in my case) >> that it needs to reboot to finish an install or something of that >> nature, and it will do so when the system is "idle". By keeping a core >> active, the system never does that reboot thing. I do not know for sure >> that this is what is going on but it absolutely makes sense. In he >> meantime I have to do this "keep a core active" thing or my server >> reboots. If anyone out there understands what is really going on and >> how to tell Windows to knock it off, please contact me. >> >> Thanks, >> > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 15 15:18:48 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 15 Oct 2017 14:18:48 -0600 (MDT) Subject: [AccessD] Can anyone help me with this In-Reply-To: References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: <1271045312.516082524.1508098728276.JavaMail.zimbra@shaw.ca> I think you may be on to something. Check all the features in them motherboards BIOS. Has John checked the motherboared's tech documentation? As the motherboard has been around for a while, if this is a hardware issue then someone would have posted a comment or two. Jim ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Sunday, October 15, 2017 9:03:07 AM Subject: Re: [AccessD] Can anyone help me with this John, Is it possible that the behaviour occurs at the hardware level, rather than the OS or SQL Server? I'm thinking of Energy Conservation settings. I have a tower I have that randomly shuts off and just as randomly turns back on. If I intrude, i.e. press the power button while the machine is in "shut off" mode, then it comes back to life much more quickly than after a cold boot, and it returns to precisely where I left it. It also seems, although I haven't verified this, that if I run gmail on that machine (since I get a lot of email), that seems to preserve the connection and prevent the shutdown. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Oct 15 15:57:14 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 15 Oct 2017 14:57:14 -0600 (MDT) Subject: [AccessD] Can anyone help me with this In-Reply-To: References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: <954203387.516128144.1508101034684.JavaMail.zimbra@shaw.ca> The latest NTFS 5.x has a very good reputation as extremely reliable. I do not think MS is directly compatible with any other File Systems, which is too bad as there are some excellent other FS options available. Very rugged. You brought up an interesting point. Maybe the reboot problems are related to the hard drives...or even a dying harddrive. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 10:21:35 AM Subject: Re: [AccessD] Can anyone help me with this Maybe check on Designed-in "Do this when no user activity processes" features: - Write all memory to pagefile - so is the pagefile pre-allocated as big enough, and is the allocated space OK for read after rite? Compress and tidy up the MFT (for NTFS) - so do you have a partition with a folder that has enormous numbers of empty, or very small files ? Has an OS update re-instated hibernate ? Is there a drive that is shutting down as in sleep after a period ? I had a WD drive that did that - and caused write failures usually updating the MFT with entries where the app was not specifying verification of writes - so the Windoze just kept the data until it decided it needed to write them to the drive - usually when it got the "I'm going beddy-byes" notification from the drive. And - note the validation required on writes to the drive applies to APPS - NOT to the windows activities - Nice design feature Microsoft - goes along with the we will be making things secure opening of comms before starting the firewall in XP So - I'm getting back to my current annoyance Onedrive - where the upload progress report removes the destination folder id from the actions heading when it gets to the end of a set of actions NOTE - I did not say completes the set - and - when you go to see what has happened to the folders - the report has been totally removed And - it being much faster to restart the system (or at least the browser( than wait for Onedrive "long running script" to finish arguing over which of the 2 threads it uses should get itself back from pagefile into RAM - Maybe an hour - or more - 2GB with 10GB pagefile to get the upload to usually run! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 4:19 PM To: Access Developers discussion and problem solving ; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jamesbutton at blueyonder.co.uk Sun Oct 15 16:37:47 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Sun, 15 Oct 2017 22:37:47 +0100 Subject: [AccessD] Can anyone help me with this In-Reply-To: <954203387.516128144.1508101034684.JavaMail.zimbra@shaw.ca> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <954203387.516128144.1508101034684.JavaMail.zimbra@shaw.ca> Message-ID: My concerns about the NTFS is that ALL the file entries are in the ;hive' as well as the data from any small files. I have 'sorted' systems with over 100,000 zero length entries in the MFT - mostly 'Browser' and other apps marker files. Some in the users 'local' and associated folder entries - appallingly slow response to the point of hanging and timeouts while the OS works through the MFT that is many times larger than the RAM, I would not have expected it to be a dying drive as the system runs while doing things - maybe a problem with the PSU, or a dying fan! The sleep setting is either manufacturer set or set within the OS - sleep seems to be the earliest allowed by the shortest setting wherever. Maybe it would be worth running a chkdsk - report mode - The fix mode can result in a totally destroyed data store as file entries without the proper links get deleted. JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, October 15, 2017 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can anyone help me with this The latest NTFS 5.x has a very good reputation as extremely reliable. I do not think MS is directly compatible with any other File Systems, which is too bad as there are some excellent other FS options available. Very rugged. You brought up an interesting point. Maybe the reboot problems are related to the hard drives...or even a dying harddrive. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 10:21:35 AM Subject: Re: [AccessD] Can anyone help me with this Maybe check on Designed-in "Do this when no user activity processes" features: - Write all memory to pagefile - so is the pagefile pre-allocated as big enough, and is the allocated space OK for read after rite? Compress and tidy up the MFT (for NTFS) - so do you have a partition with a folder that has enormous numbers of empty, or very small files ? Has an OS update re-instated hibernate ? Is there a drive that is shutting down as in sleep after a period ? I had a WD drive that did that - and caused write failures usually updating the MFT with entries where the app was not specifying verification of writes - so the Windoze just kept the data until it decided it needed to write them to the drive - usually when it got the "I'm going beddy-byes" notification from the drive. And - note the validation required on writes to the drive applies to APPS - NOT to the windows activities - Nice design feature Microsoft - goes along with the we will be making things secure opening of comms before starting the firewall in XP So - I'm getting back to my current annoyance Onedrive - where the upload progress report removes the destination folder id from the actions heading when it gets to the end of a set of actions NOTE - I did not say completes the set - and - when you go to see what has happened to the folders - the report has been totally removed And - it being much faster to restart the system (or at least the browser( than wait for Onedrive "long running script" to finish arguing over which of the 2 threads it uses should get itself back from pagefile into RAM - Maybe an hour - or more - 2GB with 10GB pagefile to get the upload to usually run! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 4:19 PM To: Access Developers discussion and problem solving ; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Sun Oct 15 19:24:22 2017 From: jwcolby at gmail.com (John Colby) Date: Sun, 15 Oct 2017 20:24:22 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <1271045312.516082524.1508098728276.JavaMail.zimbra@shaw.ca> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <1271045312.516082524.1508098728276.JavaMail.zimbra@shaw.ca> Message-ID: <595b0d1e-83b0-e2ba-08be-ea162fc48dbf@Gmail.com> I actually purchased an identical MB and swapped it out, before I discovered the "keep it active" trick. The file system is totally run off of a hardware raid controller.? Mostly Raid 6.? Boot is raid 5. On 10/15/2017 4:18 PM, Jim Lawrence wrote: > I think you may be on to something. > > Check all the features in them motherboards BIOS. Has John checked the motherboared's tech documentation? As the motherboard has been around for a while, if this is a hardware issue then someone would have posted a comment or two. > > Jim > > ----- Original Message ----- > From: "Arthur Fuller" > To: "Access Developers discussion and problem solving" > Sent: Sunday, October 15, 2017 9:03:07 AM > Subject: Re: [AccessD] Can anyone help me with this > > John, > > Is it possible that the behaviour occurs at the hardware level, rather than > the OS or SQL Server? I'm thinking of Energy Conservation settings. I have > a tower I have that randomly shuts off and just as randomly turns back on. > If I intrude, i.e. press the power button while the machine is in "shut > off" mode, then it comes back to life much more quickly than after a cold > boot, and it returns to precisely where I left it. It also seems, although > I haven't verified this, that if I run gmail on that machine (since I get a > lot of email), that seems to preserve the connection and prevent the > shutdown. > > Arthur > -- John W. Colby From jwcolby at gmail.com Sun Oct 15 19:25:04 2017 From: jwcolby at gmail.com (John Colby) Date: Sun, 15 Oct 2017 20:25:04 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <976E500DD0AF35409874A413967BFAECA09AB64A@EX2K10-MBX5.ads.qub.ac.uk> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <9F5E7E90-8AE9-46F9-8819-8F7B0FE278A0@verizon.net> <976E500DD0AF35409874A413967BFAECA09AB64A@EX2K10-MBX5.ads.qub.ac.uk> Message-ID: <8177019f-e3d8-5bc1-a578-1db45e1eac3d@Gmail.com> Not on shutdown.? Yes on boot back up.? "Unexpected shutdown" kind of log. On 10/15/2017 3:06 PM, Martin Reid wrote: > John > > Do you have windows event logs when this happens? > > Martin > > Sent from my Windows Phone > ________________________________ > From: Jim Dettman > Sent: ?15/?10/?2017 19:36 > To: Access Developers discussion and problem solving > Cc: Jim Lawrence > Subject: Re: [AccessD] Can anyone help me with this > > If it's an older server (more than a few years), reseat all the memory and consider running a memory dish. > > Jim > > Sent from my iPhone > >> On Oct 15, 2017, at 11:19 AM, John Colby wrote: >> >> The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. >> >> Puzzling and frustrating. >> >> In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) >> >>> On 10/14/2017 2:20 PM, Jim Lawrence wrote: >>> Hi John: >>> >>> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >>> >>> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >>> Jim >>> >>> ----- Original Message ----- >>> From: "John Colby" >>> To: "Access Developers discussion and problem solving" >>> Sent: Saturday, October 14, 2017 7:45:46 AM >>> Subject: [AccessD] Can anyone help me with this >>> >>> My SQL Server (Windows 2008) reboots periodically. Periodically implies >>> on a schedule so perhaps sporadically is a better description. This has >>> been going on for years. It will do so several times a day. >>> >>> What I have discovered is that if I keep one of the cores busy, and I >>> use a script in SQL Server to do that, then it never reboots. >>> >>> I read that Windows 2008 can be led to believe (accidentally in my case) >>> that it needs to reboot to finish an install or something of that >>> nature, and it will do so when the system is "idle". By keeping a core >>> active, the system never does that reboot thing. I do not know for sure >>> that this is what is going on but it absolutely makes sense. In he >>> meantime I have to do this "keep a core active" thing or my server >>> reboots. If anyone out there understands what is really going on and >>> how to tell Windows to knock it off, please contact me. >>> >>> Thanks, >>> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- John W. Colby From gustav at cactus.dk Mon Oct 16 05:33:49 2017 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Oct 2017 10:33:49 +0000 Subject: [AccessD] [dba-VB] C#, mantissa, math fun Message-ID: Hi all Oops, the parameter should be a Variant to take a Decimal value which can hold op to 28 decimals: ' Returns the mantissa of a decimal number as ' a string to preserve leading zeroes. ' ' Maximum returned length of mantissa is: ' Single: 8 ' Double: 16 ' Currency: 4 ' Decimal: 28 ' ' Examples: ' Mantissa(1234.56789) -> "56789" ' Mantissa(-1234.56789) -> "56789" ' Mantissa(1234.056789) -> "056789" ' Mantissa(-1234.056789) -> "056789" ' Mantissa(123456789) -> "" ' Mantissa(CDec("-0.0123456789012345678901234567")) -> "0123456789012345678901234567" ' Mantissa(CDbl("-0.0123456789012345678901234567")) -> "0123456789012346" ' ' 2017-10-16. Gustav Brock, Cactus Data ApS, CPH. ' Public Function Mantissa( _ ByVal Number As Variant) _ As String Dim Result As String Dim Fraction As Variant If IsNumeric(Number) Then ' Convert to Decimal to prevent scientific notation of doubles and singles. Fraction = CDec(Number) - Fix(CDec(Number)) If Fraction <> 0 Then Result = Mid(Str(Abs(Fraction)), 3) End If End If Mantissa = Result End Function /gustav -----Oprindelig meddelelse----- Fra: dba-VS [mailto:dba-vs-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 15. oktober 2017 17:54 Til: Development in Visual Studio ; Access Developers discussion and problem solving Emne: Re: [dba-VS] [dba-VB] C#, mantissa, math fun Hi all I posted a method for this in C#. Finding the mantissa in VBA it could be like: ' Returns the mantissa of a decimal number as ' a string to preserve leading zeroes. ' ' Examples: ' Mantissa(1234.56789) -> "56789" ' Mantissa(-1234.56789) -> "56789" ' Mantissa(1234.056789) -> "056789" ' Mantissa(-1234.056789) -> "056789" ' Mantissa(123456789) -> "" ' ' 2017-10-15. Gustav Brock, Cactus Data ApS, CPH. ' Public Function Mantissa( _ ByVal Number As Double) _ As String Dim Result As String Dim Fraction As Variant Fraction = CDec(Number) - CDec(Fix(Number)) If Fraction <> 0 Then Result = Mid(Str(Abs(Fraction)), 3) End If Mantissa = Result End Function /gustav _______________________________________________ dba-VS mailing list dba-VS at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vs http://www.databaseadvisors.com From accessd at shaw.ca Mon Oct 16 13:59:38 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 16 Oct 2017 12:59:38 -0600 (MDT) Subject: [AccessD] Can anyone help me with this In-Reply-To: References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <954203387.516128144.1508101034684.JavaMail.zimbra@shaw.ca> Message-ID: <941959470.518240020.1508180378169.JavaMail.zimbra@shaw.ca> That's a tough one. I did a quick scan and found no FS that easily handled huge numbers of small or zero length files. Are all these small files necessary? When do they get deleted? If these files have a time limit could a CRON or AT batch file be used to spawn a back-ground process to clear the unneeded entries? Could some of these small entries be managed better in a database? Are the small file sequentially named and numbered? Could a "range" entry be used to correctly describe current files? Many years ago, when an application wrote hundreds of small files, I had to build a system that generated lists of directories each holding numerous files. The FS at the time was only a FAT32 and the number of files in a single directory limit was much lower that today's FSs but the management should be fairly similar. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 2:37:47 PM Subject: Re: [AccessD] Can anyone help me with this My concerns about the NTFS is that ALL the file entries are in the ;hive' as well as the data from any small files. I have 'sorted' systems with over 100,000 zero length entries in the MFT - mostly 'Browser' and other apps marker files. Some in the users 'local' and associated folder entries - appallingly slow response to the point of hanging and timeouts while the OS works through the MFT that is many times larger than the RAM, I would not have expected it to be a dying drive as the system runs while doing things - maybe a problem with the PSU, or a dying fan! The sleep setting is either manufacturer set or set within the OS - sleep seems to be the earliest allowed by the shortest setting wherever. Maybe it would be worth running a chkdsk - report mode - The fix mode can result in a totally destroyed data store as file entries without the proper links get deleted. JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, October 15, 2017 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can anyone help me with this The latest NTFS 5.x has a very good reputation as extremely reliable. I do not think MS is directly compatible with any other File Systems, which is too bad as there are some excellent other FS options available. Very rugged. You brought up an interesting point. Maybe the reboot problems are related to the hard drives...or even a dying harddrive. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 10:21:35 AM Subject: Re: [AccessD] Can anyone help me with this Maybe check on Designed-in "Do this when no user activity processes" features: - Write all memory to pagefile - so is the pagefile pre-allocated as big enough, and is the allocated space OK for read after rite? Compress and tidy up the MFT (for NTFS) - so do you have a partition with a folder that has enormous numbers of empty, or very small files ? Has an OS update re-instated hibernate ? Is there a drive that is shutting down as in sleep after a period ? I had a WD drive that did that - and caused write failures usually updating the MFT with entries where the app was not specifying verification of writes - so the Windoze just kept the data until it decided it needed to write them to the drive - usually when it got the "I'm going beddy-byes" notification from the drive. And - note the validation required on writes to the drive applies to APPS - NOT to the windows activities - Nice design feature Microsoft - goes along with the we will be making things secure opening of comms before starting the firewall in XP So - I'm getting back to my current annoyance Onedrive - where the upload progress report removes the destination folder id from the actions heading when it gets to the end of a set of actions NOTE - I did not say completes the set - and - when you go to see what has happened to the folders - the report has been totally removed And - it being much faster to restart the system (or at least the browser( than wait for Onedrive "long running script" to finish arguing over which of the 2 threads it uses should get itself back from pagefile into RAM - Maybe an hour - or more - 2GB with 10GB pagefile to get the upload to usually run! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 4:19 PM To: Access Developers discussion and problem solving ; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jamesbutton at blueyonder.co.uk Mon Oct 16 17:57:26 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Mon, 16 Oct 2017 23:57:26 +0100 Subject: [AccessD] Can anyone help me with this In-Reply-To: <941959470.518240020.1508180378169.JavaMail.zimbra@shaw.ca> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <954203387.516128144.1508101034684.JavaMail.zimbra@shaw.ca> <941959470.518240020.1508180378169.JavaMail.zimbra@shaw.ca> Message-ID: The only way I found to deal with them was to use something like treesize to identify the folders (note Treesize will also find 'stuff' that is in the recycle bin, but the windows interface (GUI) is not showing - drag the hidden stuff to the root and deleted rather than recycled - and recovered over 50GB space) Back to small files - if the folders can be identified and 'managed' - put them on a separate folder and If non-zero but under 100bytes use NTFS - then 'attach' that folder, Or use win2K or a non-MS partition facility to setup FAT32 with small allocations Or use zip folders - win10 can be set to show zip files as if they are folders. I found that browsers are a major source of such files - and the hive can usually be cleaned out easily - if you know where to access the individual users and get the browser to do that for you - Otherwise a script to get the specific file types - css js or no type For me - I was 'support' and recommended appropriate actions to the users who complained - basically advice to chop the browser store - and run a cleanup of the files and folders that held temp stuff - and if that did not deal with the problem - a script that scanned the folder structure reporting counts of files 0, <100 and <500 bytes - then tell the user to submit a description of what the files were being used by - Yes tech evaluation from the user - but that provided 'justification' for time allocation and allowed an 'authorised' action on their PC - Back covering - essential if deleting files from a user's PC! Re database - - so maybe use blob mode and then have to setup associations - but basically the files need to be in the folder that the app (and windows) expects them to be in For me - that problem, is known and I try to avoid it, but recognise the symptoms - taking longer to rename a file than to copy a 10MB file and selection of folders with over 2000 files takes tens of minutes rather than under ten seconds Anyhow, thanks for the thoughts - maybe others will benefit JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, October 16, 2017 8:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can anyone help me with this That's a tough one. I did a quick scan and found no FS that easily handled huge numbers of small or zero length files. Are all these small files necessary? When do they get deleted? If these files have a time limit could a CRON or AT batch file be used to spawn a back-ground process to clear the unneeded entries? Could some of these small entries be managed better in a database? Are the small file sequentially named and numbered? Could a "range" entry be used to correctly describe current files? Many years ago, when an application wrote hundreds of small files, I had to build a system that generated lists of directories each holding numerous files. The FS at the time was only a FAT32 and the number of files in a single directory limit was much lower that today's FSs but the management should be fairly similar. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 2:37:47 PM Subject: Re: [AccessD] Can anyone help me with this My concerns about the NTFS is that ALL the file entries are in the ;hive' as well as the data from any small files. I have 'sorted' systems with over 100,000 zero length entries in the MFT - mostly 'Browser' and other apps marker files. Some in the users 'local' and associated folder entries - appallingly slow response to the point of hanging and timeouts while the OS works through the MFT that is many times larger than the RAM, I would not have expected it to be a dying drive as the system runs while doing things - maybe a problem with the PSU, or a dying fan! The sleep setting is either manufacturer set or set within the OS - sleep seems to be the earliest allowed by the shortest setting wherever. Maybe it would be worth running a chkdsk - report mode - The fix mode can result in a totally destroyed data store as file entries without the proper links get deleted. JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, October 15, 2017 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Can anyone help me with this The latest NTFS 5.x has a very good reputation as extremely reliable. I do not think MS is directly compatible with any other File Systems, which is too bad as there are some excellent other FS options available. Very rugged. You brought up an interesting point. Maybe the reboot problems are related to the hard drives...or even a dying harddrive. Jim ----- Original Message ----- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Cc: "James Button" Sent: Sunday, October 15, 2017 10:21:35 AM Subject: Re: [AccessD] Can anyone help me with this Maybe check on Designed-in "Do this when no user activity processes" features: - Write all memory to pagefile - so is the pagefile pre-allocated as big enough, and is the allocated space OK for read after rite? Compress and tidy up the MFT (for NTFS) - so do you have a partition with a folder that has enormous numbers of empty, or very small files ? Has an OS update re-instated hibernate ? Is there a drive that is shutting down as in sleep after a period ? I had a WD drive that did that - and caused write failures usually updating the MFT with entries where the app was not specifying verification of writes - so the Windoze just kept the data until it decided it needed to write them to the drive - usually when it got the "I'm going beddy-byes" notification from the drive. And - note the validation required on writes to the drive applies to APPS - NOT to the windows activities - Nice design feature Microsoft - goes along with the we will be making things secure opening of comms before starting the firewall in XP So - I'm getting back to my current annoyance Onedrive - where the upload progress report removes the destination folder id from the actions heading when it gets to the end of a set of actions NOTE - I did not say completes the set - and - when you go to see what has happened to the folders - the report has been totally removed And - it being much faster to restart the system (or at least the browser( than wait for Onedrive "long running script" to finish arguing over which of the 2 threads it uses should get itself back from pagefile into RAM - Maybe an hour - or more - 2GB with 10GB pagefile to get the upload to usually run! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 4:19 PM To: Access Developers discussion and problem solving ; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Tue Oct 17 06:37:03 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 17 Oct 2017 07:37:03 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> Message-ID: <009c01d3473c$41a4b700$c4ee2500$@verizon.net> John, Just to circle back around on this. " The log as it comes back up says "unexpected shutdown" kind of thing. " In that case, it's not updates, software, or anything else that normally happens. Shutdowns because of normal things would all be logged in the event log. If the system simply reboots and the log shows "unexpected shutdown", then it's almost always hardware or power quality. In rare cases it can be a driver at fault, but outright reboots are almost always hardware. You generally get a stop screen with most software faults rather than just a reboot. Do you have a UPS on it on the system and has it been tested recently? I would definitely reseat the memory and run the hardware diagnostics. Since keeping the system active avoids the reboots, then most likely something is getting cold when you don't. You may have a cold solder joint on the mother board or in the power supply. My bet would be on the power supply given that this is pretty loaded (if I remember correctly). Of course depending on its age, it may be simplest to replace it and I would seriously consider that if it's more than eight years old. Beyond ten would be a definite. Boards eventually do get brittle and then you start having all kinds of problems. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Sunday, October 15, 2017 11:19 AM To: Access Developers discussion and problem solving; Jim Lawrence Subject: Re: [AccessD] Can anyone help me with this The machine just reboots. It does not put anything in any log. The log as it comes back up says "unexpected shutdown" kind of thing. So what is bizarre is that it will stay running as long as I keep a core running something. NEVER reboots as long as it is kept active. Which is my "solution" at this point. The reboots are at random times. Sometimes once every few days, normally a few times a day, sometimes 10 times in a day. But if overheating or other "hardware" issue, why will it NOT reboot as long as it is kept active. I run long queries maxing out all 16 cores for hours and it works just fine. NEVER reboots if kept active. Let it go idle and it starts rebooting. Puzzling and frustrating. In the end, keeping a single core busy keeps it alive so it is no longer a problem that I feel pressed to deal with, but I'd like to have my core back. ;) On 10/14/2017 2:20 PM, Jim Lawrence wrote: > Hi John: > > You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? > > One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" > Sent: Saturday, October 14, 2017 7:45:46 AM > Subject: [AccessD] Can anyone help me with this > > My SQL Server (Windows 2008) reboots periodically. Periodically implies > on a schedule so perhaps sporadically is a better description. This has > been going on for years. It will do so several times a day. > > What I have discovered is that if I keep one of the cores busy, and I > use a script in SQL Server to do that, then it never reboots. > > I read that Windows 2008 can be led to believe (accidentally in my case) > that it needs to reboot to finish an install or something of that > nature, and it will do so when the system is "idle". By keeping a core > active, the system never does that reboot thing. I do not know for sure > that this is what is going on but it absolutely makes sense. In he > meantime I have to do this "keep a core active" thing or my server > reboots. If anyone out there understands what is really going on and > how to tell Windows to knock it off, please contact me. > > Thanks, > -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BWalsh at healthinsight.org Tue Oct 17 14:19:11 2017 From: BWalsh at healthinsight.org (Bob Walsh) Date: Tue, 17 Oct 2017 19:19:11 +0000 Subject: [AccessD] Printing background colors Message-ID: Hi Everyone, I have a report that has colors in the background of the various section headers. They show up nicely ion the print preview. However when I send it to the printer, it doesn't print the background colors. Is there a setting somewhere to print background colors and images that I missed? Bob ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all copies. From thesmileycoder at gmail.com Tue Oct 17 15:02:41 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Tue, 17 Oct 2017 22:02:41 +0200 Subject: [AccessD] Printing background colors In-Reply-To: References: Message-ID: Most objects have a "Display when" property, which can be set to either "always", "Screen only" and "Print only". Usefull if you want a button in report view, or form view, but don't wan't it in the printout. That said, if it is visible in print preview (not report view), it should also be visible in the printout. So please verify that you are indeed using print preview. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Tue, Oct 17, 2017 at 9:19 PM, Bob Walsh wrote: > Hi Everyone, > > I have a report that has colors in the background of the various section > headers. > They show up nicely ion the print preview. > However when I send it to the printer, it doesn't print the background > colors. > Is there a setting somewhere to print background colors and images that I > missed? > > Bob > > ________________________________ > HealthInsight is a private, nonprofit, community-based organization > dedicated to improving health and health care, with offices in four western > states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has > operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage > Renal Disease Networks in the Western United States. The information and > any materials included in this transmission may contain confidential > information from HealthInsight. The information is intended for use by the > person named on this transmittal. If you are not the intended recipient, be > aware that any disclosure, copying, distribution, or use of the contents of > this transmission is prohibited. If you have received this message in > error, please inform the sender and delete all copies. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at aig.com Tue Oct 17 15:47:16 2017 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Tue, 17 Oct 2017 20:47:16 +0000 Subject: [AccessD] Printing background colors In-Reply-To: References: Message-ID: Check your printer properties. It's probably there that you need to change something. Lambert? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Tuesday, October 17, 2017 3:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Printing background colors Hi Everyone, I have a report that has colors in the background of the various section headers. They show up nicely ion the print preview. However when I send it to the printer, it doesn't print the background colors. Is there a setting somewhere to print background colors and images that I missed? Bob ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all copies. -- AccessD mailing list AccessD at databaseadvisors.com https://urldefense.proofpoint.com/v2/url?u=http-3A__databaseadvisors.com_mailman_listinfo_accessd&d=DwICAg&c=xCWjLLB1opnQ8cQ1kJMK6Z0FoTSuoAz5oSor6M3mWoM&r=3YBmj7Sj6Qj9KCAjmw0aH_Ojqk70ji_Giv5KILyYF6DlttubYyldIWPj2xFc_ojY&m=f_VnCnX7myxMAQMgCm7FuhvOkWRK_jd-VJ6RmCe7Ofc&s=mxE9urzklqJH5-Ya9NYYDjCJpK3I48I8DxcS1Lw4Wd4&e= Website: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.databaseadvisors.com&d=DwICAg&c=xCWjLLB1opnQ8cQ1kJMK6Z0FoTSuoAz5oSor6M3mWoM&r=3YBmj7Sj6Qj9KCAjmw0aH_Ojqk70ji_Giv5KILyYF6DlttubYyldIWPj2xFc_ojY&m=f_VnCnX7myxMAQMgCm7FuhvOkWRK_jd-VJ6RmCe7Ofc&s=RMKcClHTPGTEUvX2DzOo0ZRwfDL5k8Om-lhzKzkBgdg&e= From rockysmolin at bchacc.com Tue Oct 17 16:08:13 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 17 Oct 2017 14:08:13 -0700 Subject: [AccessD] Printing background colors In-Reply-To: References: Message-ID: <024701d3478c$0b94a1c0$22bde540$@bchacc.com> I'm guessing a printer property. I have mine set to grayscale and draft node to save ink. I rarely need color. So when I do need color I have to make that change in the printer properties dialog box before printing. Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Tuesday, October 17, 2017 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Printing background colors Hi Everyone, I have a report that has colors in the background of the various section headers. They show up nicely ion the print preview. However when I send it to the printer, it doesn't print the background colors. Is there a setting somewhere to print background colors and images that I missed? Bob ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all copies. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BWalsh at healthinsight.org Tue Oct 17 16:13:45 2017 From: BWalsh at healthinsight.org (Bob Walsh) Date: Tue, 17 Oct 2017 21:13:45 +0000 Subject: [AccessD] Printing background colors In-Reply-To: <024701d3478c$0b94a1c0$22bde540$@bchacc.com> References: <024701d3478c$0b94a1c0$22bde540$@bchacc.com> Message-ID: Not a printer property setting. I know that in Word there is a setting in Tools for printing background colors and images, But I haven't found a setting like that in Access From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, October 17, 2017 2:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Printing background colors [Attn: This is an external email.] I'm guessing a printer property. I have mine set to grayscale and draft node to save ink. I rarely need color. So when I do need color I have to make that change in the printer properties dialog box before printing. Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Tuesday, October 17, 2017 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Printing background colors Hi Everyone, I have a report that has colors in the background of the various section headers. They show up nicely ion the print preview. However when I send it to the printer, it doesn't print the background colors. Is there a setting somewhere to print background colors and images that I missed? Bob ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all 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 ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all copies. From BWalsh at healthinsight.org Tue Oct 17 16:17:36 2017 From: BWalsh at healthinsight.org (Bob Walsh) Date: Tue, 17 Oct 2017 21:17:36 +0000 Subject: [AccessD] Printing background colors In-Reply-To: References: Message-ID: The colors show up in both print preview and in the report view From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of The Smiley Coder Sent: Tuesday, October 17, 2017 1:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Printing background colors [Attn: This is an external email.] Most objects have a "Display when" property, which can be set to either "always", "Screen only" and "Print only". Usefull if you want a button in report view, or form view, but don't wan't it in the printout. That said, if it is visible in print preview (not report view), it should also be visible in the printout. So please verify that you are indeed using print preview. Best regards Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > On Tue, Oct 17, 2017 at 9:19 PM, Bob Walsh > wrote: > Hi Everyone, > > I have a report that has colors in the background of the various section > headers. > They show up nicely ion the print preview. > However when I send it to the printer, it doesn't print the background > colors. > Is there a setting somewhere to print background colors and images that I > missed? > > Bob > > ________________________________ > HealthInsight is a private, nonprofit, community-based organization > dedicated to improving health and health care, with offices in four western > states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has > operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage > Renal Disease Networks in the Western United States. The information and > any materials included in this transmission may contain confidential > information from HealthInsight. The information is intended for use by the > person named on this transmittal. If you are not the intended recipient, be > aware that any disclosure, copying, distribution, or use of the contents of > this transmission is prohibited. If you have received this message in > error, please inform the sender and delete all 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 ________________________________ HealthInsight is a private, nonprofit, community-based organization dedicated to improving health and health care, with offices in four western states: Nevada, New Mexico, Oregon and Utah. HealthInsight also has operations in Seattle, Wash., and Glendale, Calif., supporting End-Stage Renal Disease Networks in the Western United States. The information and any materials included in this transmission may contain confidential information from HealthInsight. The information is intended for use by the person named on this transmittal. If you are not the intended recipient, be aware that any disclosure, copying, distribution, or use of the contents of this transmission is prohibited. If you have received this message in error, please inform the sender and delete all copies. From jwcolby at gmail.com Tue Oct 17 17:35:40 2017 From: jwcolby at gmail.com (John Colby) Date: Tue, 17 Oct 2017 18:35:40 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <009c01d3473c$41a4b700$c4ee2500$@verizon.net> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <009c01d3473c$41a4b700$c4ee2500$@verizon.net> Message-ID: <19738bdc-3f6d-d1c8-c8d3-34e61f6e9da9@Gmail.com> I would normally agree.? But explain how something like this would NEVER occur as long as the processor is kept busy?? A hardware problem with manners?? I was in hardware for the first 15 years of my career, and software for the rest.? I have never seen a polite hardware problem.? In fact most of the time they happen MORE OFTEN when the system is stressed in some manner. On 10/17/2017 7:37 AM, Jim Dettman wrote: > John, > > Just to circle back around on this. > > " The log as it comes back up says "unexpected shutdown" kind of thing." > > In that case, it's not updates, software, or anything else that normally happens. Shutdowns because of normal things would all be logged in the event log. If the system simply reboots and the log shows "unexpected shutdown", then it's almost always hardware or power quality. In rare cases it can be a driver at fault, but outright reboots are almost always hardware. You generally get a stop screen with most software faults rather than just a reboot. > > Do you have a UPS on it on the system and has it been tested recently? > > I would definitely reseat the memory and run the hardware diagnostics. Since keeping the system active avoids the reboots, then most likely something is getting cold when you don't. You may have a cold solder joint on the mother board or in the power supply. My bet would be on the power supply given that this is pretty loaded (if I remember correctly). > > Of course depending on its age, it may be simplest to replace it and I would seriously consider that if it's more than eight years old. Beyond ten would be a definite. Boards eventually do get brittle and then you start having all kinds of problems. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby > Sent: Sunday, October 15, 2017 11:19 AM > To: Access Developers discussion and problem solving; Jim Lawrence > Subject: Re: [AccessD] Can anyone help me with this > > The machine just reboots. It does not put anything in any log. The log > as it comes back up says "unexpected shutdown" kind of thing. So what > is bizarre is that it will stay running as long as I keep a core running > something. NEVER reboots as long as it is kept active. Which is my > "solution" at this point. The reboots are at random times. Sometimes > once every few days, normally a few times a day, sometimes 10 times in a > day. But if overheating or other "hardware" issue, why will it NOT > reboot as long as it is kept active. I run long queries maxing out all > 16 cores for hours and it works just fine. NEVER reboots if kept > active. Let it go idle and it starts rebooting. > > Puzzling and frustrating. > > In the end, keeping a single core busy keeps it alive so it is no longer > a problem that I feel pressed to deal with, but I'd like to have my core > back. ;) > > On 10/14/2017 2:20 PM, Jim Lawrence wrote: >> Hi John: >> >> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >> >> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >> >> Jim >> >> ----- Original Message ----- >> From: "John Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Saturday, October 14, 2017 7:45:46 AM >> Subject: [AccessD] Can anyone help me with this >> >> My SQL Server (Windows 2008) reboots periodically. Periodically implies >> on a schedule so perhaps sporadically is a better description. This has >> been going on for years. It will do so several times a day. >> >> What I have discovered is that if I keep one of the cores busy, and I >> use a script in SQL Server to do that, then it never reboots. >> >> I read that Windows 2008 can be led to believe (accidentally in my case) >> that it needs to reboot to finish an install or something of that >> nature, and it will do so when the system is "idle". By keeping a core >> active, the system never does that reboot thing. I do not know for sure >> that this is what is going on but it absolutely makes sense. In he >> meantime I have to do this "keep a core active" thing or my server >> reboots. If anyone out there understands what is really going on and >> how to tell Windows to knock it off, please contact me. >> >> Thanks, >> -- John W. Colby From wrwehler at gmail.com Tue Oct 17 17:53:45 2017 From: wrwehler at gmail.com (Ryan Wehler) Date: Tue, 17 Oct 2017 17:53:45 -0500 Subject: [AccessD] Can anyone help me with this In-Reply-To: <19738bdc-3f6d-d1c8-c8d3-34e61f6e9da9@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <009c01d3473c$41a4b700$c4ee2500$@verizon.net> <19738bdc-3f6d-d1c8-c8d3-34e61f6e9da9@Gmail.com> Message-ID: I don?t know if it?s worth your time or if you have the additional resources available but I would try to convert it to a virtual machine and see if it continues to reboot. At least that would tell you if it?s the underlying hardware.... the added benefit could be virtualization of your dev environment for hardware consolidation/expiration. > On Oct 17, 2017, at 5:35 PM, John Colby wrote: > > I would normally agree. But explain how something like this would NEVER occur as long as the processor is kept busy? A hardware problem with manners? I was in hardware for the first 15 years of my career, and software for the rest. I have never seen a polite hardware problem. In fact most of the time they happen MORE OFTEN when the system is stressed in some manner. > > >> On 10/17/2017 7:37 AM, Jim Dettman wrote: >> John, >> >> Just to circle back around on this. >> >> " The log as it comes back up says "unexpected shutdown" kind of thing." >> >> In that case, it's not updates, software, or anything else that normally happens. Shutdowns because of normal things would all be logged in the event log. If the system simply reboots and the log shows "unexpected shutdown", then it's almost always hardware or power quality. In rare cases it can be a driver at fault, but outright reboots are almost always hardware. You generally get a stop screen with most software faults rather than just a reboot. >> >> Do you have a UPS on it on the system and has it been tested recently? >> >> I would definitely reseat the memory and run the hardware diagnostics. Since keeping the system active avoids the reboots, then most likely something is getting cold when you don't. You may have a cold solder joint on the mother board or in the power supply. My bet would be on the power supply given that this is pretty loaded (if I remember correctly). >> >> Of course depending on its age, it may be simplest to replace it and I would seriously consider that if it's more than eight years old. Beyond ten would be a definite. Boards eventually do get brittle and then you start having all kinds of problems. >> >> Jim. >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby >> Sent: Sunday, October 15, 2017 11:19 AM >> To: Access Developers discussion and problem solving; Jim Lawrence >> Subject: Re: [AccessD] Can anyone help me with this >> >> The machine just reboots. It does not put anything in any log. The log >> as it comes back up says "unexpected shutdown" kind of thing. So what >> is bizarre is that it will stay running as long as I keep a core running >> something. NEVER reboots as long as it is kept active. Which is my >> "solution" at this point. The reboots are at random times. Sometimes >> once every few days, normally a few times a day, sometimes 10 times in a >> day. But if overheating or other "hardware" issue, why will it NOT >> reboot as long as it is kept active. I run long queries maxing out all >> 16 cores for hours and it works just fine. NEVER reboots if kept >> active. Let it go idle and it starts rebooting. >> >> Puzzling and frustrating. >> >> In the end, keeping a single core busy keeps it alive so it is no longer >> a problem that I feel pressed to deal with, but I'd like to have my core >> back. ;) >> >>> On 10/14/2017 2:20 PM, Jim Lawrence wrote: >>> Hi John: >>> >>> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >>> >>> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >>> Jim >>> >>> ----- Original Message ----- >>> From: "John Colby" >>> To: "Access Developers discussion and problem solving" >>> Sent: Saturday, October 14, 2017 7:45:46 AM >>> Subject: [AccessD] Can anyone help me with this >>> >>> My SQL Server (Windows 2008) reboots periodically. Periodically implies >>> on a schedule so perhaps sporadically is a better description. This has >>> been going on for years. It will do so several times a day. >>> >>> What I have discovered is that if I keep one of the cores busy, and I >>> use a script in SQL Server to do that, then it never reboots. >>> >>> I read that Windows 2008 can be led to believe (accidentally in my case) >>> that it needs to reboot to finish an install or something of that >>> nature, and it will do so when the system is "idle". By keeping a core >>> active, the system never does that reboot thing. I do not know for sure >>> that this is what is going on but it absolutely makes sense. In he >>> meantime I have to do this "keep a core active" thing or my server >>> reboots. If anyone out there understands what is really going on and >>> how to tell Windows to knock it off, please contact me. >>> >>> Thanks, >>> > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jimdettman at verizon.net Wed Oct 18 04:38:43 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 18 Oct 2017 05:38:43 -0400 Subject: [AccessD] Can anyone help me with this In-Reply-To: <19738bdc-3f6d-d1c8-c8d3-34e61f6e9da9@Gmail.com> References: <54694c42-1c64-7b9e-b1cb-b20d8fc4b7e0@Gmail.com> <1640395484.514089193.1508005217320.JavaMail.zimbra@shaw.ca> <00323f10-2d58-5392-1c1e-e0b626c329a2@Gmail.com> <009c01d3473c$41a4b700$c4ee2500$@verizon.net> <19738bdc-3f6d-d1c8-c8d3-34e61f6e9da9@Gmail.com> Message-ID: <027101d347f4$e3c9c580$ab5d5080$@verizon.net> John, To me, it sounds like your keeping something warm by running a core all the time. Not running one allows it to cool down, things contract, and then you can get a reboot. I've seen cracked motherboards exhibit this kind of behavior. Once had a system where one short standoff was used to mount the board, while the rest were long. Board ended up being curved when mounted, and after a few years, formed a hairline crack across the traces associated with the embedded disk controller. The system would randomly generate disk read errors as it heated up/cooled down. So as I said, what comes to mind is a cold solder joint on a board, a hairline crack, a CPU or a DIMM not seated well. Might also be the power supply. In short, a hardware issue. Is it possible that it is software? Sure, but Windows Server 2008 is not that unstable (I am assuming your totally patched up both for the OS and SQL). If it was related to software, something should be showing up in the event log. Might be something your tripping over in the BIOS because of configuration, but I don't think you are dealing with anything at the OS or app level. As a start, I would re-seat everything in the system, run diags and see what that does. I might also look for BIOS updates and see if anything might apply (motherboard, RAID controllers, and video), but I would consider that an outside possibility. Jim. -----Original Message----- From: John Colby [mailto:jwcolby at gmail.com] Sent: Tuesday, October 17, 2017 06:36 PM To: Access Developers discussion and problem solving; Jim Dettman Subject: Re: [AccessD] Can anyone help me with this I would normally agree. But explain how something like this would NEVER occur as long as the processor is kept busy? A hardware problem with manners? I was in hardware for the first 15 years of my career, and software for the rest. I have never seen a polite hardware problem. In fact most of the time they happen MORE OFTEN when the system is stressed in some manner. On 10/17/2017 7:37 AM, Jim Dettman wrote: > John, > > Just to circle back around on this. > > " The log as it comes back up says "unexpected shutdown" kind of thing." > > In that case, it's not updates, software, or anything else that normally happens. Shutdowns because of normal things would all be logged in the event log. If the system simply reboots and the log shows "unexpected shutdown", then it's almost always hardware or power quality. In rare cases it can be a driver at fault, but outright reboots are almost always hardware. You generally get a stop screen with most software faults rather than just a reboot. > > Do you have a UPS on it on the system and has it been tested recently? > > I would definitely reseat the memory and run the hardware diagnostics. Since keeping the system active avoids the reboots, then most likely something is getting cold when you don't. You may have a cold solder joint on the mother board or in the power supply. My bet would be on the power supply given that this is pretty loaded (if I remember correctly). > > Of course depending on its age, it may be simplest to replace it and I would seriously consider that if it's more than eight years old. Beyond ten would be a definite. Boards eventually do get brittle and then you start having all kinds of problems. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby > Sent: Sunday, October 15, 2017 11:19 AM > To: Access Developers discussion and problem solving; Jim Lawrence > Subject: Re: [AccessD] Can anyone help me with this > > The machine just reboots. It does not put anything in any log. The log > as it comes back up says "unexpected shutdown" kind of thing. So what > is bizarre is that it will stay running as long as I keep a core running > something. NEVER reboots as long as it is kept active. Which is my > "solution" at this point. The reboots are at random times. Sometimes > once every few days, normally a few times a day, sometimes 10 times in a > day. But if overheating or other "hardware" issue, why will it NOT > reboot as long as it is kept active. I run long queries maxing out all > 16 cores for hours and it works just fine. NEVER reboots if kept > active. Let it go idle and it starts rebooting. > > Puzzling and frustrating. > > In the end, keeping a single core busy keeps it alive so it is no longer > a problem that I feel pressed to deal with, but I'd like to have my core > back. ;) > > On 10/14/2017 2:20 PM, Jim Lawrence wrote: >> Hi John: >> >> You have probably gone through all these checks but I will post them anyways. Have you checked your logs? Is there an exact time when this reboot occurs? Is the reboot spawned by something like an "exceptions error" or a system process? Considering that all your software is probably up to date could it be a hardware error? A failing piece of equipment or some new hardware that was introduced? >> >> One comment I have seen is that an active SQL server eventually runs out of address space and if possible it is quicker and cleaner to just do an "idle time" reboot than to run the "garbage collection" routine. If that is the case there should be some option setting that would control the activation and timing? >> >> Jim >> >> ----- Original Message ----- >> From: "John Colby" >> To: "Access Developers discussion and problem solving" >> Sent: Saturday, October 14, 2017 7:45:46 AM >> Subject: [AccessD] Can anyone help me with this >> >> My SQL Server (Windows 2008) reboots periodically. Periodically implies >> on a schedule so perhaps sporadically is a better description. This has >> been going on for years. It will do so several times a day. >> >> What I have discovered is that if I keep one of the cores busy, and I >> use a script in SQL Server to do that, then it never reboots. >> >> I read that Windows 2008 can be led to believe (accidentally in my case) >> that it needs to reboot to finish an install or something of that >> nature, and it will do so when the system is "idle". By keeping a core >> active, the system never does that reboot thing. I do not know for sure >> that this is what is going on but it absolutely makes sense. In he >> meantime I have to do this "keep a core active" thing or my server >> reboots. If anyone out there understands what is really going on and >> how to tell Windows to knock it off, please contact me. >> >> Thanks, >> -- John W. Colby From wrwehler at gmail.com Thu Oct 19 13:39:34 2017 From: wrwehler at gmail.com (Ryan W) Date: Thu, 19 Oct 2017 13:39:34 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow Message-ID: Back story: We have an Access FE with a SQL Server back end. We push up a relatively small dataset (6000 rows total) up to our website for some updated 'statistics' on client work. Right now my SQL server is on a shared windows host and pushing those 6000 rows takes anywhere from 1m30s to 2 minutes, usually! I'm also testing a snapshot of our SQL database in Azure (S1 plan) for some devs we have in Denmark to query off, it doesn't have to be updated so it doesn't do any log shipping or anything (not that azure supports it, from what I can tell). Anyway those same tables on my shared Windows hosting plan were created in my azure instance and those very same queries take over 6 minutes! First off, it seems highly suspect that azure would be 3 times slower? Secondly aside from WAN latency and such why would it even be taking 2 minutes to insert 6,000 rows across the WAN? Is there a way I can speed that up in either the shared server or the Azure server? When I check the Azure DB statistics and "DTU usage" it's barely a blip on the radar, so I'm not pegging my DTU allocation by any means. When I query that information back out of Azure I pull down those 6,000 rows in less than one second.. so it doesn't seem like my WAN is necessarily the culprit. From wrwehler at gmail.com Thu Oct 19 13:42:18 2017 From: wrwehler at gmail.com (Ryan W) Date: Thu, 19 Oct 2017 13:42:18 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: I should have mentioned: I'm simply using 2 Azure tables "in place" of my Shared Hosting Plan (for testing purposes). I'm still querying my actual Production DB (local to me) and pushing that data out to azure. Not using my Azure DB snapshot from last week and inserting it into what would be "local" tables into the same Azure DB. Just for clarity sake. On Thu, Oct 19, 2017 at 1:39 PM, Ryan W wrote: > Back story: > > We have an Access FE with a SQL Server back end. We push up a relatively > small dataset (6000 rows total) up to our website for some updated > 'statistics' on client work. > > Right now my SQL server is on a shared windows host and pushing those 6000 > rows takes anywhere from 1m30s to 2 minutes, usually! > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) for > some devs we have in Denmark to query off, it doesn't have to be updated so > it doesn't do any log shipping or anything (not that azure supports it, > from what I can tell). > > > Anyway those same tables on my shared Windows hosting plan were created in > my azure instance and those very same queries take over 6 minutes! > > First off, it seems highly suspect that azure would be 3 times slower? > Secondly aside from WAN latency and such why would it even be taking 2 > minutes to insert 6,000 rows across the WAN? Is there a way I can speed > that up in either the shared server or the Azure server? > > > When I check the Azure DB statistics and "DTU usage" it's barely a blip on > the radar, so I'm not pegging my DTU allocation by any means. > > > When I query that information back out of Azure I pull down those 6,000 > rows in less than one second.. so it doesn't seem like my WAN is > necessarily the culprit. > > > > From gustav at cactus.dk Thu Oct 19 15:34:03 2017 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2017 20:34:03 +0000 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: Hi Ryan We have some small Azure SQL instances running for testing purposes, and they are very slow. Straight reading is relatively fast, but anything else is painfully slow. Except for some simple views, we don't run anything else on the Azure SQL engine. The positive aspect of this is, that it is a very effective method to pinpoint bottlenecks. If you can run a form off the Azure SQL at good speed, it will run blazingly fast off a local SQL Server. And what you think you can away with using a fast local server, will kick you hard when moved to Azure SQL. I guess that using a larger instance would prove much better results, but the costs rise quite quickly. I miss a small, fast, and free instance. /gustav ________________________________________ Fra: AccessD p? vegne af Ryan W Sendt: 19. oktober 2017 20:39:34 Til: Access Developers discussion and problem solving Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow Back story: We have an Access FE with a SQL Server back end. We push up a relatively small dataset (6000 rows total) up to our website for some updated 'statistics' on client work. Right now my SQL server is on a shared windows host and pushing those 6000 rows takes anywhere from 1m30s to 2 minutes, usually! I'm also testing a snapshot of our SQL database in Azure (S1 plan) for some devs we have in Denmark to query off, it doesn't have to be updated so it doesn't do any log shipping or anything (not that azure supports it, from what I can tell). Anyway those same tables on my shared Windows hosting plan were created in my azure instance and those very same queries take over 6 minutes! First off, it seems highly suspect that azure would be 3 times slower? Secondly aside from WAN latency and such why would it even be taking 2 minutes to insert 6,000 rows across the WAN? Is there a way I can speed that up in either the shared server or the Azure server? When I check the Azure DB statistics and "DTU usage" it's barely a blip on the radar, so I'm not pegging my DTU allocation by any means. When I query that information back out of Azure I pull down those 6,000 rows in less than one second.. so it doesn't seem like my WAN is necessarily the culprit. From wrwehler at gmail.com Thu Oct 19 15:38:52 2017 From: wrwehler at gmail.com (Ryan W) Date: Thu, 19 Oct 2017 15:38:52 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: Gustav, The kicker there is my $10/mo "Shared Windows Hosting", with a Shared SQL Server with MANY MANY users on it is faster. I realize Azure is a "shared" nature too.. but with SOME resources that are for your account only (like a mini virtual machine, of sorts)... where on the shared hosting that's not the case.. anyone can cause the server you are on to bottleneck and cause grief. I would have thought that the S0 or S1 Azure plan would exceed the shared windows hosting plan I have over at HostGator... I was only testing to see if my 1-2 minute "insert into" time with HostGator was atypical or not. Turns out I'm not doing as bad as I could be, I suppose. On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock wrote: > Hi Ryan > > We have some small Azure SQL instances running for testing purposes, and > they are very slow. Straight reading is relatively fast, but anything else > is painfully slow. Except for some simple views, we don't run anything else > on the Azure SQL engine. > > The positive aspect of this is, that it is a very effective method to > pinpoint bottlenecks. If you can run a form off the Azure SQL at good > speed, it will run blazingly fast off a local SQL Server. And what you > think you can away with using a fast local server, will kick you hard when > moved to Azure SQL. > > I guess that using a larger instance would prove much better results, but > the costs rise quite quickly. I miss a small, fast, and free instance. > > /gustav > > ________________________________________ > Fra: AccessD p? vegne af Ryan W < > wrwehler at gmail.com> > Sendt: 19. oktober 2017 20:39:34 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > Back story: > > We have an Access FE with a SQL Server back end. We push up a relatively > small dataset (6000 rows total) up to our website for some updated > 'statistics' on client work. > > Right now my SQL server is on a shared windows host and pushing those 6000 > rows takes anywhere from 1m30s to 2 minutes, usually! > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) for some > devs we have in Denmark to query off, it doesn't have to be updated so it > doesn't do any log shipping or anything (not that azure supports it, from > what I can tell). > > > Anyway those same tables on my shared Windows hosting plan were created in > my azure instance and those very same queries take over 6 minutes! > > First off, it seems highly suspect that azure would be 3 times slower? > Secondly aside from WAN latency and such why would it even be taking 2 > minutes to insert 6,000 rows across the WAN? Is there a way I can speed > that up in either the shared server or the Azure server? > > > When I check the Azure DB statistics and "DTU usage" it's barely a blip on > the radar, so I'm not pegging my DTU allocation by any means. > > > When I query that information back out of Azure I pull down those 6,000 > rows in less than one second.. so it doesn't seem like my WAN is > necessarily the culprit. > -- > 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 Oct 19 15:45:56 2017 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 20 Oct 2017 09:45:56 +1300 Subject: [AccessD] Idle Access seems to drop connection Message-ID: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> Hi Team, I have a client that has several users with FE's connected to the same BE. All of them seem to work fine except for 1 user. When this user starts his copy there is a 30 second delay while the programme opens (it gets data to display a report). Then when the orders screen is open via a command button it opens relatively quickly (within a couple of seconds). However, if he leaves the system for 5 minutes or so then the next time he does something that requires getting data (for example closing and opening the orders screen) there is a 30 delay again. After the initial delay the system works fast again. If he immediately closes and opens the orders screen without a delay between tasks then it opens immediately without a delay. I know there is a timeout setting for SQL connections but this is purely an Access BE. The IT company has checked the network (it is a wired network) and all seems to be fine. The user has another similar database (although smaller in data size) and it doesn't have the same problem. Any thoughts on what may be causing the delay? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From John.Clark at niagaracounty.com Thu Oct 19 16:16:26 2017 From: John.Clark at niagaracounty.com (John W. Clark) Date: Thu, 19 Oct 2017 21:16:26 +0000 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> Message-ID: First, if you haven't done so already, I'd try copying a front end from a "working" device. Perhaps "something" got messed up with their FE. Next, speaking as someone who has in-house networking people (and sometimes is one) their always going to say that. Unless something sticks right out it is never the network's fault. Now, having said that, I'm thinking it is more likely PC end...network but PC end maybe. Make sure all updates are done. Start comparing PC settings...it is like a needle in a haystack. It sounds like it is "looking" for something Can you get the system monitor up and watch utilization while running the program? Honestly, we run into stuff like this...not frequent, but not rarely either, and whenever we can we'll recover to an earlier date, or even wipe the machine and start from scratch. It can take time but so can finding that needle. Sent from mobile device ________________________________ From: AccessD on behalf of David Emerson Sent: Thursday, October 19, 2017 4:45:56 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Idle Access seems to drop connection Hi Team, I have a client that has several users with FE's connected to the same BE. All of them seem to work fine except for 1 user. When this user starts his copy there is a 30 second delay while the programme opens (it gets data to display a report). Then when the orders screen is open via a command button it opens relatively quickly (within a couple of seconds). However, if he leaves the system for 5 minutes or so then the next time he does something that requires getting data (for example closing and opening the orders screen) there is a 30 delay again. After the initial delay the system works fast again. If he immediately closes and opens the orders screen without a delay between tasks then it opens immediately without a delay. I know there is a timeout setting for SQL connections but this is purely an Access BE. The IT company has checked the network (it is a wired network) and all seems to be fine. The user has another similar database (although smaller in data size) and it doesn't have the same problem. Any thoughts on what may be causing the delay? 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 Notice: This electronic transmission is intended for the sole use of the individual or entity to which it is addressed and may contain confidential, privileged or otherwise legally protected information. If you are not the intended recipient, or if you believe you are not the intended recipient, you are hereby notified that any use, disclosure, copying, distribution, or the taking of any action in reliance on the contents of this information, is strictly prohibited. Niagara County is not responsible for the content of any external hyperlink referenced in this email or any email. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY EMAIL AND DELETE THE ORIGINAL MESSAGE ALONG WITH ANY PAPER OR ELECTRONIC COPIES. Thank you for your cooperation. From fuller.artful at gmail.com Thu Oct 19 16:23:32 2017 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 19 Oct 2017 17:23:32 -0400 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> Message-ID: There have been threads on this. If you declare a public variable and open a recordset witb it you won't lose your connection. On Oct 19, 2017 4:47 PM, "David Emerson" wrote: Hi Team, I have a client that has several users with FE's connected to the same BE. All of them seem to work fine except for 1 user. When this user starts his copy there is a 30 second delay while the programme opens (it gets data to display a report). Then when the orders screen is open via a command button it opens relatively quickly (within a couple of seconds). However, if he leaves the system for 5 minutes or so then the next time he does something that requires getting data (for example closing and opening the orders screen) there is a 30 delay again. After the initial delay the system works fast again. If he immediately closes and opens the orders screen without a delay between tasks then it opens immediately without a delay. I know there is a timeout setting for SQL connections but this is purely an Access BE. The IT company has checked the network (it is a wired network) and all seems to be fine. The user has another similar database (although smaller in data size) and it doesn't have the same problem. Any thoughts on what may be causing the delay? 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 jamesbutton at blueyonder.co.uk Thu Oct 19 16:38:16 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Thu, 19 Oct 2017 22:38:16 +0100 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> Message-ID: To actually try identifying the cause I'd start by running resource monitor and checking if there is actual activity happening during those 30 seconds If little activity - the it may well be that the comms link is being baulky - or maybe even trying to go wireless?? Then again - you may see massive paging or downloads or Just note the drive light going with no activity being reported by task manager - that could point to pagefile expansion Then again just not getting the problem may be an acceptable result! JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, October 19, 2017 10:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection There have been threads on this. If you declare a public variable and open a recordset witb it you won't lose your connection. On Oct 19, 2017 4:47 PM, "David Emerson" wrote: Hi Team, I have a client that has several users with FE's connected to the same BE. All of them seem to work fine except for 1 user. When this user starts his copy there is a 30 second delay while the programme opens (it gets data to display a report). Then when the orders screen is open via a command button it opens relatively quickly (within a couple of seconds). However, if he leaves the system for 5 minutes or so then the next time he does something that requires getting data (for example closing and opening the orders screen) there is a 30 delay again. After the initial delay the system works fast again. If he immediately closes and opens the orders screen without a delay between tasks then it opens immediately without a delay. I know there is a timeout setting for SQL connections but this is purely an Access BE. The IT company has checked the network (it is a wired network) and all seems to be fine. The user has another similar database (although smaller in data size) and it doesn't have the same problem. Any thoughts on what may be causing the delay? 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 newsgrps at dalyn.co.nz Thu Oct 19 16:56:59 2017 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 20 Oct 2017 10:56:59 +1300 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> Message-ID: <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> Hi Arthur, The user can have the orders screen open and just not doing anything with it for 5 minutes. When he then tries to run a report from that screen, or close the screen and reopen it (i.e. query the database again) there is the delay. In this case isn't the orders screen effectively doing what you suggest? Regards David -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, 20 October 2017 10:24 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection There have been threads on this. If you declare a public variable and open a recordset witb it you won't lose your connection. On Oct 19, 2017 4:47 PM, "David Emerson" wrote: Hi Team, I have a client that has several users with FE's connected to the same BE. All of them seem to work fine except for 1 user. When this user starts his copy there is a 30 second delay while the programme opens (it gets data to display a report). Then when the orders screen is open via a command button it opens relatively quickly (within a couple of seconds). However, if he leaves the system for 5 minutes or so then the next time he does something that requires getting data (for example closing and opening the orders screen) there is a 30 delay again. After the initial delay the system works fast again. If he immediately closes and opens the orders screen without a delay between tasks then it opens immediately without a delay. I know there is a timeout setting for SQL connections but this is purely an Access BE. The IT company has checked the network (it is a wired network) and all seems to be fine. The user has another similar database (although smaller in data size) and it doesn't have the same problem. Any thoughts on what may be causing the delay? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From jimdettman at verizon.net Thu Oct 19 17:08:55 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 19 Oct 2017 18:08:55 -0400 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> Message-ID: <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> Windows drops inactive mapped network drives....default is 10 minutes. You can disable that with a GPO or by modifying the registry. Other potential item; do you keep a connection open to the backend for The life of the app? Could be the connection to the backend database is closing and when logging back in again there?s quite a bit of overhead. 30 seconds is excessive though. More than likely it?s a map drive disconnecting Jim Sent from my iPhone > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > Hi Arthur, > The user can have the orders screen open and just not doing anything with it > for 5 minutes. When he then tries to run a report from that screen, or > close the screen and reopen it (i.e. query the database again) there is the > delay. In this case isn't the orders screen effectively doing what you > suggest? > Regards > David > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: Friday, 20 October 2017 10:24 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Idle Access seems to drop connection > > There have been threads on this. If you declare a public variable and open a > recordset witb it you won't lose your connection. > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > Hi Team, > I have a client that has several users with FE's connected to the same BE. > All of them seem to work fine except for 1 user. > When this user starts his copy there is a 30 second delay while the > programme opens (it gets data to display a report). Then when the orders > screen is open via a command button it opens relatively quickly (within a > couple of seconds). > However, if he leaves the system for 5 minutes or so then the next time he > does something that requires getting data (for example closing and opening > the orders screen) there is a 30 delay again. After the initial delay the > system works fast again. If he immediately closes and opens the orders > screen without a delay between tasks then it opens immediately without a > delay. > I know there is a timeout setting for SQL connections but this is purely an > Access BE. > The IT company has checked the network (it is a wired network) and all seems > to be fine. The user has another similar database (although smaller in data > size) and it doesn't have the same problem. > Any thoughts on what may be causing the delay? > 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 Oct 19 18:39:17 2017 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 20 Oct 2017 12:39:17 +1300 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> Message-ID: <004a01d34933$7aa96d40$6ffc47c0$@dalyn.co.nz> If that was the case, wouldn't we see the same behaviour in the other database that doesn't have the problem? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, 20 October 2017 11:09 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection Windows drops inactive mapped network drives....default is 10 minutes. You can disable that with a GPO or by modifying the registry. Other potential item; do you keep a connection open to the backend for The life of the app? Could be the connection to the backend database is closing and when logging back in again there s quite a bit of overhead. 30 seconds is excessive though. More than likely it s a map drive disconnecting Jim Sent from my iPhone > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > Hi Arthur, > The user can have the orders screen open and just not doing anything > with it for 5 minutes. When he then tries to run a report from that > screen, or close the screen and reopen it (i.e. query the database > again) there is the delay. In this case isn't the orders screen > effectively doing what you suggest? > Regards > David > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller > Sent: Friday, 20 October 2017 10:24 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Idle Access seems to drop connection > > There have been threads on this. If you declare a public variable and > open a recordset witb it you won't lose your connection. > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > Hi Team, > I have a client that has several users with FE's connected to the same BE. > All of them seem to work fine except for 1 user. > When this user starts his copy there is a 30 second delay while the > programme opens (it gets data to display a report). Then when the > orders screen is open via a command button it opens relatively quickly > (within a couple of seconds). > However, if he leaves the system for 5 minutes or so then the next > time he does something that requires getting data (for example closing > and opening the orders screen) there is a 30 delay again. After the > initial delay the system works fast again. If he immediately closes > and opens the orders screen without a delay between tasks then it > opens immediately without a delay. > I know there is a timeout setting for SQL connections but this is > purely an Access BE. > The IT company has checked the network (it is a wired network) and all > seems to be fine. The user has another similar database (although > smaller in data > size) and it doesn't have the same problem. > Any thoughts on what may be causing the delay? > 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 thesmileycoder at gmail.com Fri Oct 20 00:58:47 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Fri, 20 Oct 2017 07:58:47 +0200 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> Message-ID: There are a few steps to try to resolve this: 1) Simplest step to implement is to ensure the app has a persistent connection. It might have not be required for other users, but is for him, due to how the AD groups might be setup. Simple to implement, just open a hidden form on startup that connects to a table on the backend, and leave that form open (and hidden) Other then that, we can try to physically rule out a few things: A) Fresh frontend for the user. This eliminates suspicion on the specific file. If distributing accdb, the chance of files going odd is quite a bit higher. B) Physically move the user to another network cable, of a user that you know to be working. This rules out the network. C) If possible, have the user use another PC. This rules out the users PC/network card from the list of suspects. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Fri, Oct 20, 2017 at 12:08 AM, Jim Dettman wrote: > Windows drops inactive mapped network drives....default is 10 minutes. > > You can disable that with a GPO or by modifying the registry. > > Other potential item; do you keep a connection open to the backend for The > life of the app? Could be the connection to the backend database is closing > and when logging back in again there?s quite a bit of overhead. 30 seconds > is excessive though. > > More than likely it?s a map drive disconnecting > > Jim > > Sent from my iPhone > > > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > > > Hi Arthur, > > The user can have the orders screen open and just not doing anything > with it > > for 5 minutes. When he then tries to run a report from that screen, or > > close the screen and reopen it (i.e. query the database again) there is > the > > delay. In this case isn't the orders screen effectively doing what you > > suggest? > > Regards > > David > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Arthur Fuller > > Sent: Friday, 20 October 2017 10:24 a.m. > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Idle Access seems to drop connection > > > > There have been threads on this. If you declare a public variable and > open a > > recordset witb it you won't lose your connection. > > > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > > > Hi Team, > > I have a client that has several users with FE's connected to the same > BE. > > All of them seem to work fine except for 1 user. > > When this user starts his copy there is a 30 second delay while the > > programme opens (it gets data to display a report). Then when the orders > > screen is open via a command button it opens relatively quickly (within a > > couple of seconds). > > However, if he leaves the system for 5 minutes or so then the next time > he > > does something that requires getting data (for example closing and > opening > > the orders screen) there is a 30 delay again. After the initial delay > the > > system works fast again. If he immediately closes and opens the orders > > screen without a delay between tasks then it opens immediately without a > > delay. > > I know there is a timeout setting for SQL connections but this is purely > an > > Access BE. > > The IT company has checked the network (it is a wired network) and all > seems > > to be fine. The user has another similar database (although smaller in > data > > size) and it doesn't have the same problem. > > Any thoughts on what may be causing the delay? > > 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 newsgrps at dalyn.co.nz Fri Oct 20 01:58:06 2017 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 20 Oct 2017 19:58:06 +1300 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> Message-ID: <000f01d34970$c8172080$58456180$@dalyn.co.nz> Thanks everyone for your suggestions - I will work through them next week with the client. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of The Smiley Coder Sent: Friday, 20 October 2017 6:59 p.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection There are a few steps to try to resolve this: 1) Simplest step to implement is to ensure the app has a persistent connection. It might have not be required for other users, but is for him, due to how the AD groups might be setup. Simple to implement, just open a hidden form on startup that connects to a table on the backend, and leave that form open (and hidden) Other then that, we can try to physically rule out a few things: A) Fresh frontend for the user. This eliminates suspicion on the specific file. If distributing accdb, the chance of files going odd is quite a bit higher. B) Physically move the user to another network cable, of a user that you know to be working. This rules out the network. C) If possible, have the user use another PC. This rules out the users PC/network card from the list of suspects. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Fri, Oct 20, 2017 at 12:08 AM, Jim Dettman wrote: > Windows drops inactive mapped network drives....default is 10 minutes. > > You can disable that with a GPO or by modifying the registry. > > Other potential item; do you keep a connection open to the backend for > The life of the app? Could be the connection to the backend database > is closing and when logging back in again there s quite a bit of > overhead. 30 seconds is excessive though. > > More than likely it s a map drive disconnecting > > Jim > > Sent from my iPhone > > > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > > > Hi Arthur, > > The user can have the orders screen open and just not doing anything > with it > > for 5 minutes. When he then tries to run a report from that screen, > > or close the screen and reopen it (i.e. query the database again) > > there is > the > > delay. In this case isn't the orders screen effectively doing what > > you suggest? > > Regards > > David > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Arthur Fuller > > Sent: Friday, 20 October 2017 10:24 a.m. > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Idle Access seems to drop connection > > > > There have been threads on this. If you declare a public variable > > and > open a > > recordset witb it you won't lose your connection. > > > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > > > Hi Team, > > I have a client that has several users with FE's connected to the > > same > BE. > > All of them seem to work fine except for 1 user. > > When this user starts his copy there is a 30 second delay while the > > programme opens (it gets data to display a report). Then when the > > orders screen is open via a command button it opens relatively > > quickly (within a couple of seconds). > > However, if he leaves the system for 5 minutes or so then the next > > time > he > > does something that requires getting data (for example closing and > opening > > the orders screen) there is a 30 delay again. After the initial > > delay > the > > system works fast again. If he immediately closes and opens the > > orders screen without a delay between tasks then it opens > > immediately without a delay. > > I know there is a timeout setting for SQL connections but this is > > purely > an > > Access BE. > > The IT company has checked the network (it is a wired network) and > > all > seems > > to be fine. The user has another similar database (although smaller > > in > data > > size) and it doesn't have the same problem. > > Any thoughts on what may be causing the delay? > > Regards > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Oct 20 06:15:39 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 20 Oct 2017 07:15:39 -0400 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <004a01d34933$7aa96d40$6ffc47c0$@dalyn.co.nz> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> <004a01d34933$7aa96d40$6ffc47c0$@dalyn.co.nz> Message-ID: <07c401d34994$c31e32c0$495a9840$@verizon.net> David, It would depend on the setup. Other databases may be using other mapped drives, staying active, etc. Here's what you need to do to see if it is a mapped drive disconnect: 1. Ensure that all users are out of the DB 2. Verify that by checking the BE directory for an .LDB file. There should be none. 3. Open the app on the station and make sure you leave a form open. As long as a form is open, then you will have a login on the BE database and a LDB file. 4. Leave it sit ten minutes. 5. On the PC, open windows explorer and see if the mapped drive shows a red X. Do not click on the drive. 6. Do something with the form and see if you get the delay (you should). 7. Now look at explorer...the red X should be gone. 8. Go back to the form...you now should see no delay. There is one other issue that can be at play here as well. That is OPLOCKS, or opportunistic locking (aka client side caching). This is built into windows and can lead to delays of up to 30 seconds. Leaving a connection open for the life of the app will avoid this for the most part. What happens is when a single user is in a file, Windows places an OPLOCK that says the user has exclusive use of the file and can cache changes on the windows client. When another user comes along and wants to use the file, the server must break the OPLOCK. That process can take up to 30 seconds. If your app is constantly closing/opening the BE, then you can encounter this a lot. But if this is the only user seeing the delay, then it is most likely something else. Still though a possibility depending on the pattern of usage from the users. Doesn't hurt though by any means to keep a constant connection open in the app and in fact this is something every app should do. Closing/opening a BE constantly carries a lot of overhead. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, October 19, 2017 07:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Idle Access seems to drop connection If that was the case, wouldn't we see the same behaviour in the other database that doesn't have the problem? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, 20 October 2017 11:09 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection Windows drops inactive mapped network drives....default is 10 minutes. You can disable that with a GPO or by modifying the registry. Other potential item; do you keep a connection open to the backend for The life of the app? Could be the connection to the backend database is closing and when logging back in again there s quite a bit of overhead. 30 seconds is excessive though. More than likely it s a map drive disconnecting Jim Sent from my iPhone > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > Hi Arthur, > The user can have the orders screen open and just not doing anything > with it for 5 minutes. When he then tries to run a report from that > screen, or close the screen and reopen it (i.e. query the database > again) there is the delay. In this case isn't the orders screen > effectively doing what you suggest? > Regards > David > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller > Sent: Friday, 20 October 2017 10:24 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Idle Access seems to drop connection > > There have been threads on this. If you declare a public variable and > open a recordset witb it you won't lose your connection. > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > Hi Team, > I have a client that has several users with FE's connected to the same BE. > All of them seem to work fine except for 1 user. > When this user starts his copy there is a 30 second delay while the > programme opens (it gets data to display a report). Then when the > orders screen is open via a command button it opens relatively quickly > (within a couple of seconds). > However, if he leaves the system for 5 minutes or so then the next > time he does something that requires getting data (for example closing > and opening the orders screen) there is a 30 delay again. After the > initial delay the system works fast again. If he immediately closes > and opens the orders screen without a delay between tasks then it > opens immediately without a delay. > I know there is a timeout setting for SQL connections but this is > purely an Access BE. > The IT company has checked the network (it is a wired network) and all > seems to be fine. The user has another similar database (although > smaller in data > size) and it doesn't have the same problem. > Any thoughts on what may be causing the delay? > 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 df.waters at outlook.com Fri Oct 20 12:21:24 2017 From: df.waters at outlook.com (Dan Waters) Date: Fri, 20 Oct 2017 17:21:24 +0000 Subject: [AccessD] Idle Access seems to drop connection In-Reply-To: <07c401d34994$c31e32c0$495a9840$@verizon.net> References: <003601d3491b$436c44f0$ca44ced0$@dalyn.co.nz> <004101d34925$30a1bd00$91e53700$@dalyn.co.nz> <59BCB266-D094-4E89-8546-4C96BE40AFF8@verizon.net> <004a01d34933$7aa96d40$6ffc47c0$@dalyn.co.nz> <07c401d34994$c31e32c0$495a9840$@verizon.net> Message-ID: Hi David, This is what I (and a number of others on this list) do to avoid the table connection timeout issue. Below is code that should run first (or almost first) in the application: '-- Using a Static database variable is the key to this working Static dbsBE As DAO.Database Dim stgBEFullPath As String '-- BEFullPath is a function which returns the full path to the separate access file which contains all the tables. stgBEFullPath = BEFullPath '-- If you do not have separate application and data files, then stgBEFullPath = CurrentProject.Path Set dbsBE = DBEngine(0).OpenDatabase(stgBEFullPath) Once this is run the table connection will be maintained until the application file is closed. My experience was that the user's experience was that the application was faster and stayed that way. Good Luck! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: October 20, 2017 06:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Idle Access seems to drop connection David, It would depend on the setup. Other databases may be using other mapped drives, staying active, etc. Here's what you need to do to see if it is a mapped drive disconnect: 1. Ensure that all users are out of the DB 2. Verify that by checking the BE directory for an .LDB file. There should be none. 3. Open the app on the station and make sure you leave a form open. As long as a form is open, then you will have a login on the BE database and a LDB file. 4. Leave it sit ten minutes. 5. On the PC, open windows explorer and see if the mapped drive shows a red X. Do not click on the drive. 6. Do something with the form and see if you get the delay (you should). 7. Now look at explorer...the red X should be gone. 8. Go back to the form...you now should see no delay. There is one other issue that can be at play here as well. That is OPLOCKS, or opportunistic locking (aka client side caching). This is built into windows and can lead to delays of up to 30 seconds. Leaving a connection open for the life of the app will avoid this for the most part. What happens is when a single user is in a file, Windows places an OPLOCK that says the user has exclusive use of the file and can cache changes on the windows client. When another user comes along and wants to use the file, the server must break the OPLOCK. That process can take up to 30 seconds. If your app is constantly closing/opening the BE, then you can encounter this a lot. But if this is the only user seeing the delay, then it is most likely something else. Still though a possibility depending on the pattern of usage from the users. Doesn't hurt though by any means to keep a constant connection open in the app and in fact this is something every app should do. Closing/opening a BE constantly carries a lot of overhead. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Thursday, October 19, 2017 07:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Idle Access seems to drop connection If that was the case, wouldn't we see the same behaviour in the other database that doesn't have the problem? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, 20 October 2017 11:09 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Idle Access seems to drop connection Windows drops inactive mapped network drives....default is 10 minutes. You can disable that with a GPO or by modifying the registry. Other potential item; do you keep a connection open to the backend for The life of the app? Could be the connection to the backend database is closing and when logging back in again there s quite a bit of overhead. 30 seconds is excessive though. More than likely it s a map drive disconnecting Jim Sent from my iPhone > On Oct 19, 2017, at 5:56 PM, David Emerson wrote: > > Hi Arthur, > The user can have the orders screen open and just not doing anything > with it for 5 minutes. When he then tries to run a report from that > screen, or close the screen and reopen it (i.e. query the database > again) there is the delay. In this case isn't the orders screen > effectively doing what you suggest? > Regards > David > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller > Sent: Friday, 20 October 2017 10:24 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Idle Access seems to drop connection > > There have been threads on this. If you declare a public variable and > open a recordset witb it you won't lose your connection. > > On Oct 19, 2017 4:47 PM, "David Emerson" wrote: > > Hi Team, > I have a client that has several users with FE's connected to the same BE. > All of them seem to work fine except for 1 user. > When this user starts his copy there is a 30 second delay while the > programme opens (it gets data to display a report). Then when the > orders screen is open via a command button it opens relatively quickly > (within a couple of seconds). > However, if he leaves the system for 5 minutes or so then the next > time he does something that requires getting data (for example closing > and opening the orders screen) there is a 30 delay again. After the > initial delay the system works fast again. If he immediately closes > and opens the orders screen without a delay between tasks then it > opens immediately without a delay. > I know there is a timeout setting for SQL connections but this is > purely an Access BE. > The IT company has checked the network (it is a wired network) and all > seems to be fine. The user has another similar database (although > smaller in data > size) and it doesn't have the same problem. > Any thoughts on what may be causing the delay? > Regards > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Oct 20 21:46:14 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 20 Oct 2017 19:46:14 -0700 Subject: [AccessD] FW: the judge who can code, deciding big court cases In-Reply-To: References: Message-ID: <05da01d34a16$c2fcf510$48f6df30$@bchacc.com> From: Marsha Sutton [mailto:suttonmarsha at gmail.com] Sent: Friday, October 20, 2017 4:36 PM To: Daniel Osher; Noah Sutton-Smolin; Rocky Smolin Subject: the judge who can code, deciding big court cases https://www.theverge.com/2017/10/19/16503076/oracle-vs-google-judge-william-alsup-interview-waymo-uber?goal=0_c2357fd0a3-c981d54dd3-81867193 -- Marsha Sutton Sutton Communications E: suttonmarsha at gmail.com H: 760-448-5830 C: 858-342-1750 From jackandpat.d at gmail.com Sat Oct 21 07:09:57 2017 From: jackandpat.d at gmail.com (jack drawbridge) Date: Sat, 21 Oct 2017 08:09:57 -0400 Subject: [AccessD] FW: the judge who can code, deciding big court cases In-Reply-To: <05da01d34a16$c2fcf510$48f6df30$@bchacc.com> References: <05da01d34a16$c2fcf510$48f6df30$@bchacc.com> Message-ID: Excellent article Rocky. On Fri, Oct 20, 2017 at 10:46 PM, Rocky Smolin wrote: > > > > > From: Marsha Sutton [mailto:suttonmarsha at gmail.com] > Sent: Friday, October 20, 2017 4:36 PM > To: Daniel Osher; Noah Sutton-Smolin; Rocky Smolin > Subject: the judge who can code, deciding big court cases > > > > > https://www.theverge.com/2017/10/19/16503076/oracle-vs- > google-judge-william-alsup-interview-waymo-uber?goal=0_ > c2357fd0a3-c981d54dd3-81867193 > > -- > > Marsha Sutton > > Sutton Communications > > E: suttonmarsha at gmail.com > > H: 760-448-5830 > > C: 858-342-1750 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Sat Oct 21 22:13:23 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Oct 2017 20:13:23 -0700 Subject: [AccessD] Big Screens Message-ID: <064401d34ae3$b860ce60$29226b20$@bchacc.com> Dear List(s): The fellow who acquired my MRP product has a couple of clients who are running the product on big screens - 3440 X 1440 and 2560 x 1080 (3D). It's 32-bit Access using the ADH screen resizing code which has been working pretty well on all monitors of lower resolution. ON these, however, the resizing is hosed. Does anyone know of any problems running Access on these big monitors? Any workarounds? Any opinions on Peter's Shrinker/Stretcher or the FMS screen resizing product? MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From gustav at cactus.dk Sun Oct 22 04:34:24 2017 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Oct 2017 09:34:24 +0000 Subject: [AccessD] [dba-Tech] Big Screens In-Reply-To: <064401d34ae3$b860ce60$29226b20$@bchacc.com> References: <064401d34ae3$b860ce60$29226b20$@bchacc.com> Message-ID: Hi Rocky I use a 2560 x 1440 screen with zero issues, but I don't use any resizer tool. In Windows 10, the user can easily scale fonts and apps including Office to, say, 150%. I use that on a Lenovo tablet having a small screen with extreme resolution. So, I guess, check for the OS version and, if 10, simply disable the resizing. /gustav ________________________________________ Fra: dba-Tech p? vegne af Rocky Smolin Sendt: 22. oktober 2017 05:13:23 Til: List; 'Access Developers discussion and problem solving'; 'Off Topic' Emne: [dba-Tech] Big Screens Dear List(s): The fellow who acquired my MRP product has a couple of clients who are running the product on big screens - 3440 X 1440 and 2560 x 1080 (3D). It's 32-bit Access using the ADH screen resizing code which has been working pretty well on all monitors of lower resolution. ON these, however, the resizing is hosed. Does anyone know of any problems running Access on these big monitors? Any workarounds? Any opinions on Peter's Shrinker/Stretcher or the FMS screen resizing product? MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com From jwcolby at gmail.com Mon Oct 23 19:20:32 2017 From: jwcolby at gmail.com (John Colby) Date: Mon, 23 Oct 2017 20:20:32 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars Message-ID: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> So guys, I am trying to bring my web site back.? I decided to use Word Press.? Too late to argue, it's paid for.? Now I need help of course. I got it installed, and I am writing two blogs (more in the future).? When I say "two blogs", I mean blogs on two different subjects, one is moving my blog from BlogSpot for Access classes. The other is moving the tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought my boat. I am able to write blog entries however they just appear as a long list of blog titles, which can be clicked on to read the specific blog entry or? article.? What I want is a tree structure which allows me to have a sidebar (or something) which holds a tree kinda thing and the branches are hot links to the individual pages.? Seems like something every blogger would wish for. Well maybe but I am not discovering how to just do it in WP.? So if there are any WP gurus (NOT Word Perfect!;) that would like to hold my hand through getting this set up, please contact me off line. Thanks, -- John W. Colby From jwcolby at gmail.com Mon Oct 23 19:24:23 2017 From: jwcolby at gmail.com (John Colby) Date: Mon, 23 Oct 2017 20:24:23 -0400 Subject: [AccessD] WP blogging Message-ID: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> To see what I have done so far go to ColbyConsulting.com and click the blog menu item.? Looks pretty bad.? Now go to https://jwcolby.blogspot.com/2013/02/microsoft-access-little-secret-classes.html?view=sidebar Looks like what I want, kinda.? Except the main blog page should have the sidebar and each blog thread should have it's own page with a sidebar like that.? Or something. -- John W. Colby From stuart at lexacorp.com.pg Mon Oct 23 23:55:59 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 24 Oct 2017 14:55:59 +1000 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> Message-ID: <59EEC7DF.32625.33FDED2C@stuart.lexacorp.com.pg> What do you mean "paid for". Wordpress shouldn't cost you anything, it's free, open source PHP/MySQL code. On 23 Oct 2017 at 20:20, John Colby wrote: > So guys, I am trying to bring my web site back.? I decided to use > Word Press.? Too late to argue, it's paid for.? Now I need help of > course. > From jimdettman at verizon.net Tue Oct 24 08:36:56 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 24 Oct 2017 09:36:56 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <59EEC7DF.32625.33FDED2C@stuart.lexacorp.com.pg> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <59EEC7DF.32625.33FDED2C@stuart.lexacorp.com.pg> Message-ID: <04b901d34ccd$2974bf40$7c5e3dc0$@verizon.net> I wish Database Advisers would make the decision to dump all the different lists and just have a single one so the comment of "does this really belong here?" doesn't have to get made. It was a while back because so many of us have some many different interests. I'm bringing it up again in the hopes that it will finally happen. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, October 24, 2017 12:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wordpress, Blogs and sidebars What do you mean "paid for". Wordpress shouldn't cost you anything, it's free, open source PHP/MySQL code. On 23 Oct 2017 at 20:20, John Colby wrote: > So guys, I am trying to bring my web site back.? I decided to use > Word Press.? Too late to argue, it's paid for.? Now I need help of > course. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Tue Oct 24 08:50:32 2017 From: jwcolby at gmail.com (John Colby) Date: Tue, 24 Oct 2017 09:50:32 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <04b901d34ccd$2974bf40$7c5e3dc0$@verizon.net> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <59EEC7DF.32625.33FDED2C@stuart.lexacorp.com.pg> <04b901d34ccd$2974bf40$7c5e3dc0$@verizon.net> Message-ID: <4017a6e5-0542-6a2c-7306-aacfcad522ee@gmail.com> Of course it doesn't belong here. I made a request for offline replies to this list because there is such talent and diversity here. On 10/24/2017 9:36 AM, Jim Dettman wrote: > I wish Database Advisers would make the decision to dump all the different > lists and just have a single one so the comment of "does this really belong > here?" doesn't have to get made. > > It was a while back because so many of us have some many different > interests. I'm bringing it up again in the hopes that it will finally > happen. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: Tuesday, October 24, 2017 12:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Wordpress, Blogs and sidebars > > What do you mean "paid for". Wordpress shouldn't cost you anything, it's > free, open source > PHP/MySQL code. > > On 23 Oct 2017 at 20:20, John Colby wrote: > >> So guys, I am trying to bring my web site back. I decided to use >> Word Press. Too late to argue, it's paid for. Now I need help of >> course. >> > -- John W. Colby From gustav at cactus.dk Tue Oct 24 08:52:36 2017 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Oct 2017 13:52:36 +0000 Subject: [AccessD] Wordpress, Blogs and sidebars Message-ID: Hi Jim Good idea, given the modest traffic and the often broad subjects - perhaps excluding the OT list which, I understand, really is OT. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Jim Dettman Sendt: 24. oktober 2017 15:37 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Wordpress, Blogs and sidebars I wish Database Advisers would make the decision to dump all the different lists and just have a single one so the comment of "does this really belong here?" doesn't have to get made. It was a while back because so many of us have some many different interests. I'm bringing it up again in the hopes that it will finally happen. Jim. From rockysmolin at bchacc.com Tue Oct 24 09:08:18 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 24 Oct 2017 07:08:18 -0700 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: References: Message-ID: <00ce01d34cd1$8acef090$a06cd1b0$@bchacc.com> I'll second (or third) that. Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2017 6:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wordpress, Blogs and sidebars Hi Jim Good idea, given the modest traffic and the often broad subjects - perhaps excluding the OT list which, I understand, really is OT. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Jim Dettman Sendt: 24. oktober 2017 15:37 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Wordpress, Blogs and sidebars I wish Database Advisers would make the decision to dump all the different lists and just have a single one so the comment of "does this really belong here?" doesn't have to get made. It was a while back because so many of us have some many different interests. I'm bringing it up again in the hopes that it will finally happen. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Thu Oct 26 12:56:14 2017 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2017 20:56:14 +0300 Subject: [AccessD] Imaging MS Access Message-ID: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas From gustav at cactus.dk Thu Oct 26 13:59:46 2017 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Oct 2017 18:59:46 +0000 Subject: [AccessD] Imaging MS Access In-Reply-To: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show-pictures-directly-from-URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Oct 26 14:57:30 2017 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 26 Oct 2017 15:57:30 -0400 Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: I think that the bloat would kill you. I suggest that instead you store all the pics in a folder and add links to the pics as attachments. A. On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show- pictures-directly-from-URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /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 jamesbutton at blueyonder.co.uk Thu Oct 26 15:35:12 2017 From: jamesbutton at blueyonder.co.uk (James Button) Date: Thu, 26 Oct 2017 21:35:12 +0100 Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: As indicated - bloat would be a real consideration, especially with ever increasing image sizes and excel database file limitations as well as problems with large container files being held on the cloud, or accessed via web links Getting 1MB images from a 20GB container over an extended period would use up a lot of download allowance in a phone package. After that I'd consider a primary concern would be the maintenance of the image library Grouping - what on which form/page/window and which container held the overflow - and then what when some entries were deleted from the first presentation container Editing - save as - versioning new name new location -- and what when you get to the 99th modified version - as in GIF's with animation Finding the actual image - or image set within the organisational structure so that you can extract it for email or other processing. There are facilities that use thumbnails maybe look at the Irfanview facility's extra - and even File-Explorer with it?s many extra columns of meta?data And it has an option to show individual images of an animated gif. Then there are slideshows - maybe with a set of links to the specific image in the set You may also find that saveas having opened the file from within an app using links will leave the app indicating the original file is linked, but actually pointing to the saveas's version. I used to use a table within word to hold links to documents for a project Show a link to the inserted file object - or another word file that may have a page of links to word docs or actual images (well excel , pdf, lotusnotes etc - whatever could be set with a file association and pointed to with a link) JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, October 26, 2017 8:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Imaging MS Access I think that the bloat would kill you. I suggest that instead you store all the pics in a folder and add links to the pics as attachments. A. On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show- pictures-directly-from-URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas From jimdettman at verizon.net Thu Oct 26 15:42:01 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 26 Oct 2017 16:42:01 -0400 Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: <00c101d34e9a$e04c4020$a0e4c060$@verizon.net> That's the best way, but storing photo's in a DB is not as bad as it once was. You can now store them without the OLE wrapper, and they are compressed to boot. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, October 26, 2017 03:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Imaging MS Access I think that the bloat would kill you. I suggest that instead you store all the pics in a folder and add links to the pics as attachments. A. On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show- pictures-directly-from-URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Fri Oct 27 02:34:14 2017 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Fri, 27 Oct 2017 10:34:14 +0300 Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: <002201d34ef5$fe78f3d0$fb6adb70$@otenet.gr> Hey Gustav, Thank's a lot for this excellent link... The last 35 years I have made a big research on all the History of the long and short Greek Films (more than 9400 movies) and actually what I need is to display with one sight for more than 15 pictures (the most in high resolution) for each of them. So as you understand the number is extremely big (2.5Tb pictures) and what I am afraid is that MS Access will not be able to manage it properly... That's the reason I am looking for something like DBPix (http://www.ammara.com/) but it's very expensive special if somebody needs to get it to work on several PC's on a network. I attach the amara's answer to my email > So, could you please confirm that DBPix 3 works on one-to-many? That's really an Access capability, so yes - you can store multiple images per record. This is typically achieved by creating a one-to-many table relationship and using a subform to view, add and edit the (multiple) images. > And also if I need to use it into 4-5 different PC?s in private network how many licenses must I purchase for? Our multi-user license supports one development system and unlimited runtime users. Make sure you obtain and enter a multi-user license key on your development system before you start adding any dbPix 3.0 controls to your production application. You can, of course, evaluate dbPix without a key, but note that if you start work on your production application before installing your license key you will need to delete any dbPix controls from that application and insert new ones after entering your license keycode. Thank you and all the people answered to my question /kostas -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 26, 2017 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Imaging MS Access Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show-pictures-directly-from- URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /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 gustav at cactus.dk Fri Oct 27 03:08:40 2017 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 27 Oct 2017 08:08:40 +0000 Subject: [AccessD] Imaging MS Access Message-ID: Hi Kostas With that volume of pictures, there's no way to store them in an Access file, limited to 2 GB as it is. And as you already have the pictures - I guess - in appropriate size and format - I see no use for a third-party control; the native picture control will display the linked file right away - as you could see in the demo application. Your task is to create a table that will provide a link between an ID and the physical path/filename of each picture. I would store the ID, the path, and the clean filename. That would allow you to move the picture base(s) and then perform a simple update of the Path field. If you store the pictures on a Windows Server 2012+, you could perhaps take advantage of the ReFS file system: https://www.petri.com/4-reasons-refs-is-better-than-ntfs /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Kostas Konstantinidis Sendt: 27. oktober 2017 09:34 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Imaging MS Access Hey Gustav, Thank's a lot for this excellent link... The last 35 years I have made a big research on all the History of the long and short Greek Films (more than 9400 movies) and actually what I need is to display with one sight for more than 15 pictures (the most in high resolution) for each of them. So as you understand the number is extremely big (2.5Tb pictures) and what I am afraid is that MS Access will not be able to manage it properly... That's the reason I am looking for something like DBPix (http://www.ammara.com/) but it's very expensive special if somebody needs to get it to work on several PC's on a network. I attach the amara's answer to my email > So, could you please confirm that DBPix 3 works on one-to-many? That's really an Access capability, so yes - you can store multiple images per record. This is typically achieved by creating a one-to-many table relationship and using a subform to view, add and edit the (multiple) images. > And also if I need to use it into 4-5 different PC?s in private > network how many licenses must I purchase for? Our multi-user license supports one development system and unlimited runtime users. Make sure you obtain and enter a multi-user license key on your development system before you start adding any dbPix 3.0 controls to your production application. You can, of course, evaluate dbPix without a key, but note that if you start work on your production application before installing your license key you will need to delete any dbPix controls from that application and insert new ones after entering your license keycode. Thank you and all the people answered to my question /kostas -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 26, 2017 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Imaging MS Access Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show-pictures-directly-from- URLs-in-Access-forms-and-reports.html /gustav From fhtapia at gmail.com Fri Oct 27 07:06:54 2017 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Fri, 27 Oct 2017 12:06:54 +0000 Subject: [AccessD] WP blogging In-Reply-To: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> References: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> Message-ID: Hey John, Nice but the display only works well on bigger phones or desktop. The static sidebar isn?t handled well for mobile. :( On Mon, Oct 23, 2017 at 5:25 PM John Colby wrote: > To see what I have done so far go to ColbyConsulting.com and click the > blog menu item. Looks pretty bad. Now go to > > > https://jwcolby.blogspot.com/2013/02/microsoft-access-little-secret-classes.html?view=sidebar > > Looks like what I want, kinda. Except the main blog page should have > the sidebar and each blog thread should have it's own page with a > sidebar like that. Or something. > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fhtapia at gmail.com Fri Oct 27 07:08:53 2017 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Fri, 27 Oct 2017 12:08:53 +0000 Subject: [AccessD] WP blogging In-Reply-To: References: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> Message-ID: Your WP site on the other hand renders very well on mobile, and looks great! On Fri, Oct 27, 2017 at 5:06 AM wrote: > Hey John, > Nice but the display only works well on bigger phones or desktop. The > static sidebar isn?t handled well for mobile. :( > > On Mon, Oct 23, 2017 at 5:25 PM John Colby wrote: > >> To see what I have done so far go to ColbyConsulting.com and click the >> blog menu item. Looks pretty bad. Now go to >> >> >> https://jwcolby.blogspot.com/2013/02/microsoft-access-little-secret-classes.html?view=sidebar >> >> Looks like what I want, kinda. Except the main blog page should have >> the sidebar and each blog thread should have it's own page with a >> sidebar like that. Or something. >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From dbdoug at gmail.com Fri Oct 27 10:07:24 2017 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 27 Oct 2017 08:07:24 -0700 Subject: [AccessD] AWS Cloud services Message-ID: This is a little off topic, but you may find it interesting. A view from the inside: https://www.tbray.org/ongoing/When/201x/2017/10/26/Working-at-Amazon Doug From accessd at shaw.ca Fri Oct 27 12:47:57 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 11:47:57 -0600 (MDT) Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> Message-ID: <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> Hi John: I think you have taken the right course to create a good web presence as most of the world's most common CMS. It is so popular that all the other similar programs, collectively have less users than WP. Which theme did you decide to buy? I have worked with WP for a time but am hardly an expert...Bryan may be a good resource. I do have two excellent partners though, Mr and Mrs Google and Github is your friend. It sounds like you have some very exciting projects planned. You must keep us all posted. Aside: As WP is the most popular application of its type, its attack vector is huge. There are some very good articles on security, use them and as one fellow said, "Remember, always PYS". There are thousands of great plugs but there are hundreds of badly designed inserts so "caution" is the word of the day. (My wife has a WP website and it took six months to rid ourselves of one persistent script-kiddie and it all came down to one bad plugin.) Jim ----- Original Message ----- From: "John Colby" To: "Access Developers discussion and problem solving" Sent: Monday, October 23, 2017 5:20:32 PM Subject: [AccessD] Wordpress, Blogs and sidebars So guys, I am trying to bring my web site back. I decided to use Word Press. Too late to argue, it's paid for. Now I need help of course. I got it installed, and I am writing two blogs (more in the future). When I say "two blogs", I mean blogs on two different subjects, one is moving my blog from BlogSpot for Access classes. The other is moving the tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought my boat. I am able to write blog entries however they just appear as a long list of blog titles, which can be clicked on to read the specific blog entry or article. What I want is a tree structure which allows me to have a sidebar (or something) which holds a tree kinda thing and the branches are hot links to the individual pages. Seems like something every blogger would wish for. Well maybe but I am not discovering how to just do it in WP. So if there are any WP gurus (NOT Word Perfect!;) that would like to hold my hand through getting this set up, please contact me off line. Thanks, -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Oct 27 13:17:56 2017 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 27 Oct 2017 14:17:56 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> Message-ID: I too am wandering down this path and am much mystified as to how it all works. Plogging along as best i can but it is not easy. A. On Oct 27, 2017 1:49 PM, "Jim Lawrence" wrote: > Hi John: > > I think you have taken the right course to create a good web presence as > most of the world's most common CMS. It is so popular that all the other > similar programs, collectively have less users than WP. > > Which theme did you decide to buy? > > I have worked with WP for a time but am hardly an expert...Bryan may be a > good resource. I do have two excellent partners though, Mr and Mrs Google > and Github is your friend. > > It sounds like you have some very exciting projects planned. You must keep > us all posted. > > Aside: As WP is the most popular application of its type, its attack > vector is huge. There are some very good articles on security, use them and > as one fellow said, "Remember, always PYS". There are thousands of great > plugs but there are hundreds of badly designed inserts so "caution" is the > word of the day. (My wife has a WP website and it took six months to rid > ourselves of one persistent script-kiddie and it all came down to one bad > plugin.) > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Monday, October 23, 2017 5:20:32 PM > Subject: [AccessD] Wordpress, Blogs and sidebars > > So guys, I am trying to bring my web site back. I decided to use Word > Press. Too late to argue, it's paid for. Now I need help of course. > > I got it installed, and I am writing two blogs (more in the future). > When I say "two blogs", I mean blogs on two different subjects, one is > moving my blog from BlogSpot for Access classes. The other is moving the > tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought > my boat. > > I am able to write blog entries however they just appear as a long list > of blog titles, which can be clicked on to read the specific blog entry > or article. What I want is a tree structure which allows me to have a > sidebar (or something) which holds a tree kinda thing and the branches > are hot links to the individual pages. Seems like something every > blogger would wish for. > > Well maybe but I am not discovering how to just do it in WP. So if > there are any WP gurus (NOT Word Perfect!;) that would like to hold my > hand through getting this set up, please contact me off line. > > Thanks, > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 27 13:24:14 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 12:24:14 -0600 (MDT) Subject: [AccessD] WP blogging In-Reply-To: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> References: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> Message-ID: <467174580.548162883.1509128653998.JavaMail.zimbra@shaw.ca> Looks like a good start. It seems that MS Access is not dead yet. :-) Aside: I have been playing with an Open Source JavaScript OS. It has all sorts of wonderful features and it may have the pop-down menus you want: https://demo.os-js.org/ (Just borrow the CSS/JS samples). I tend to borrow stuff from a lot of sites, mostly just to see how it works. I use "wget". For example of how to use; here is one site that I was sampling, my wife's WP site which is now off-line for a while as I am planning on re-writing it: wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --restrict-file-names=windows \ --domains seriousart.ca \ --no-parent \ http://seriousart.ca/ The above line of code will open a directory with the domain name of "seriousart.ca", go to the website "http://seriousart.ca/" and then pulls the entire contents of the site (or subdirectory) into that directory...it is a matter of just cutting, pasting, testing and uploading some feature you want on your own site. If you wish to test the JavaScript on your site for bugs check out the video: https://www.youtube.com/watch?v=0dgmeTy7X3I Here is a site that allows you, as an Open Source developer or small low volume tester to use their vulnerability search engine for free: https://snyk.io/ Jim ----- Original Message ----- From: "John Colby" To: "Access Developers discussion and problem solving" Sent: Monday, October 23, 2017 5:24:23 PM Subject: [AccessD] WP blogging To see what I have done so far go to ColbyConsulting.com and click the blog menu item.? Looks pretty bad.? Now go to https://jwcolby.blogspot.com/2013/02/microsoft-access-little-secret-classes.html?view=sidebar Looks like what I want, kinda.? Except the main blog page should have the sidebar and each blog thread should have it's own page with a sidebar like that.? Or something. -- John W. Colby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Oct 27 14:59:59 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 13:59:59 -0600 (MDT) Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> Message-ID: <751893672.548402574.1509134399160.JavaMail.zimbra@shaw.ca> One WP teacher at the local college has been web designing since 1998 and she says there is still more to know. As an Open Source product, it evolves daily. Aside: If you check the WP Github site you will see that it has had over 1,200 commits in just two weeks via over 40 currently active contributors. WP is not unstable but it is advancing at an incredible speed. If WordPress mystifies you, you are in good company. :-) Jim ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Friday, October 27, 2017 11:17:56 AM Subject: Re: [AccessD] Wordpress, Blogs and sidebars I too am wandering down this path and am much mystified as to how it all works. Plogging along as best i can but it is not easy. A. On Oct 27, 2017 1:49 PM, "Jim Lawrence" wrote: > Hi John: > > I think you have taken the right course to create a good web presence as > most of the world's most common CMS. It is so popular that all the other > similar programs, collectively have less users than WP. > > Which theme did you decide to buy? > > I have worked with WP for a time but am hardly an expert...Bryan may be a > good resource. I do have two excellent partners though, Mr and Mrs Google > and Github is your friend. > > It sounds like you have some very exciting projects planned. You must keep > us all posted. > > Aside: As WP is the most popular application of its type, its attack > vector is huge. There are some very good articles on security, use them and > as one fellow said, "Remember, always PYS". There are thousands of great > plugs but there are hundreds of badly designed inserts so "caution" is the > word of the day. (My wife has a WP website and it took six months to rid > ourselves of one persistent script-kiddie and it all came down to one bad > plugin.) > > Jim > > ----- Original Message ----- > From: "John Colby" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Monday, October 23, 2017 5:20:32 PM > Subject: [AccessD] Wordpress, Blogs and sidebars > > So guys, I am trying to bring my web site back. I decided to use Word > Press. Too late to argue, it's paid for. Now I need help of course. > > I got it installed, and I am writing two blogs (more in the future). > When I say "two blogs", I mean blogs on two different subjects, one is > moving my blog from BlogSpot for Access classes. The other is moving the > tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought > my boat. > > I am able to write blog entries however they just appear as a long list > of blog titles, which can be clicked on to read the specific blog entry > or article. What I want is a tree structure which allows me to have a > sidebar (or something) which holds a tree kinda thing and the branches > are hot links to the individual pages. Seems like something every > blogger would wish for. > > Well maybe but I am not discovering how to just do it in WP. So if > there are any WP gurus (NOT Word Perfect!;) that would like to hold my > hand through getting this set up, please contact me off line. > > Thanks, > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 27 17:07:23 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 16:07:23 -0600 (MDT) Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> Message-ID: <639335039.548712180.1509142043915.JavaMail.zimbra@shaw.ca> I agree Arthur. Many years ago I had a network that kept thousands of pictures on people who were in a system that needed ID cards printed. The only way that the system of picture-display was possible, in real-time, was that the source pictures were stored, in a directory, as simple files and not in a database. Jim ----- Original Message ----- From: "Arthur Fuller" gmail.com> To: "Access Developers discussion and problem solving" Sent: Thursday, October 26, 2017 12:57:30 PM Subject: Re: [AccessD] Imaging MS Access I think that the bloat would kill you. I suggest that instead you store all the pics in a folder and add links to the pics as attachments. A. On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show- pictures-directly-from-URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis otenet.gr> Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Oct 27 18:27:59 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 17:27:59 -0600 (MDT) Subject: [AccessD] Imaging MS Access In-Reply-To: <002201d34ef5$fe78f3d0$fb6adb70$@otenet.gr> References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> <002201d34ef5$fe78f3d0$fb6adb70$@otenet.gr> Message-ID: <1615652889.548903322.1509146879039.JavaMail.zimbra@shaw.ca> You may need more functionality than the following but my wife has about a 100K pictures and she manages them through a depreciated Google app called Picasa. https://picasa.en.softonic.com/ There may be a lot better picture managers out there but Picasa just runs and on all platforms and it doesn't cost anything. Jim ----- Original Message ----- From: "Kostas Konstantinidis" otenet.gr> To: "Access Developers discussion and problem solving" Sent: Friday, October 27, 2017 12:34:14 AM Subject: Re: [AccessD] Imaging MS Access Hey Gustav, Thank's a lot for this excellent link... The last 35 years I have made a big research on all the History of the long and short Greek Films (more than 9400 movies) and actually what I need is to display with one sight for more than 15 pictures (the most in high resolution) for each of them. So as you understand the number is extremely big (2.5Tb pictures) and what I am afraid is that MS Access will not be able to manage it properly... That's the reason I am looking for something like DBPix (http://www.ammara.com/) but it's very expensive special if somebody needs to get it to work on several PC's on a network. I attach the amara's answer to my email > So, could you please confirm that DBPix 3 works on one-to-many? That's really an Access capability, so yes - you can store multiple images per record. This is typically achieved by creating a one-to-many table relationship and using a subform to view, add and edit the (multiple) images. > And also if I need to use it into 4-5 different PC?s in private network how many licenses must I purchase for? Our multi-user license supports one development system and unlimited runtime users. Make sure you obtain and enter a multi-user license key on your development system before you start adding any dbPix 3.0 controls to your production application. You can, of course, evaluate dbPix without a key, but note that if you start work on your production application before installing your license key you will need to delete any dbPix controls from that application and insert new ones after entering your license keycode. Thank you and all the people answered to my question /kostas -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 26, 2017 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Imaging MS Access Hi Kostas Isn't it just a question about picture controls - and putting pictures into these? Maybe you can get some ideas here: https://www.experts-exchange.com/articles/29679/Show-pictures-directly-from- URLs-in-Access-forms-and-reports.html /gustav ________________________________________ Fra: AccessD p? vegne af Kostas Konstantinidis otenet.gr> Sendt: 26. oktober 2017 19:56:14 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Imaging MS Access Hi all, Does anybody know any software for keeping many pictures per record into a form? Some years before I used DBPix 2.0 but as I remember it was a little sophisticated while it needed many steps to save a picture... Thanks /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at gmail.com Fri Oct 27 18:28:42 2017 From: jwcolby at gmail.com (John Colby) Date: Fri, 27 Oct 2017 19:28:42 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <751893672.548402574.1509134399160.JavaMail.zimbra@shaw.ca> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> <751893672.548402574.1509134399160.JavaMail.zimbra@shaw.ca> Message-ID: <90098d9c-4156-2712-b7af-8328ac79d3f9@Gmail.com> I have to say that 1200 commits by 40 people in two weeks makes me uneasy. Is there a defined process to review the new code before it is committed?? How do I know that one of the "active contributors" is not a hacker inserting back doors into the codebase?? Just because something is open source does not mean anyone is watching.? Development at that speed is absolutely possible.? Doing a thorough code review at that speed is less likely. In the eighties I was the author of code and participated in reviews.? The author, reader and scribe all looked over the code. The author explained, line by line what the reader was reading. The scribe watched and wrote down any questions or change requirements.? Wash, rinse, repeat until all three were satisfied. On 10/27/2017 3:59 PM, Jim Lawrence wrote: > One WP teacher at the local college has been web designing since 1998 and she says there is still more to know. As an Open Source product, it evolves daily. > > Aside: If you check the WP Github site you will see that it has had over 1,200 commits in just two weeks via over 40 currently active contributors. WP is not unstable but it is advancing at an incredible speed. > > If WordPress mystifies you, you are in good company. :-) > > Jim > > ----- Original Message ----- > From: "Arthur Fuller" > To: "Access Developers discussion and problem solving" > Sent: Friday, October 27, 2017 11:17:56 AM > Subject: Re: [AccessD] Wordpress, Blogs and sidebars > > I too am wandering down this path and am much mystified as to how it all > works. Plogging along as best i can but it is not easy. > > A. > > On Oct 27, 2017 1:49 PM, "Jim Lawrence" wrote: > >> Hi John: >> >> I think you have taken the right course to create a good web presence as >> most of the world's most common CMS. It is so popular that all the other >> similar programs, collectively have less users than WP. >> >> Which theme did you decide to buy? >> >> I have worked with WP for a time but am hardly an expert...Bryan may be a >> good resource. I do have two excellent partners though, Mr and Mrs Google >> and Github is your friend. >> >> It sounds like you have some very exciting projects planned. You must keep >> us all posted. >> >> Aside: As WP is the most popular application of its type, its attack >> vector is huge. There are some very good articles on security, use them and >> as one fellow said, "Remember, always PYS". There are thousands of great >> plugs but there are hundreds of badly designed inserts so "caution" is the >> word of the day. (My wife has a WP website and it took six months to rid >> ourselves of one persistent script-kiddie and it all came down to one bad >> plugin.) >> >> Jim >> >> ----- Original Message ----- >> From: "John Colby" >> To: "Access Developers discussion and problem solving" < >> accessd at databaseadvisors.com> >> Sent: Monday, October 23, 2017 5:20:32 PM >> Subject: [AccessD] Wordpress, Blogs and sidebars >> >> So guys, I am trying to bring my web site back. I decided to use Word >> Press. Too late to argue, it's paid for. Now I need help of course. >> >> I got it installed, and I am writing two blogs (more in the future). >> When I say "two blogs", I mean blogs on two different subjects, one is >> moving my blog from BlogSpot for Access classes. The other is moving the >> tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought >> my boat. >> >> I am able to write blog entries however they just appear as a long list >> of blog titles, which can be clicked on to read the specific blog entry >> or article. What I want is a tree structure which allows me to have a >> sidebar (or something) which holds a tree kinda thing and the branches >> are hot links to the individual pages. Seems like something every >> blogger would wish for. >> >> Well maybe but I am not discovering how to just do it in WP. So if >> there are any WP gurus (NOT Word Perfect!;) that would like to hold my >> hand through getting this set up, please contact me off line. >> >> Thanks, >> >> -- >> John W. Colby >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- John W. Colby From accessd at shaw.ca Fri Oct 27 18:44:52 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 17:44:52 -0600 (MDT) Subject: [AccessD] AWS Cloud services In-Reply-To: References: Message-ID: <1588275728.548937951.1509147892600.JavaMail.zimbra@shaw.ca> Very interesting. It not just AWS, its every tech company out there and there are thousands. Jim ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Friday, October 27, 2017 8:07:24 AM Subject: [AccessD] AWS Cloud services This is a little off topic, but you may find it interesting. A view from the inside: https://www.tbray.org/ongoing/When/201x/2017/10/26/Working-at-Amazon Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Oct 27 18:40:08 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 27 Oct 2017 17:40:08 -0600 (MDT) Subject: [AccessD] WP blogging In-Reply-To: References: <678182e6-b4f1-1db0-b32f-789e11999f4a@Gmail.com> Message-ID: <1740219945.548929621.1509147608336.JavaMail.zimbra@shaw.ca> That is my observation as well. This is why all the newer sites either have a simple site layout or have multiple pages depending on the screen real-estate, phone, tablet and PC. New web sites must also have gesture capabilities as well. Oh for the days of simple website where we only had to program around the failings of a half dozen browsers. ;-) Jim ----- Original Message ----- From: fhtapia at gmail.com To: "Access Developers discussion and problem solving" Sent: Friday, October 27, 2017 5:06:54 AM Subject: Re: [AccessD] WP blogging Hey John, Nice but the display only works well on bigger phones or desktop. The static sidebar isn?t handled well for mobile. :( On Mon, Oct 23, 2017 at 5:25 PM John Colby wrote: > To see what I have done so far go to ColbyConsulting.com and click the > blog menu item. Looks pretty bad. Now go to > > > https://jwcolby.blogspot.com/2013/02/microsoft-access-little-secret-classes.html?view=sidebar > > Looks like what I want, kinda. Except the main blog page should have > the sidebar and each blog thread should have it's own page with a > sidebar like that. Or something. > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Fri Oct 27 21:43:36 2017 From: bensonforums at gmail.com (Bill Benson) Date: Fri, 27 Oct 2017 22:43:36 -0400 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <04b901d34ccd$2974bf40$7c5e3dc0$@verizon.net> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <59EEC7DF.32625.33FDED2C@stuart.lexacorp.com.pg> <04b901d34ccd$2974bf40$7c5e3dc0$@verizon.net> Message-ID: Jim, are you making that comment? Do you feel it MUST be made? ;) On Tue, Oct 24, 2017 at 9:36 AM, Jim Dettman wrote: > > I wish Database Advisers would make the decision to dump all the different > lists and just have a single one so the comment of "does this really belong > here?" doesn't have to get made. > > It was a while back because so many of us have some many different > interests. I'm bringing it up again in the hopes that it will finally > happen. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: Tuesday, October 24, 2017 12:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Wordpress, Blogs and sidebars > > What do you mean "paid for". Wordpress shouldn't cost you anything, it's > free, open source > PHP/MySQL code. > > On 23 Oct 2017 at 20:20, John Colby wrote: > > > So guys, I am trying to bring my web site back. I decided to use > > Word Press. Too late to argue, it's paid for. Now I need help of > > course. > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Sat Oct 28 14:21:32 2017 From: tinanfields at torchlake.com (Tina N Fields) Date: Sat, 28 Oct 2017 15:21:32 -0400 Subject: [AccessD] Combo box puzzle Message-ID: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> Hi, There is a table with just two date records - December 14, 2017 and December 15, 2017. These are pickup dates for Christmas food baskets. The date field is set to 'short date' or 12/14/2017 and 12/15/2017. The selected date is to be stored in a date field in the family record in the households table. On the data-entry form, I placed a combo box (using the wizard), to select the values from the tblChristmas_Pickup_date table and store it in the HH_Christmas_Date field in the tblHouseholds table. The field is set to short date. Testing the data entry, as soon as I select the date from the combo box, I get this error: The value you entered isn't valid for this field. For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits. I can go into the tblHouseholds table and put the date in that field. Then, when I attempt to view the record in the form, I get the same error. What the heck am I doing wrong? Thanks, T -- Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com From tinanfields at torchlake.com Sat Oct 28 14:41:15 2017 From: tinanfields at torchlake.com (Tina N Fields) Date: Sat, 28 Oct 2017 15:41:15 -0400 Subject: [AccessD] Combo box puzzle In-Reply-To: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> References: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> Message-ID: <258731ac-eac3-046b-9754-bbd202baec44@torchlake.com> Hi again, Update. If I use a value list for the combo box, rather than the date from the date table, it works. So, why didn't I want to do it that way? Because, next year someone will need to edit that value list rather than the two records in the date table. Still don't know why that wasn't working. Ideas? T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com On 10/28/2017 3:21 PM, Tina N Fields wrote: > Hi, > > There is a table with just two date records - December 14, 2017 and > December 15, 2017. These are pickup dates for Christmas food baskets. > The date field is set to 'short date' or 12/14/2017 and 12/15/2017. > > The selected date is to be stored in a date field in the family record > in the households table. > > On the data-entry form, I placed a combo box (using the wizard), to > select the values from the tblChristmas_Pickup_date table and store it > in the HH_Christmas_Date field in the tblHouseholds table. The field > is set to short date. > > Testing the data entry, as soon as I select the date from the combo > box, I get this error: > > The value you entered isn't valid for this field. > For example, you may have entered text in a numeric field or a number > that is larger than the FieldSize setting permits. > > I can go into the tblHouseholds table and put the date in that field. > Then, when I attempt to view the record in the form, I get the same > error. > > What the heck am I doing wrong? > > Thanks, > T > From gustav at cactus.dk Sat Oct 28 15:52:05 2017 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Oct 2017 20:52:05 +0000 Subject: [AccessD] Combo box puzzle In-Reply-To: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> References: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> Message-ID: Hi Tina > Then, when I attempt to view the record in the form, I get the same error. If the form can't display an already entered valid date, then something else is going on, not related to your combobox. /gustav ________________________________________ Fra: AccessD p? vegne af Tina N Fields Sendt: 28. oktober 2017 21:21:32 Til: ACCESSD Emne: [AccessD] Combo box puzzle Hi, There is a table with just two date records - December 14, 2017 and December 15, 2017. These are pickup dates for Christmas food baskets. The date field is set to 'short date' or 12/14/2017 and 12/15/2017. The selected date is to be stored in a date field in the family record in the households table. On the data-entry form, I placed a combo box (using the wizard), to select the values from the tblChristmas_Pickup_date table and store it in the HH_Christmas_Date field in the tblHouseholds table. The field is set to short date. Testing the data entry, as soon as I select the date from the combo box, I get this error: The value you entered isn't valid for this field. For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits. I can go into the tblHouseholds table and put the date in that field. Then, when I attempt to view the record in the form, I get the same error. What the heck am I doing wrong? Thanks, T -- Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com From stuart at lexacorp.com.pg Sat Oct 28 17:02:20 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 29 Oct 2017 08:02:20 +1000 Subject: [AccessD] Combo box puzzle In-Reply-To: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> References: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> Message-ID: <59F4FE6C.25841.8131C60@stuart.lexacorp.com.pg> What are the "Control Source", "Row source", Bound column" in "Data" propertiess and "Format and COlumn Widths" in "Format" properties? "The date field is set to 'short date' or 12/14/2017 and 12/15/2017." and "The field is set to short date." A "date field" is actually a date/time field - which stored a number where the integer part is number of days since 1/1/1900 (?) and the fractional part is the time. You can't "set it to 'short date'". You probably mean that the default display formats are set to "Short Date" - which is only in the form "mm/dd/yyyy" if that is the way your particular computer is configured. On mine it would display as "14/12/17".and "15/12/17" :) I never define display formats in tables - that's what the front end is for! - it can cause all sorts of problems. Try removing formatting from the table definition. On 28 Oct 2017 at 15:21, Tina N Fields wrote: > Hi, > > There is a table with just two date records - December 14, 2017 and > December 15, 2017. These are pickup dates for Christmas food baskets. > The date field is set to 'short date' or 12/14/2017 and 12/15/2017. > > The selected date is to be stored in a date field in the family record > in the households table. > > On the data-entry form, I placed a combo box (using the wizard), to > select the values from the tblChristmas_Pickup_date table and store it > in the HH_Christmas_Date field in the tblHouseholds table. The field > is set to short date. > > Testing the data entry, as soon as I select the date from the combo > box, I get this error: > > The value you entered isn't valid for this field. > For example, you may have entered text in a numeric field or a number > that is larger than the FieldSize setting permits. > > I can go into the tblHouseholds table and put the date in that field. > Then, when I attempt to view the record in the form, I get the same > error. > > What the heck am I doing wrong? > > Thanks, > T > > -- > Tina Norris Fields > 231-322-2787 > tinanfields-at-torchlake-dot-com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From thesmileycoder at gmail.com Sat Oct 28 17:03:19 2017 From: thesmileycoder at gmail.com (Anders Ebro (TheSmileyCoder)) Date: Sun, 29 Oct 2017 00:03:19 +0200 Subject: [AccessD] Combo box puzzle In-Reply-To: <258731ac-eac3-046b-9754-bbd202baec44@torchlake.com> References: <28f91823-edfa-3f4c-d5f5-a8a0b8b412fd@torchlake.com> <258731ac-eac3-046b-9754-bbd202baec44@torchlake.com> Message-ID: <060DF3F3-BD2D-4645-8A9A-860E4A6D6919@gmail.com> Does the field have an input mask? Send screenshots of the field properties of both tables, as well as the combobox, and maybe something till stand out. Sent from my mobile device, and thus kept brief. On 28 Oct 2017, at 21.41, Tina N Fields wrote: Hi again, Update. If I use a value list for the combo box, rather than the date from the date table, it works. So, why didn't I want to do it that way? Because, next year someone will need to edit that value list rather than the two records in the date table. Still don't know why that wasn't working. Ideas? T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com > On 10/28/2017 3:21 PM, Tina N Fields wrote: > Hi, > > There is a table with just two date records - December 14, 2017 and December 15, 2017. These are pickup dates for Christmas food baskets. The date field is set to 'short date' or 12/14/2017 and 12/15/2017. > > The selected date is to be stored in a date field in the family record in the households table. > > On the data-entry form, I placed a combo box (using the wizard), to select the values from the tblChristmas_Pickup_date table and store it in the HH_Christmas_Date field in the tblHouseholds table. The field is set to short date. > > Testing the data entry, as soon as I select the date from the combo box, I get this error: > > The value you entered isn't valid for this field. > For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits. > > I can go into the tblHouseholds table and put the date in that field. Then, when I attempt to view the record in the form, I get the same error. > > What the heck am I doing wrong? > > Thanks, > T > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Sun Oct 29 08:55:40 2017 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sun, 29 Oct 2017 08:55:40 -0500 Subject: [AccessD] Wordpress, Blogs and sidebars In-Reply-To: <90098d9c-4156-2712-b7af-8328ac79d3f9@Gmail.com> References: <45de5524-51b1-91f2-8c45-18f66e597386@Gmail.com> <61678477.548063181.1509126477542.JavaMail.zimbra@shaw.ca> <751893672.548402574.1509134399160.JavaMail.zimbra@shaw.ca> <90098d9c-4156-2712-b7af-8328ac79d3f9@Gmail.com> Message-ID: For the WP core, there is only a select group that can actually commit. >From https://make.wordpress.org/core/handbook/contribute/ Committers are a type of WordPress contributor who has earned the trust of the community and been given the keys to ?commit? code to WordPress core. Committers use their judgement to commit their own code as well as code from other contributors. So how do you know they aren't hackers? You may not, but the WP community doesn't think they are otherwise they would never have been given the key to commit in the first place. For plugins and themes, you don't. Using popular themes and plugins will minimize the risks, because if they are bad/spam/hacking vectors they won't last long in the official plugin/theme repositories. That being said, here's an article detailing how a bad actor bought popular plugins and turned them into spam producing plugins. https://www.wordfence.com/blog/2017/09/coordinated-plugin-spam/ Unless you want to roll-your-own web CMS (with all the nightmare that that entails), there is no way to be certain about anything. Knowledge and trust go a long way though. Having a good security solution for your WP installation helps considerably. As does having good backups just in case. B On 27 October 2017 at 18:28, John Colby wrote: > I have to say that 1200 commits by 40 people in two weeks makes me uneasy. > Is there a defined process to review the new code before it is committed? > How do I know that one of the "active contributors" is not a hacker > inserting back doors into the codebase? Just because something is open > source does not mean anyone is watching. Development at that speed is > absolutely possible. Doing a thorough code review at that speed is less > likely. > > In the eighties I was the author of code and participated in reviews. The > author, reader and scribe all looked over the code. The author explained, > line by line what the reader was reading. The scribe watched and wrote down > any questions or change requirements. Wash, rinse, repeat until all three > were satisfied. > > > > On 10/27/2017 3:59 PM, Jim Lawrence wrote: >> >> One WP teacher at the local college has been web designing since 1998 and >> she says there is still more to know. As an Open Source product, it evolves >> daily. >> >> Aside: If you check the WP Github site you will see that it has had over >> 1,200 commits in just two weeks via over 40 currently active contributors. >> WP is not unstable but it is advancing at an incredible speed. >> >> If WordPress mystifies you, you are in good company. :-) >> >> Jim >> >> ----- Original Message ----- >> From: "Arthur Fuller" >> To: "Access Developers discussion and problem solving" >> >> Sent: Friday, October 27, 2017 11:17:56 AM >> Subject: Re: [AccessD] Wordpress, Blogs and sidebars >> >> I too am wandering down this path and am much mystified as to how it all >> works. Plogging along as best i can but it is not easy. >> >> A. >> >> On Oct 27, 2017 1:49 PM, "Jim Lawrence" wrote: >> >>> Hi John: >>> >>> I think you have taken the right course to create a good web presence as >>> most of the world's most common CMS. It is so popular that all the other >>> similar programs, collectively have less users than WP. >>> >>> Which theme did you decide to buy? >>> >>> I have worked with WP for a time but am hardly an expert...Bryan may be a >>> good resource. I do have two excellent partners though, Mr and Mrs Google >>> and Github is your friend. >>> >>> It sounds like you have some very exciting projects planned. You must >>> keep >>> us all posted. >>> >>> Aside: As WP is the most popular application of its type, its attack >>> vector is huge. There are some very good articles on security, use them >>> and >>> as one fellow said, "Remember, always PYS". There are thousands of great >>> plugs but there are hundreds of badly designed inserts so "caution" is >>> the >>> word of the day. (My wife has a WP website and it took six months to rid >>> ourselves of one persistent script-kiddie and it all came down to one bad >>> plugin.) >>> >>> Jim >>> >>> ----- Original Message ----- >>> From: "John Colby" >>> To: "Access Developers discussion and problem solving" < >>> accessd at databaseadvisors.com> >>> Sent: Monday, October 23, 2017 5:20:32 PM >>> Subject: [AccessD] Wordpress, Blogs and sidebars >>> >>> So guys, I am trying to bring my web site back. I decided to use Word >>> Press. Too late to argue, it's paid for. Now I need help of course. >>> >>> I got it installed, and I am writing two blogs (more in the future). >>> When I say "two blogs", I mean blogs on two different subjects, one is >>> moving my blog from BlogSpot for Access classes. The other is moving the >>> tale of Sweet Allie Bluebeard, i.e. my sailing adventure when I bought >>> my boat. >>> >>> I am able to write blog entries however they just appear as a long list >>> of blog titles, which can be clicked on to read the specific blog entry >>> or article. What I want is a tree structure which allows me to have a >>> sidebar (or something) which holds a tree kinda thing and the branches >>> are hot links to the individual pages. Seems like something every >>> blogger would wish for. >>> >>> Well maybe but I am not discovering how to just do it in WP. So if >>> there are any WP gurus (NOT Word Perfect!;) that would like to hold my >>> hand through getting this set up, please contact me off line. >>> >>> Thanks, >>> >>> -- >>> John W. Colby >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> > > -- > John W. Colby > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well-preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From thesmileycoder at gmail.com Sun Oct 29 15:46:35 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Sun, 29 Oct 2017 21:46:35 +0100 Subject: [AccessD] Imaging MS Access In-Reply-To: <639335039.548712180.1509142043915.JavaMail.zimbra@shaw.ca> References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> <639335039.548712180.1509142043915.JavaMail.zimbra@shaw.ca> Message-ID: I wrote an app 5 years ago, which primary purpose was keeping track of on-site observations, mostly documented by photos. The code used would: A) Create a thumbnail copy (200x150 or something like that) used for showing in continous forms. B) Create a "report size" image, ideal for printed reports. C) Store the image metadata to a table. C) Copy the original, and the above two images to a network share, using naming like 8765_thumb, 8765_report, 8765_original I would say that photos are much easier to handle than any other type of document, because photos don't change (yes, yes, of course there are exceptions) unlike documents and spreadsheets. This worked extremely well (and is still in use btw). I think they have reached more than 100.000 photo files by now. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Sat, Oct 28, 2017 at 12:07 AM, Jim Lawrence wrote: > I agree Arthur. > > Many years ago I had a network that kept thousands of pictures on people > who were in a system that needed ID cards printed. The only way that the > system of picture-display was possible, in real-time, was that the source > pictures were stored, in a directory, as simple files and not in a database. > > Jim > > ----- Original Message ----- > From: "Arthur Fuller" gmail.com> > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Thursday, October 26, 2017 12:57:30 PM > Subject: Re: [AccessD] Imaging MS Access > > I think that the bloat would kill you. I suggest that instead you store all > the pics in a folder and add links to the pics as attachments. > A. > > On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: > > Hi Kostas > > Isn't it just a question about picture controls - and putting pictures into > these? > > Maybe you can get some ideas here: > > https://www.experts-exchange.com/articles/29679/Show- > pictures-directly-from-URLs-in-Access-forms-and-reports.html > > /gustav > ________________________________________ > Fra: AccessD p? vegne af Kostas > Konstantinidis otenet.gr> > Sendt: 26. oktober 2017 19:56:14 > Til: 'Access Developers discussion and problem solving' > Emne: [AccessD] Imaging MS Access > > Hi all, > Does anybody know any software for keeping many pictures per record into a > form? > Some years before I used DBPix 2.0 but as I remember it was a little > sophisticated while it needed many steps to save a picture... > Thanks > > /kostas > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Oct 29 22:09:37 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 29 Oct 2017 21:09:37 -0600 (MDT) Subject: [AccessD] Imaging MS Access In-Reply-To: References: <000601d34e83$b86a4190$293ec4b0$@otenet.gr> <639335039.548712180.1509142043915.JavaMail.zimbra@shaw.ca> Message-ID: <718373327.578551.1509332977841.JavaMail.zimbra@shaw.ca> The beauty of photos once created require no further management or demand related data. A great secure report method. Jim PS Thumbs up on your site. :-) ----- Original Message ----- From: "The Smiley Coder" To: "Access Developers discussion and problem solving" Sent: Sunday, October 29, 2017 1:46:35 PM Subject: Re: [AccessD] Imaging MS Access I wrote an app 5 years ago, which primary purpose was keeping track of on-site observations, mostly documented by photos. The code used would: A) Create a thumbnail copy (200x150 or something like that) used for showing in continous forms. B) Create a "report size" image, ideal for printed reports. C) Store the image metadata to a table. C) Copy the original, and the above two images to a network share, using naming like 8765_thumb, 8765_report, 8765_original I would say that photos are much easier to handle than any other type of document, because photos don't change (yes, yes, of course there are exceptions) unlike documents and spreadsheets. This worked extremely well (and is still in use btw). I think they have reached more than 100.000 photo files by now. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Sat, Oct 28, 2017 at 12:07 AM, Jim Lawrence wrote: > I agree Arthur. > > Many years ago I had a network that kept thousands of pictures on people > who were in a system that needed ID cards printed. The only way that the > system of picture-display was possible, in real-time, was that the source > pictures were stored, in a directory, as simple files and not in a database. > > Jim > > ----- Original Message ----- > From: "Arthur Fuller" gmail.com> > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Thursday, October 26, 2017 12:57:30 PM > Subject: Re: [AccessD] Imaging MS Access > > I think that the bloat would kill you. I suggest that instead you store all > the pics in a folder and add links to the pics as attachments. > A. > > On Oct 26, 2017 3:01 PM, "Gustav Brock" wrote: > > Hi Kostas > > Isn't it just a question about picture controls - and putting pictures into > these? > > Maybe you can get some ideas here: > > https://www.experts-exchange.com/articles/29679/Show- > pictures-directly-from-URLs-in-Access-forms-and-reports.html > > /gustav > ________________________________________ > Fra: AccessD p? vegne af Kostas > Konstantinidis otenet.gr> > Sendt: 26. oktober 2017 19:56:14 > Til: 'Access Developers discussion and problem solving' > Emne: [AccessD] Imaging MS Access > > Hi all, > Does anybody know any software for keeping many pictures per record into a > form? > Some years before I used DBPix 2.0 but as I remember it was a little > sophisticated while it needed many steps to save a picture... > Thanks > > /kostas > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From thesmileycoder at gmail.com Mon Oct 30 05:28:50 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Mon, 30 Oct 2017 11:28:50 +0100 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: Curious Ryan, what is the ping time for both servers? I've found that with a bit of work, and some design principles, I can get my local access app to run against SQL azure so fast you can't tell it is not local. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: > Gustav, > The kicker there is my $10/mo "Shared Windows Hosting", with a Shared SQL > Server with MANY MANY users on it is faster. I realize Azure is a "shared" > nature too.. but with SOME resources that are for your account only (like a > mini virtual machine, of sorts)... where on the shared hosting that's not > the case.. anyone can cause the server you are on to bottleneck and cause > grief. > > I would have thought that the S0 or S1 Azure plan would exceed the shared > windows hosting plan I have over at HostGator... I was only testing to > see if my 1-2 minute "insert into" time with HostGator was atypical or > not. Turns out I'm not doing as bad as I could be, I suppose. > > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock wrote: > > > Hi Ryan > > > > We have some small Azure SQL instances running for testing purposes, and > > they are very slow. Straight reading is relatively fast, but anything > else > > is painfully slow. Except for some simple views, we don't run anything > else > > on the Azure SQL engine. > > > > The positive aspect of this is, that it is a very effective method to > > pinpoint bottlenecks. If you can run a form off the Azure SQL at good > > speed, it will run blazingly fast off a local SQL Server. And what you > > think you can away with using a fast local server, will kick you hard > when > > moved to Azure SQL. > > > > I guess that using a larger instance would prove much better results, but > > the costs rise quite quickly. I miss a small, fast, and free instance. > > > > /gustav > > > > ________________________________________ > > Fra: AccessD p? vegne af Ryan W < > > wrwehler at gmail.com> > > Sendt: 19. oktober 2017 20:39:34 > > Til: Access Developers discussion and problem solving > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > > > Back story: > > > > We have an Access FE with a SQL Server back end. We push up a relatively > > small dataset (6000 rows total) up to our website for some updated > > 'statistics' on client work. > > > > Right now my SQL server is on a shared windows host and pushing those > 6000 > > rows takes anywhere from 1m30s to 2 minutes, usually! > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) for > some > > devs we have in Denmark to query off, it doesn't have to be updated so it > > doesn't do any log shipping or anything (not that azure supports it, from > > what I can tell). > > > > > > Anyway those same tables on my shared Windows hosting plan were created > in > > my azure instance and those very same queries take over 6 minutes! > > > > First off, it seems highly suspect that azure would be 3 times slower? > > Secondly aside from WAN latency and such why would it even be taking 2 > > minutes to insert 6,000 rows across the WAN? Is there a way I can speed > > that up in either the shared server or the Azure server? > > > > > > When I check the Azure DB statistics and "DTU usage" it's barely a blip > on > > the radar, so I'm not pegging my DTU allocation by any means. > > > > > > When I query that information back out of Azure I pull down those 6,000 > > rows in less than one second.. so it doesn't seem like my WAN is > > necessarily the culprit. > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Mon Oct 30 07:38:22 2017 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 30 Oct 2017 08:38:22 -0400 Subject: [AccessD] FW: Heads-up!!! Message-ID: <05e101d3517b$fc14df90$f43e9eb0$@verizon.net> Just a reminder on this as you only have today and tomorrow. You might also want to download SP1, SP2, and SP3 for Office 2007 as a whole if you have not, and the SP's for Access standalone. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, October 12, 2017 04:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Heads-up!!! This is a heads up that the following Access components available as standalone downloads are moving past extended support in the near future and along with other Office 2007 products, will not be available for download after that time. If you have any software that depends on the 2007 (32bit) database engine or the 2007 run time, you'll want to download these as soon as possible so you have them. . Access 2007 runtime - https://www.microsoft.com/en-us/download/details.aspx?id=4438 . Office Data Connectivity Components (ACE) - https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be 11f-ede8-5a0c-058c-2ee190a24fa6=True . ADE - https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the packaging wizard, source code control, and the save as template functionality) Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wrwehler at gmail.com Mon Oct 30 08:31:43 2017 From: wrwehler at gmail.com (Ryan W) Date: Mon, 30 Oct 2017 08:31:43 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: I can't ping it unfortunately. Azure probably has a firewall rule up to block pings. On Mon, Oct 30, 2017 at 5:28 AM, The Smiley Coder wrote: > Curious Ryan, what is the ping time for both servers? I've found that with > a bit of work, and some design principles, I can get my local access app to > run against SQL azure so fast you can't tell it is not local. > > Best regards > Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > > > On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: > > > Gustav, > > The kicker there is my $10/mo "Shared Windows Hosting", with a Shared > SQL > > Server with MANY MANY users on it is faster. I realize Azure is a > "shared" > > nature too.. but with SOME resources that are for your account only > (like a > > mini virtual machine, of sorts)... where on the shared hosting that's not > > the case.. anyone can cause the server you are on to bottleneck and cause > > grief. > > > > I would have thought that the S0 or S1 Azure plan would exceed the > shared > > windows hosting plan I have over at HostGator... I was only testing to > > see if my 1-2 minute "insert into" time with HostGator was atypical or > > not. Turns out I'm not doing as bad as I could be, I suppose. > > > > > > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock wrote: > > > > > Hi Ryan > > > > > > We have some small Azure SQL instances running for testing purposes, > and > > > they are very slow. Straight reading is relatively fast, but anything > > else > > > is painfully slow. Except for some simple views, we don't run anything > > else > > > on the Azure SQL engine. > > > > > > The positive aspect of this is, that it is a very effective method to > > > pinpoint bottlenecks. If you can run a form off the Azure SQL at good > > > speed, it will run blazingly fast off a local SQL Server. And what you > > > think you can away with using a fast local server, will kick you hard > > when > > > moved to Azure SQL. > > > > > > I guess that using a larger instance would prove much better results, > but > > > the costs rise quite quickly. I miss a small, fast, and free instance. > > > > > > /gustav > > > > > > ________________________________________ > > > Fra: AccessD p? vegne af Ryan > W < > > > wrwehler at gmail.com> > > > Sendt: 19. oktober 2017 20:39:34 > > > Til: Access Developers discussion and problem solving > > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > > > > > Back story: > > > > > > We have an Access FE with a SQL Server back end. We push up a > relatively > > > small dataset (6000 rows total) up to our website for some updated > > > 'statistics' on client work. > > > > > > Right now my SQL server is on a shared windows host and pushing those > > 6000 > > > rows takes anywhere from 1m30s to 2 minutes, usually! > > > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) for > > some > > > devs we have in Denmark to query off, it doesn't have to be updated so > it > > > doesn't do any log shipping or anything (not that azure supports it, > from > > > what I can tell). > > > > > > > > > Anyway those same tables on my shared Windows hosting plan were created > > in > > > my azure instance and those very same queries take over 6 minutes! > > > > > > First off, it seems highly suspect that azure would be 3 times slower? > > > Secondly aside from WAN latency and such why would it even be taking 2 > > > minutes to insert 6,000 rows across the WAN? Is there a way I can > speed > > > that up in either the shared server or the Azure server? > > > > > > > > > When I check the Azure DB statistics and "DTU usage" it's barely a blip > > on > > > the radar, so I'm not pegging my DTU allocation by any means. > > > > > > > > > When I query that information back out of Azure I pull down those 6,000 > > > rows in less than one second.. so it doesn't seem like my WAN is > > > necessarily the culprit. > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From thesmileycoder at gmail.com Mon Oct 30 08:49:14 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Mon, 30 Oct 2017 14:49:14 +0100 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: You can try this site: http://www.azurespeed.com/ >From my current position at a client (which has an intense firewall, and possibly also some software gateway tool which slows down) most of the european datacenters had a latency in the 500-1000ms range. When I connect from my own home PC, or office PC, they have a latency around 150-400, so significantly lower. I am guessing the performance changes you see, is more related to latency than it is to the performance SLA of the server. I remember a while ago I did an interface which pulled and pushed in the 10k amount of records to and from a hosted mySQL on a shite webserver. The program would pull 10k rows, do some excel magic using the built in forecasting, then upload the results. Doing regular inserts against a linked table would take ages. So, instead I added code in the frontend which looped the local recordsets, wrote a SQL passthrough string like so: Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) Then I would execute that sql string against the server. I don't really know if it was required, but I added a check on the length of the statement, and if it reached 50K characters, it would fire the SQL, then start a new string for the remained of the records. The upload for all 10k records took maybe 1.5 seconds including the loop of the recordsets, and writing of the SQL string. Another option I've heard from other places is to use XML for the upload, but never tried that. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Mon, Oct 30, 2017 at 2:31 PM, Ryan W wrote: > I can't ping it unfortunately. Azure probably has a firewall rule up to > block pings. > > > > On Mon, Oct 30, 2017 at 5:28 AM, The Smiley Coder < > thesmileycoder at gmail.com> > wrote: > > > Curious Ryan, what is the ping time for both servers? I've found that > with > > a bit of work, and some design principles, I can get my local access app > to > > run against SQL azure so fast you can't tell it is not local. > > > > Best regards > > Anders Ebro // TheSmileyCoder > > Access MVP 2014-2018 > > > > > > On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: > > > > > Gustav, > > > The kicker there is my $10/mo "Shared Windows Hosting", with a Shared > > SQL > > > Server with MANY MANY users on it is faster. I realize Azure is a > > "shared" > > > nature too.. but with SOME resources that are for your account only > > (like a > > > mini virtual machine, of sorts)... where on the shared hosting that's > not > > > the case.. anyone can cause the server you are on to bottleneck and > cause > > > grief. > > > > > > I would have thought that the S0 or S1 Azure plan would exceed the > > shared > > > windows hosting plan I have over at HostGator... I was only testing > to > > > see if my 1-2 minute "insert into" time with HostGator was atypical or > > > not. Turns out I'm not doing as bad as I could be, I suppose. > > > > > > > > > > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock > wrote: > > > > > > > Hi Ryan > > > > > > > > We have some small Azure SQL instances running for testing purposes, > > and > > > > they are very slow. Straight reading is relatively fast, but anything > > > else > > > > is painfully slow. Except for some simple views, we don't run > anything > > > else > > > > on the Azure SQL engine. > > > > > > > > The positive aspect of this is, that it is a very effective method to > > > > pinpoint bottlenecks. If you can run a form off the Azure SQL at good > > > > speed, it will run blazingly fast off a local SQL Server. And what > you > > > > think you can away with using a fast local server, will kick you hard > > > when > > > > moved to Azure SQL. > > > > > > > > I guess that using a larger instance would prove much better results, > > but > > > > the costs rise quite quickly. I miss a small, fast, and free > instance. > > > > > > > > /gustav > > > > > > > > ________________________________________ > > > > Fra: AccessD p? vegne af Ryan > > W < > > > > wrwehler at gmail.com> > > > > Sendt: 19. oktober 2017 20:39:34 > > > > Til: Access Developers discussion and problem solving > > > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > > > > > > > Back story: > > > > > > > > We have an Access FE with a SQL Server back end. We push up a > > relatively > > > > small dataset (6000 rows total) up to our website for some updated > > > > 'statistics' on client work. > > > > > > > > Right now my SQL server is on a shared windows host and pushing those > > > 6000 > > > > rows takes anywhere from 1m30s to 2 minutes, usually! > > > > > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) > for > > > some > > > > devs we have in Denmark to query off, it doesn't have to be updated > so > > it > > > > doesn't do any log shipping or anything (not that azure supports it, > > from > > > > what I can tell). > > > > > > > > > > > > Anyway those same tables on my shared Windows hosting plan were > created > > > in > > > > my azure instance and those very same queries take over 6 minutes! > > > > > > > > First off, it seems highly suspect that azure would be 3 times > slower? > > > > Secondly aside from WAN latency and such why would it even be taking > 2 > > > > minutes to insert 6,000 rows across the WAN? Is there a way I can > > speed > > > > that up in either the shared server or the Azure server? > > > > > > > > > > > > When I check the Azure DB statistics and "DTU usage" it's barely a > blip > > > on > > > > the radar, so I'm not pegging my DTU allocation by any means. > > > > > > > > > > > > When I query that information back out of Azure I pull down those > 6,000 > > > > rows in less than one second.. so it doesn't seem like my WAN is > > > > necessarily the culprit. > > > > -- > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wrwehler at gmail.com Mon Oct 30 09:32:06 2017 From: wrwehler at gmail.com (Ryan W) Date: Mon, 30 Oct 2017 09:32:06 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: Looks like under 90ms to the datacenter I'm at. The closest bobbles up and down between mid 30s to mid 80s... I'm in "West US 2" I think.. I don't remember having a choice when I set up the DB or I'd had set it up closer to me geographically. On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder wrote: > You can try this site: > http://www.azurespeed.com/ > From my current position at a client (which has an intense firewall, and > possibly also some software gateway tool which slows down) most of the > european datacenters had a latency in the 500-1000ms range. > > When I connect from my own home PC, or office PC, they have a latency > around 150-400, so significantly lower. > > I am guessing the performance changes you see, is more related to latency > than it is to the performance SLA of the server. > > > > I remember a while ago I did an interface which pulled and pushed in the > 10k amount of records to and from a hosted mySQL on a shite webserver. The > program would pull 10k rows, do some excel magic using the built in > forecasting, then upload the results. > Doing regular inserts against a linked table would take ages. So, instead I > added code in the frontend which looped the local recordsets, wrote a SQL > passthrough string like so: > Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) > Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) > Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) > > Then I would execute that sql string against the server. > I don't really know if it was required, but I added a check on the length > of the statement, and if it reached 50K characters, it would fire the SQL, > then start a new string for the remained of the records. > The upload for all 10k records took maybe 1.5 seconds including the loop of > the recordsets, and writing of the SQL string. > > Another option I've heard from other places is to use XML for the upload, > but never tried that. > > > > Best regards > Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > > > On Mon, Oct 30, 2017 at 2:31 PM, Ryan W wrote: > > > I can't ping it unfortunately. Azure probably has a firewall rule up to > > block pings. > > > > > > > > On Mon, Oct 30, 2017 at 5:28 AM, The Smiley Coder < > > thesmileycoder at gmail.com> > > wrote: > > > > > Curious Ryan, what is the ping time for both servers? I've found that > > with > > > a bit of work, and some design principles, I can get my local access > app > > to > > > run against SQL azure so fast you can't tell it is not local. > > > > > > Best regards > > > Anders Ebro // TheSmileyCoder > > > Access MVP 2014-2018 > > > > > > > > > On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: > > > > > > > Gustav, > > > > The kicker there is my $10/mo "Shared Windows Hosting", with a > Shared > > > SQL > > > > Server with MANY MANY users on it is faster. I realize Azure is a > > > "shared" > > > > nature too.. but with SOME resources that are for your account only > > > (like a > > > > mini virtual machine, of sorts)... where on the shared hosting that's > > not > > > > the case.. anyone can cause the server you are on to bottleneck and > > cause > > > > grief. > > > > > > > > I would have thought that the S0 or S1 Azure plan would exceed the > > > shared > > > > windows hosting plan I have over at HostGator... I was only > testing > > to > > > > see if my 1-2 minute "insert into" time with HostGator was atypical > or > > > > not. Turns out I'm not doing as bad as I could be, I suppose. > > > > > > > > > > > > > > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock > > wrote: > > > > > > > > > Hi Ryan > > > > > > > > > > We have some small Azure SQL instances running for testing > purposes, > > > and > > > > > they are very slow. Straight reading is relatively fast, but > anything > > > > else > > > > > is painfully slow. Except for some simple views, we don't run > > anything > > > > else > > > > > on the Azure SQL engine. > > > > > > > > > > The positive aspect of this is, that it is a very effective method > to > > > > > pinpoint bottlenecks. If you can run a form off the Azure SQL at > good > > > > > speed, it will run blazingly fast off a local SQL Server. And what > > you > > > > > think you can away with using a fast local server, will kick you > hard > > > > when > > > > > moved to Azure SQL. > > > > > > > > > > I guess that using a larger instance would prove much better > results, > > > but > > > > > the costs rise quite quickly. I miss a small, fast, and free > > instance. > > > > > > > > > > /gustav > > > > > > > > > > ________________________________________ > > > > > Fra: AccessD p? vegne af > Ryan > > > W < > > > > > wrwehler at gmail.com> > > > > > Sendt: 19. oktober 2017 20:39:34 > > > > > Til: Access Developers discussion and problem solving > > > > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > > > > > > > > > Back story: > > > > > > > > > > We have an Access FE with a SQL Server back end. We push up a > > > relatively > > > > > small dataset (6000 rows total) up to our website for some updated > > > > > 'statistics' on client work. > > > > > > > > > > Right now my SQL server is on a shared windows host and pushing > those > > > > 6000 > > > > > rows takes anywhere from 1m30s to 2 minutes, usually! > > > > > > > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) > > for > > > > some > > > > > devs we have in Denmark to query off, it doesn't have to be updated > > so > > > it > > > > > doesn't do any log shipping or anything (not that azure supports > it, > > > from > > > > > what I can tell). > > > > > > > > > > > > > > > Anyway those same tables on my shared Windows hosting plan were > > created > > > > in > > > > > my azure instance and those very same queries take over 6 minutes! > > > > > > > > > > First off, it seems highly suspect that azure would be 3 times > > slower? > > > > > Secondly aside from WAN latency and such why would it even be > taking > > 2 > > > > > minutes to insert 6,000 rows across the WAN? Is there a way I can > > > speed > > > > > that up in either the shared server or the Azure server? > > > > > > > > > > > > > > > When I check the Azure DB statistics and "DTU usage" it's barely a > > blip > > > > on > > > > > the radar, so I'm not pegging my DTU allocation by any means. > > > > > > > > > > > > > > > When I query that information back out of Azure I pull down those > > 6,000 > > > > > rows in less than one second.. so it doesn't seem like my WAN is > > > > > necessarily the culprit. > > > > > -- > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Oct 30 11:27:35 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 09:27:35 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde Message-ID: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> Dear List: I have a form with a sub-form - the subform is datasheet view because the user needs to be able to change the column widths and order. This works in a mdb and an accdb - the changes are save so when the user returns to the form the altered order and widths are retained and displayed. But while the user can change the order and column widths in the mde and accde versions, the changes are not saved. Is there a workaround for this? MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From bensonforums at gmail.com Mon Oct 30 13:39:57 2017 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 30 Oct 2017 14:39:57 -0400 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> Message-ID: I don't think so. Column order defaults to the order in which the fields were added to the data sheet subform. Perhaps what you could do however is keep a table with their column and their user name, on the back end. Make the subform control's sourceobject an empty string, save the parent form. In the open event of the parent form, open the subform in design view (using VBA code), dynamically add fields in the order specified in the backend table, save, and close the local subform. Then in the Load event of the parent form, re-associate the sourceobject. I think at that point the subform's fields will be in the correct order. Bill On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because the > user needs to be able to change the column widths and order. This works in > a mdb and an accdb - the changes are save so when the user returns to the > form the altered order and widths are retained and displayed. > > > > But while the user can change the order and column widths in the mde and > accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Oct 30 13:50:50 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 11:50:50 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> Message-ID: <059601d351b0$0212b230$06381690$@bchacc.com> Bill: It has to work in an mde or accde. So I don't think I can open the form in design view. I also have to save the column widths. Further complication - there are 11 of these sub forms each for a different back end table and an option frame on the parent form with 11 buttons. When the user selects a different table I change the source of the subform objet. Works fine, though - I added an (admitted) kludge to save the field orders and widths. But it only worked in mdb/accdb not mde/accde. So I think if I can find a way to do one I can do all 11. T&R Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Monday, October 30, 2017 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde I don't think so. Column order defaults to the order in which the fields were added to the data sheet subform. Perhaps what you could do however is keep a table with their column and their user name, on the back end. Make the subform control's sourceobject an empty string, save the parent form. In the open event of the parent form, open the subform in design view (using VBA code), dynamically add fields in the order specified in the backend table, save, and close the local subform. Then in the Load event of the parent form, re-associate the sourceobject. I think at that point the subform's fields will be in the correct order. Bill On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Mon Oct 30 14:11:42 2017 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 30 Oct 2017 15:11:42 -0400 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <059601d351b0$0212b230$06381690$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> Message-ID: Rocky, Still I would go with the backend table to store the user's preferences. And of course, a bunch of code. You should be able to set the ColumnOrder property of each field in the subform, in that form's load event. The backend table would have SubformName SubFormField UserName OrderWhenLastClosed Update that table on close event of the subform. Bill On Mon, Oct 30, 2017 at 2:50 PM, Rocky Smolin wrote: > Bill: > > It has to work in an mde or accde. So I don't think I can open the form in > design view. I also have to save the column widths. > > Further complication - there are 11 of these sub forms each for a different > back end table and an option frame on the parent form with 11 buttons. > When > the user selects a different table I change the source of the subform > objet. > Works fine, though - I added an (admitted) kludge to save the field orders > and widths. But it only worked in mdb/accdb not mde/accde. > > So I think if I can find a way to do one I can do all 11. > > T&R > > Rocky > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bill Benson > Sent: Monday, October 30, 2017 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > I don't think so. Column order defaults to the order in which the fields > were added to the data sheet subform. Perhaps what you could do however is > keep a table with their column and their user name, on the back end. > > Make the subform control's sourceobject an empty string, save the parent > form. > > In the open event of the parent form, open the subform in design view > (using > VBA code), dynamically add fields in the order specified in the backend > table, save, and close the local subform. Then in the Load event of the > parent form, re-associate the sourceobject. > > I think at that point the subform's fields will be in the correct order. > > Bill > > On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin > wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view because > > the user needs to be able to change the column widths and order. This > > works in a mdb and an accdb - the changes are save so when the user > > returns to the form the altered order and widths are retained and > displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wrwehler at gmail.com Mon Oct 30 14:54:32 2017 From: wrwehler at gmail.com (Ryan W) Date: Mon, 30 Oct 2017 14:54:32 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: I kind of took this idea and ran with it. I was able to get the time down to 5 seconds for one table (500 records) but the larger 6000 row table is giving me fits because there are nulls. So when I start wrapping colums in IsNull() it slows down the processing even more. I'll have to look into the XML route, perhaps. On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder wrote: > > Doing regular inserts against a linked table would take ages. So, instead I > added code in the frontend which looped the local recordsets, wrote a SQL > passthrough string like so: > Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) > Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) > Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) > > From thesmileycoder at gmail.com Mon Oct 30 15:43:06 2017 From: thesmileycoder at gmail.com (Anders Ebro (TheSmileyCoder)) Date: Mon, 30 Oct 2017 21:43:06 +0100 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <059601d351b0$0212b230$06381690$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> Message-ID: Are you still using mde? Sent from my mobile device, and thus kept brief. On 30 Oct 2017, at 19.50, Rocky Smolin wrote: Bill: It has to work in an mde or accde. So I don't think I can open the form in design view. I also have to save the column widths. Further complication - there are 11 of these sub forms each for a different back end table and an option frame on the parent form with 11 buttons. When the user selects a different table I change the source of the subform objet. Works fine, though - I added an (admitted) kludge to save the field orders and widths. But it only worked in mdb/accdb not mde/accde. So I think if I can find a way to do one I can do all 11. T&R Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Monday, October 30, 2017 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde I don't think so. Column order defaults to the order in which the fields were added to the data sheet subform. Perhaps what you could do however is keep a table with their column and their user name, on the back end. Make the subform control's sourceobject an empty string, save the parent form. In the open event of the parent form, open the subform in design view (using VBA code), dynamically add fields in the order specified in the backend table, save, and close the local subform. Then in the Load event of the parent form, re-associate the sourceobject. I think at that point the subform's fields will be in the correct order. Bill On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Oct 30 15:47:02 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 31 Oct 2017 06:47:02 +1000 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com>, Message-ID: <59F78FC6.21436.121AE78F@stuart.lexacorp.com.pg> If you save the column order and widths in "On_Close", try setting them in "on_open" with Me.ControlName.ColumnOrder = xxx etc. On 30 Oct 2017 at 14:39, Bill Benson wrote: > I don't think so. Column order defaults to the order in which the > fields were added to the data sheet subform. Perhaps what you could do > however is keep a table with their column and their user name, on the > back end. > > Make the subform control's sourceobject an empty string, save the > parent form. > > In the open event of the parent form, open the subform in design view > (using VBA code), dynamically add fields in the order specified in the > backend table, save, and close the local subform. Then in the Load > event of the parent form, re-associate the sourceobject. > > I think at that point the subform's fields will be in the correct > order. > > Bill > > On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin > wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view > > because the user needs to be able to change the column widths and > > order. This works in a mdb and an accdb - the changes are save so > > when the user returns to the form the altered order and widths are > > retained and displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Oct 30 15:57:41 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 31 Oct 2017 06:57:41 +1000 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> Message-ID: <59F79245.32318.1224A764@stuart.lexacorp.com.pg> Just found this - turns out you need to manipulate the Registry!!! http://www.databasejournal.com/features/msaccess/article.php/3627056/Save-and-Retrieve- Datasheet-Layout-with-the-Windows-Registry.htm "In addition to the scenario I described above, this process must be followed if you want to allow users to modify datasheet layout when they are using a compiled MDE version of your Access applications. Since the design view is locked in an MDE, users cannot save "changes" to the form. They can move around columns and resize them, but once the form is closed, the changes are lost forever. The only way around it is to implement the code I show below. " ... "The data for each datasheet's settings are stored in the Windows Registry under a key with the name of the datasheet. The LoadUserColumnSetup pulls that data and applies it, while the SaveUserColumnSetup writes the latest data back to the Registry. Each of those functions take an Access.Form variable, which can be identified by the Me object to simplify the application of the code. Below is a listing of all the code involved. Comments interspersed will explain the process. " ... On 30 Oct 2017 at 9:27, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and > displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Oct 30 16:09:48 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 14:09:48 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> Message-ID: <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> Yes but it could be sent in accde. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Anders Ebro (TheSmileyCoder) Sent: Monday, October 30, 2017 1:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Are you still using mde? Sent from my mobile device, and thus kept brief. On 30 Oct 2017, at 19.50, Rocky Smolin wrote: Bill: It has to work in an mde or accde. So I don't think I can open the form in design view. I also have to save the column widths. Further complication - there are 11 of these sub forms each for a different back end table and an option frame on the parent form with 11 buttons. When the user selects a different table I change the source of the subform objet. Works fine, though - I added an (admitted) kludge to save the field orders and widths. But it only worked in mdb/accdb not mde/accde. So I think if I can find a way to do one I can do all 11. T&R Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Monday, October 30, 2017 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde I don't think so. Column order defaults to the order in which the fields were added to the data sheet subform. Perhaps what you could do however is keep a table with their column and their user name, on the back end. Make the subform control's sourceobject an empty string, save the parent form. In the open event of the parent form, open the subform in design view (using VBA code), dynamically add fields in the order specified in the backend table, save, and close the local subform. Then in the Load event of the parent form, re-associate the sourceobject. I think at that point the subform's fields will be in the correct order. Bill On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wrwehler at gmail.com Mon Oct 30 10:25:44 2017 From: wrwehler at gmail.com (Ryan W) Date: Mon, 30 Oct 2017 10:25:44 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: So I basically took your idea of sending a batch of insert into lines to the linked server table. I pulled everything into a #TempTable (SQL Server) Then made a big while loop (this table only had 360 ish rows) It appears to have taken about 48 seconds to execute the statement which was 45,663 characters long (347 lines) . This is to my poor little 'shared' web server so I think I actually got worse performance in this case since I still didn't upload my 6000 row table and spent about 50% of the time it usually does doing the smaller of the two tables. On Mon, Oct 30, 2017 at 9:32 AM, Ryan W wrote: > Looks like under 90ms to the datacenter I'm at. The closest bobbles up and > down between mid 30s to mid 80s... > > I'm in "West US 2" I think.. I don't remember having a choice when I set > up the DB or I'd had set it up closer to me geographically. > > > > On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder < > thesmileycoder at gmail.com> wrote: > >> You can try this site: >> http://www.azurespeed.com/ >> From my current position at a client (which has an intense firewall, and >> possibly also some software gateway tool which slows down) most of the >> european datacenters had a latency in the 500-1000ms range. >> >> When I connect from my own home PC, or office PC, they have a latency >> around 150-400, so significantly lower. >> >> I am guessing the performance changes you see, is more related to latency >> than it is to the performance SLA of the server. >> >> >> >> I remember a while ago I did an interface which pulled and pushed in the >> 10k amount of records to and from a hosted mySQL on a shite webserver. The >> program would pull 10k rows, do some excel magic using the built in >> forecasting, then upload the results. >> Doing regular inserts against a linked table would take ages. So, instead >> I >> added code in the frontend which looped the local recordsets, wrote a SQL >> passthrough string like so: >> Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) >> Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) >> Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) >> >> Then I would execute that sql string against the server. >> I don't really know if it was required, but I added a check on the length >> of the statement, and if it reached 50K characters, it would fire the SQL, >> then start a new string for the remained of the records. >> The upload for all 10k records took maybe 1.5 seconds including the loop >> of >> the recordsets, and writing of the SQL string. >> >> Another option I've heard from other places is to use XML for the upload, >> but never tried that. >> >> >> >> Best regards >> Anders Ebro // TheSmileyCoder >> Access MVP 2014-2018 >> >> >> On Mon, Oct 30, 2017 at 2:31 PM, Ryan W wrote: >> >> > I can't ping it unfortunately. Azure probably has a firewall rule up to >> > block pings. >> > >> > >> > >> > On Mon, Oct 30, 2017 at 5:28 AM, The Smiley Coder < >> > thesmileycoder at gmail.com> >> > wrote: >> > >> > > Curious Ryan, what is the ping time for both servers? I've found that >> > with >> > > a bit of work, and some design principles, I can get my local access >> app >> > to >> > > run against SQL azure so fast you can't tell it is not local. >> > > >> > > Best regards >> > > Anders Ebro // TheSmileyCoder >> > > Access MVP 2014-2018 >> > > >> > > >> > > On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: >> > > >> > > > Gustav, >> > > > The kicker there is my $10/mo "Shared Windows Hosting", with a >> Shared >> > > SQL >> > > > Server with MANY MANY users on it is faster. I realize Azure is a >> > > "shared" >> > > > nature too.. but with SOME resources that are for your account only >> > > (like a >> > > > mini virtual machine, of sorts)... where on the shared hosting >> that's >> > not >> > > > the case.. anyone can cause the server you are on to bottleneck and >> > cause >> > > > grief. >> > > > >> > > > I would have thought that the S0 or S1 Azure plan would exceed the >> > > shared >> > > > windows hosting plan I have over at HostGator... I was only >> testing >> > to >> > > > see if my 1-2 minute "insert into" time with HostGator was atypical >> or >> > > > not. Turns out I'm not doing as bad as I could be, I suppose. >> > > > >> > > > >> > > > >> > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock >> > wrote: >> > > > >> > > > > Hi Ryan >> > > > > >> > > > > We have some small Azure SQL instances running for testing >> purposes, >> > > and >> > > > > they are very slow. Straight reading is relatively fast, but >> anything >> > > > else >> > > > > is painfully slow. Except for some simple views, we don't run >> > anything >> > > > else >> > > > > on the Azure SQL engine. >> > > > > >> > > > > The positive aspect of this is, that it is a very effective >> method to >> > > > > pinpoint bottlenecks. If you can run a form off the Azure SQL at >> good >> > > > > speed, it will run blazingly fast off a local SQL Server. And what >> > you >> > > > > think you can away with using a fast local server, will kick you >> hard >> > > > when >> > > > > moved to Azure SQL. >> > > > > >> > > > > I guess that using a larger instance would prove much better >> results, >> > > but >> > > > > the costs rise quite quickly. I miss a small, fast, and free >> > instance. >> > > > > >> > > > > /gustav >> > > > > >> > > > > ________________________________________ >> > > > > Fra: AccessD p? vegne af >> Ryan >> > > W < >> > > > > wrwehler at gmail.com> >> > > > > Sendt: 19. oktober 2017 20:39:34 >> > > > > Til: Access Developers discussion and problem solving >> > > > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow >> > > > > >> > > > > Back story: >> > > > > >> > > > > We have an Access FE with a SQL Server back end. We push up a >> > > relatively >> > > > > small dataset (6000 rows total) up to our website for some updated >> > > > > 'statistics' on client work. >> > > > > >> > > > > Right now my SQL server is on a shared windows host and pushing >> those >> > > > 6000 >> > > > > rows takes anywhere from 1m30s to 2 minutes, usually! >> > > > > >> > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) >> > for >> > > > some >> > > > > devs we have in Denmark to query off, it doesn't have to be >> updated >> > so >> > > it >> > > > > doesn't do any log shipping or anything (not that azure supports >> it, >> > > from >> > > > > what I can tell). >> > > > > >> > > > > >> > > > > Anyway those same tables on my shared Windows hosting plan were >> > created >> > > > in >> > > > > my azure instance and those very same queries take over 6 minutes! >> > > > > >> > > > > First off, it seems highly suspect that azure would be 3 times >> > slower? >> > > > > Secondly aside from WAN latency and such why would it even be >> taking >> > 2 >> > > > > minutes to insert 6,000 rows across the WAN? Is there a way I can >> > > speed >> > > > > that up in either the shared server or the Azure server? >> > > > > >> > > > > >> > > > > When I check the Azure DB statistics and "DTU usage" it's barely a >> > blip >> > > > on >> > > > > the radar, so I'm not pegging my DTU allocation by any means. >> > > > > >> > > > > >> > > > > When I query that information back out of Azure I pull down those >> > 6,000 >> > > > > rows in less than one second.. so it doesn't seem like my WAN is >> > > > > necessarily the culprit. >> > > > > -- >> > > > > AccessD mailing list >> > > > > AccessD at databaseadvisors.com >> > > > > http://databaseadvisors.com/mailman/listinfo/accessd >> > > > > Website: http://www.databaseadvisors.com >> > > > > >> > > > -- >> > > > AccessD mailing list >> > > > AccessD at databaseadvisors.com >> > > > http://databaseadvisors.com/mailman/listinfo/accessd >> > > > Website: http://www.databaseadvisors.com >> > > > >> > > -- >> > > AccessD mailing list >> > > AccessD at databaseadvisors.com >> > > http://databaseadvisors.com/mailman/listinfo/accessd >> > > Website: http://www.databaseadvisors.com >> > > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From thesmileycoder at gmail.com Mon Oct 30 16:36:20 2017 From: thesmileycoder at gmail.com (The Smiley Coder) Date: Mon, 30 Oct 2017 22:36:20 +0100 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> Message-ID: You could try the code in the attached zip file. I can't take credit for it myself though, a co-worker wrote it. I've attached both the accde and the accdb. Seems simple but effective. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Mon, Oct 30, 2017 at 10:09 PM, Rocky Smolin wrote: > Yes but it could be sent in accde. > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Anders Ebro (TheSmileyCoder) > Sent: Monday, October 30, 2017 1:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > Are you still using mde? > > Sent from my mobile device, and thus kept brief. > > On 30 Oct 2017, at 19.50, Rocky Smolin wrote: > > Bill: > > It has to work in an mde or accde. So I don't think I can open the form in > design view. I also have to save the column widths. > > Further complication - there are 11 of these sub forms each for a different > back end table and an option frame on the parent form with 11 buttons. > When > the user selects a different table I change the source of the subform > objet. > Works fine, though - I added an (admitted) kludge to save the field orders > and widths. But it only worked in mdb/accdb not mde/accde. > > So I think if I can find a way to do one I can do all 11. > > T&R > > Rocky > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bill Benson > Sent: Monday, October 30, 2017 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > I don't think so. Column order defaults to the order in which the fields > were added to the data sheet subform. Perhaps what you could do however is > keep a table with their column and their user name, on the back end. > > Make the subform control's sourceobject an empty string, save the parent > form. > > In the open event of the parent form, open the subform in design view > (using > VBA code), dynamically add fields in the order specified in the backend > table, save, and close the local subform. Then in the Load event of the > parent form, re-associate the sourceobject. > > I think at that point the subform's fields will be in the correct order. > > Bill > > On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin > wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view because > > the user needs to be able to change the column widths and order. This > > works in a mdb and an accdb - the changes are save so when the user > > returns to the form the altered order and widths are retained and > displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Mon Oct 30 17:03:39 2017 From: tinanfields at torchlake.com (Tina N Fields) Date: Mon, 30 Oct 2017 18:03:39 -0400 Subject: [AccessD] FW: Heads-up!!! In-Reply-To: <05e101d3517b$fc14df90$f43e9eb0$@verizon.net> References: <05e101d3517b$fc14df90$f43e9eb0$@verizon.net> Message-ID: <6732f119-8ad7-e892-e1db-65095e42e072@torchlake.com> Thanks so much, Jim. Did it when you sent out your first heads up. Really appreciate it. T Tina Norris Fields 231-322-2787 tinanfields-at-torchlake-dot-com On 10/30/2017 8:38 AM, Jim Dettman wrote: > Just a reminder on this as you only have today and tomorrow. > > You might also want to download SP1, SP2, and SP3 for Office 2007 as a > whole if you have not, and the SP's for Access standalone. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Dettman > Sent: Thursday, October 12, 2017 04:54 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Heads-up!!! > > This is a heads up that the following Access components available as > standalone downloads are moving past extended support in the near future and > along with other Office 2007 products, will not be available for download > after that time. > > If you have any software that depends on the 2007 (32bit) database engine > or the 2007 run time, you'll want to download these as soon as possible so > you have them. > > . Access 2007 runtime - > > https://www.microsoft.com/en-us/download/details.aspx?id=4438 > . Office Data Connectivity Components (ACE) - > 7-49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751b > e11f-ede8-5a0c-058c-2ee190a24fa6=True> > https://www.microsoft.com/en-us/download/details.aspx?id=23734&40ddd5bd-f9e7 > -49a6-3526-f86656931a02=True&a03ffa40-ca8b-4f73-0358-c191d75a7468=True&751be > 11f-ede8-5a0c-058c-2ee190a24fa6=True > . ADE - > > https://www.microsoft.com/en-us/download/details.aspx?id=24569 (includes the > packaging wizard, source code control, and the save as template > functionality) > > > > Jim. > > > > > From garykjos at gmail.com Mon Oct 30 17:05:15 2017 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 30 Oct 2017 17:05:15 -0500 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> Message-ID: Sorry Anders. No attachments allowed on the list. You can perhaps send it to Rocky directly. GK On Mon, Oct 30, 2017 at 4:36 PM, The Smiley Coder wrote: > You could try the code in the attached zip file. I can't take credit for it > myself though, a co-worker wrote it. I've attached both the accde and the > accdb. Seems simple but effective. > > Best regards > Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > > > On Mon, Oct 30, 2017 at 10:09 PM, Rocky Smolin > wrote: > >> Yes but it could be sent in accde. >> >> r >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Anders Ebro (TheSmileyCoder) >> Sent: Monday, October 30, 2017 1:43 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Changing Column Width and Order in mde or accde >> >> Are you still using mde? >> >> Sent from my mobile device, and thus kept brief. >> >> On 30 Oct 2017, at 19.50, Rocky Smolin wrote: >> >> Bill: >> >> It has to work in an mde or accde. So I don't think I can open the form in >> design view. I also have to save the column widths. >> >> Further complication - there are 11 of these sub forms each for a different >> back end table and an option frame on the parent form with 11 buttons. >> When >> the user selects a different table I change the source of the subform >> objet. >> Works fine, though - I added an (admitted) kludge to save the field orders >> and widths. But it only worked in mdb/accdb not mde/accde. >> >> So I think if I can find a way to do one I can do all 11. >> >> T&R >> >> Rocky >> >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Bill Benson >> Sent: Monday, October 30, 2017 11:40 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Changing Column Width and Order in mde or accde >> >> I don't think so. Column order defaults to the order in which the fields >> were added to the data sheet subform. Perhaps what you could do however is >> keep a table with their column and their user name, on the back end. >> >> Make the subform control's sourceobject an empty string, save the parent >> form. >> >> In the open event of the parent form, open the subform in design view >> (using >> VBA code), dynamically add fields in the order specified in the backend >> table, save, and close the local subform. Then in the Load event of the >> parent form, re-associate the sourceobject. >> >> I think at that point the subform's fields will be in the correct order. >> >> Bill >> >> On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin >> wrote: >> >> > Dear List: >> > >> > >> > >> > I have a form with a sub-form - the subform is datasheet view because >> > the user needs to be able to change the column widths and order. This >> > works in a mdb and an accdb - the changes are save so when the user >> > returns to the form the altered order and widths are retained and >> displayed. >> > >> > >> > >> > But while the user can change the order and column widths in the mde >> > and accde versions, the changes are not saved. >> > >> > >> > >> > Is there a workaround for this? >> > >> > >> > >> > MTIA >> > >> > >> > >> > >> > >> > Rocky Smolin >> > >> > Beach Access Software >> > >> > 760-683-5777 >> > >> > www.bchacc.com >> > >> > www.e-z-mrp.com >> > >> > Skype: rocky.smolin >> > >> > >> > >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Gary Kjos garykjos at gmail.com From bensonforums at gmail.com Mon Oct 30 17:52:09 2017 From: bensonforums at gmail.com (Bill Benson) Date: Mon, 30 Oct 2017 18:52:09 -0400 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> Message-ID: Hoe about putting it up on Google Drive or Dropbox and posting a link? I'd love to have a peek at it Anders. On Mon, Oct 30, 2017 at 6:05 PM, Gary Kjos wrote: > Sorry Anders. No attachments allowed on the list. You can perhaps > send it to Rocky directly. > > GK > > On Mon, Oct 30, 2017 at 4:36 PM, The Smiley Coder > wrote: > > You could try the code in the attached zip file. I can't take credit for > it > > myself though, a co-worker wrote it. I've attached both the accde and the > > accdb. Seems simple but effective. > > > > Best regards > > Anders Ebro // TheSmileyCoder > > Access MVP 2014-2018 > > > > > > On Mon, Oct 30, 2017 at 10:09 PM, Rocky Smolin > > wrote: > > > >> Yes but it could be sent in accde. > >> > >> r > >> > >> -----Original Message----- > >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of > >> Anders Ebro (TheSmileyCoder) > >> Sent: Monday, October 30, 2017 1:43 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > >> > >> Are you still using mde? > >> > >> Sent from my mobile device, and thus kept brief. > >> > >> On 30 Oct 2017, at 19.50, Rocky Smolin wrote: > >> > >> Bill: > >> > >> It has to work in an mde or accde. So I don't think I can open the > form in > >> design view. I also have to save the column widths. > >> > >> Further complication - there are 11 of these sub forms each for a > different > >> back end table and an option frame on the parent form with 11 buttons. > >> When > >> the user selects a different table I change the source of the subform > >> objet. > >> Works fine, though - I added an (admitted) kludge to save the field > orders > >> and widths. But it only worked in mdb/accdb not mde/accde. > >> > >> So I think if I can find a way to do one I can do all 11. > >> > >> T&R > >> > >> Rocky > >> > >> > >> -----Original Message----- > >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of > >> Bill Benson > >> Sent: Monday, October 30, 2017 11:40 AM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > >> > >> I don't think so. Column order defaults to the order in which the fields > >> were added to the data sheet subform. Perhaps what you could do however > is > >> keep a table with their column and their user name, on the back end. > >> > >> Make the subform control's sourceobject an empty string, save the parent > >> form. > >> > >> In the open event of the parent form, open the subform in design view > >> (using > >> VBA code), dynamically add fields in the order specified in the backend > >> table, save, and close the local subform. Then in the Load event of the > >> parent form, re-associate the sourceobject. > >> > >> I think at that point the subform's fields will be in the correct order. > >> > >> Bill > >> > >> On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin > >> wrote: > >> > >> > Dear List: > >> > > >> > > >> > > >> > I have a form with a sub-form - the subform is datasheet view because > >> > the user needs to be able to change the column widths and order. This > >> > works in a mdb and an accdb - the changes are save so when the user > >> > returns to the form the altered order and widths are retained and > >> displayed. > >> > > >> > > >> > > >> > But while the user can change the order and column widths in the mde > >> > and accde versions, the changes are not saved. > >> > > >> > > >> > > >> > Is there a workaround for this? > >> > > >> > > >> > > >> > MTIA > >> > > >> > > >> > > >> > > >> > > >> > Rocky Smolin > >> > > >> > Beach Access Software > >> > > >> > 760-683-5777 > >> > > >> > www.bchacc.com > >> > > >> > www.e-z-mrp.com > >> > > >> > Skype: rocky.smolin > >> > > >> > > >> > > >> > > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Oct 30 18:54:50 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 16:54:50 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <59F79245.32318.1224A764@stuart.lexacorp.com.pg> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <59F79245.32318.1224A764@stuart.lexacorp.com.pg> Message-ID: <05e101d351da$79e6b700$6db42500$@bchacc.com> That's remarkable! Or could be - I'll know better when I can get to their site ('An error occurred while processing my request') I'll check again later. Does the link open for you? R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, October 30, 2017 1:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! http://www.databasejournal.com/features/msaccess/article.php/3627056/Save-an d-Retrieve- Datasheet-Layout-with-the-Windows-Registry.htm "In addition to the scenario I described above, this process must be followed if you want to allow users to modify datasheet layout when they are using a compiled MDE version of your Access applications. Since the design view is locked in an MDE, users cannot save "changes" to the form. They can move around columns and resize them, but once the form is closed, the changes are lost forever. The only way around it is to implement the code I show below. " ... "The data for each datasheet's settings are stored in the Windows Registry under a key with the name of the datasheet. The LoadUserColumnSetup pulls that data and applies it, while the SaveUserColumnSetup writes the latest data back to the Registry. Each of those functions take an Access.Form variable, which can be identified by the Me object to simplify the application of the code. Below is a listing of all the code involved. Comments interspersed will explain the process. " ... On 30 Oct 2017 at 9:27, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and > displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Oct 30 18:56:16 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 16:56:16 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <059601d351b0$0212b230$06381690$@bchacc.com> <05c401d351c3$6b5c4cc0$4214e640$@bchacc.com> Message-ID: <05fa01d351da$ad201e40$07605ac0$@bchacc.com> Anders: Thank you. I'll give it a go. Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of The Smiley Coder Sent: Monday, October 30, 2017 2:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde You could try the code in the attached zip file. I can't take credit for it myself though, a co-worker wrote it. I've attached both the accde and the accdb. Seems simple but effective. Best regards Anders Ebro // TheSmileyCoder Access MVP 2014-2018 On Mon, Oct 30, 2017 at 10:09 PM, Rocky Smolin wrote: > Yes but it could be sent in accde. > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Anders Ebro (TheSmileyCoder) > Sent: Monday, October 30, 2017 1:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > Are you still using mde? > > Sent from my mobile device, and thus kept brief. > > On 30 Oct 2017, at 19.50, Rocky Smolin wrote: > > Bill: > > It has to work in an mde or accde. So I don't think I can open the > form in design view. I also have to save the column widths. > > Further complication - there are 11 of these sub forms each for a > different back end table and an option frame on the parent form with 11 buttons. > When > the user selects a different table I change the source of the subform > objet. > Works fine, though - I added an (admitted) kludge to save the field > orders and widths. But it only worked in mdb/accdb not mde/accde. > > So I think if I can find a way to do one I can do all 11. > > T&R > > Rocky > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bill Benson > Sent: Monday, October 30, 2017 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > I don't think so. Column order defaults to the order in which the > fields were added to the data sheet subform. Perhaps what you could do > however is keep a table with their column and their user name, on the back end. > > Make the subform control's sourceobject an empty string, save the > parent form. > > In the open event of the parent form, open the subform in design view > (using VBA code), dynamically add fields in the order specified in the > backend table, save, and close the local subform. Then in the Load > event of the parent form, re-associate the sourceobject. > > I think at that point the subform's fields will be in the correct order. > > Bill > > On Mon, Oct 30, 2017 at 12:27 PM, Rocky Smolin > > wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view > > because the user needs to be able to change the column widths and > > order. This works in a mdb and an accdb - the changes are save so > > when the user returns to the form the altered order and widths are > > retained and > displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 30 19:01:40 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 31 Oct 2017 10:01:40 +1000 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <05e101d351da$79e6b700$6db42500$@bchacc.com> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com>, <59F79245.32318.1224A764@stuart.lexacorp.com.pg>, <05e101d351da$79e6b700$6db42500$@bchacc.com> Message-ID: <59F7BD64.28416.12CD18EF@stuart.lexacorp.com.pg> Yes, but watch for line break and/or a space in that long URL. Here's the TinyURL http://tinyurl.com/ydb4ld89 On 30 Oct 2017 at 16:54, Rocky Smolin wrote: > That's remarkable! Or could be - I'll know better when I can get to > their site ('An error occurred while processing my request') > > I'll check again later. Does the link open for you? > > R > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Monday, October 30, 2017 1:58 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Changing Column Width and Order in mde or accde > > Just found this - turns out you need to manipulate the Registry!!! > > http://www.databasejournal.com/features/msaccess/article.php/3627056/S > ave-an d-Retrieve- Datasheet-Layout-with-the-Windows-Registry.htm > > "In addition to the scenario I described above, this process must be > followed if you want to allow users to modify datasheet layout when > they are using a compiled MDE version of your Access applications. > Since the design view is locked in an MDE, users cannot save "changes" > to the form. They can move around columns and resize them, but once > the form is closed, the changes are lost forever. The only way around > it is to implement the code I show below. " ... "The data for each > datasheet's settings are stored in the Windows Registry under a key > with the name of the datasheet. The LoadUserColumnSetup pulls that > data and applies it, while the SaveUserColumnSetup writes the latest > data back to the Registry. Each of those functions take an Access.Form > variable, which can be identified by the Me object to simplify the > application of the code. Below is a listing of all the code involved. > Comments interspersed will explain the process. " ... > > > On 30 Oct 2017 at 9:27, Rocky Smolin wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view > > because the user needs to be able to change the column widths and > > order. This works in a mdb and an accdb - the changes are save so > > when the user returns to the form the altered order and widths are > > retained and displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Oct 30 19:18:38 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Oct 2017 17:18:38 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <59F7BD64.28416.12CD18EF@stuart.lexacorp.com.pg> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com>, <59F79245.32318.1224A764@stuart.lexacorp.com.pg>, <05e101d351da$79e6b700$6db42500$@bchacc.com> <59F7BD64.28416.12CD18EF@stuart.lexacorp.com.pg> Message-ID: <060801d351dd$ccf755a0$66e600e0$@bchacc.com> I saw the line break - pasted in the whole URL. Fail. Anyway, the tinyurl worked. Thanks R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, October 30, 2017 5:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Yes, but watch for line break and/or a space in that long URL. Here's the TinyURL http://tinyurl.com/ydb4ld89 On 30 Oct 2017 at 16:54, Rocky Smolin wrote: > That's remarkable! Or could be - I'll know better when I can get to > their site ('An error occurred while processing my request') > > I'll check again later. Does the link open for you? > > R > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Stuart McLachlan Sent: Monday, October 30, 2017 1:58 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] > Changing Column Width and Order in mde or accde > > Just found this - turns out you need to manipulate the Registry!!! > > http://www.databasejournal.com/features/msaccess/article.php/3627056/S > ave-an d-Retrieve- Datasheet-Layout-with-the-Windows-Registry.htm > > "In addition to the scenario I described above, this process must be > followed if you want to allow users to modify datasheet layout when > they are using a compiled MDE version of your Access applications. > Since the design view is locked in an MDE, users cannot save "changes" > to the form. They can move around columns and resize them, but once > the form is closed, the changes are lost forever. The only way around > it is to implement the code I show below. " ... "The data for each > datasheet's settings are stored in the Windows Registry under a key > with the name of the datasheet. The LoadUserColumnSetup pulls that > data and applies it, while the SaveUserColumnSetup writes the latest > data back to the Registry. Each of those functions take an Access.Form > variable, which can be identified by the Me object to simplify the > application of the code. Below is a listing of all the code involved. > Comments interspersed will explain the process. " ... > > > On 30 Oct 2017 at 9:27, Rocky Smolin wrote: > > > Dear List: > > > > > > > > I have a form with a sub-form - the subform is datasheet view > > because the user needs to be able to change the column widths and > > order. This works in a mdb and an accdb - the changes are save so > > when the user returns to the form the altered order and widths are > > retained and displayed. > > > > > > > > But while the user can change the order and column widths in the mde > > and accde versions, the changes are not saved. > > > > > > > > Is there a workaround for this? > > > > > > > > MTIA > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 760-683-5777 > > > > www.bchacc.com > > > > www.e-z-mrp.com > > > > Skype: rocky.smolin > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Oct 31 02:33:54 2017 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2017 07:33:54 +0000 Subject: [AccessD] Changing Column Width and Order in mde or accde Message-ID: Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! From stuart at lexacorp.com.pg Tue Oct 31 03:09:57 2017 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 31 Oct 2017 18:09:57 +1000 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: Message-ID: <59F82FD5.11295.148C22E6@stuart.lexacorp.com.pg> You're correct. That link uses the the fact that Access stores that data in the registry, but there is no reason you can't store and retrieve it yourself from somewhere else. On 31 Oct 2017 at 7:33, Gustav Brock wrote: > Hi Stuart > > Oh no. "All you need" is to read and save the properties of the > columns to a set (a tree) of tables before closing the form, then read > from the tables and restore the settings when opening the form. > > I once wrote a full system for a client who wanted this feature. It > went a bit like this: > > ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden > 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 > 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk > 5 1 DimensionElementProportion 5 2850 Falsk > > Those basic settings are not difficult. The challenge is the get hold > on frozen columns. Sort order for each column was also added. > > I considered writing an article about this but gave up, as the setup > was heavily intermixed with application settings for Format and > Conditional Formatting, as well as default settings which - and this > is important - the user could choose to revert to in case he/she got > the layout garbled beyond easy restoring at the user level. > > Add to this maintenance of the settings. It was a large application > and just about all forms had subforms in datasheetview. We made a > function to rebuild all the current settings as default settings; this > function was called when the user belonged to the developer group of > users. > > /gustav > > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers > discussion and problem solving Emne: > Re: [AccessD] Changing Column Width and Order in mde or accde > > Just found this - turns out you need to manipulate the Registry!!! > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Tue Oct 31 11:42:46 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 31 Oct 2017 09:42:46 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: Message-ID: <068701d35267$48424c90$d8c6e5b0$@bchacc.com> So before I got all these brilliant solutions but after I found out that the you can't do design changes in an mde/accde, I called the client who said he did not need to make changes to the order and widths after he got them dialed in. So I said, OK send me the order of each of the 11 tables and your best estimate of width. I'll set them and after a couple of iterations we should have what he wants. However, even though I can't charge him for the privilege, I'll probably implement one of these solutions for my own satisfaction and to have that in my back pocket. The question doesn't come up often in conversation - like never during the last 20 years I've been doing Access development - but it's a cool solution so it should be in the toolbox. Many thanks to all who responded. Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2017 12:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 15:09:36 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 14:09:36 -0600 (MDT) Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: <1880680902.5362260.1509480576807.JavaMail.zimbra@shaw.ca> You could of course pre-translate the data before pushing it out. Would changing a null to a "" or 0 (an empty) be more efficient? Please tell me you are not using pass-through queries to move the data. Jim ----- Original Message ----- From: "Ryan W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2017 12:54:32 PM Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow I kind of took this idea and ran with it. I was able to get the time down to 5 seconds for one table (500 records) but the larger 6000 row table is giving me fits because there are nulls. So when I start wrapping colums in IsNull() it slows down the processing even more. I'll have to look into the XML route, perhaps. On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder wrote: > > Doing regular inserts against a linked table would take ages. So, instead I > added code in the frontend which looped the local recordsets, wrote a SQL > passthrough string like so: > Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) > Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) > Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 15:26:48 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 14:26:48 -0600 (MDT) Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <59F82FD5.11295.148C22E6@stuart.lexacorp.com.pg> References: <59F82FD5.11295.148C22E6@stuart.lexacorp.com.pg> Message-ID: <738131905.5405755.1509481608635.JavaMail.zimbra@shaw.ca> Very good answer. Aside: How do you think MS Access runs so well on a Linux box(?)...it must be constantly tricked with work arounds. ;-) Jim ----- Original Message ----- From: "stuart" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 1:09:57 AM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde You're correct. That link uses the the fact that Access stores that data in the registry, but there is no reason you can't store and retrieve it yourself from somewhere else. On 31 Oct 2017 at 7:33, Gustav Brock wrote: > Hi Stuart > > Oh no. "All you need" is to read and save the properties of the > columns to a set (a tree) of tables before closing the form, then read > from the tables and restore the settings when opening the form. > > I once wrote a full system for a client who wanted this feature. It > went a bit like this: > > ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden > 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 > 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk > 5 1 DimensionElementProportion 5 2850 Falsk > > Those basic settings are not difficult. The challenge is the get hold > on frozen columns. Sort order for each column was also added. > > I considered writing an article about this but gave up, as the setup > was heavily intermixed with application settings for Format and > Conditional Formatting, as well as default settings which - and this > is important - the user could choose to revert to in case he/she got > the layout garbled beyond easy restoring at the user level. > > Add to this maintenance of the settings. It was a large application > and just about all forms had subforms in datasheetview. We made a > function to rebuild all the current settings as default settings; this > function was called when the user belonged to the developer group of > users. > > /gustav > > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers > discussion and problem solving Emne: > Re: [AccessD] Changing Column Width and Order in mde or accde > > Just found this - turns out you need to manipulate the Registry!!! > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 15:39:32 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 14:39:32 -0600 (MDT) Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: References: Message-ID: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca> An excellent method to save your last position. I did a similar process many years ago with VB. Had a module that would open a registry set and then loop around pushing all global variables and position variable into the stack. When the application opened again, even after a system update, each user would have the environment they exited with...if they so chose. Unfortunately, even with the best efforts it was never a hundred percent. We do now have some excellent sync tools which could make much of that type of work redundant. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 12:33:54 AM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 15:56:16 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 14:56:16 -0600 (MDT) Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <59F79245.32318.1224A764@stuart.lexacorp.com.pg> References: <055701d3519b$feb4aa30$fc1dfe90$@bchacc.com> <59F79245.32318.1224A764@stuart.lexacorp.com.pg> Message-ID: <768433930.5483657.1509483376300.JavaMail.zimbra@shaw.ca> That's a great link. Will keep this post for future reference. Jim ----- Original Message ----- From: "stuart" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2017 1:57:41 PM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! http://www.databasejournal.com/features/msaccess/article.php/3627056/Save-and-Retrieve- Datasheet-Layout-with-the-Windows-Registry.htm "In addition to the scenario I described above, this process must be followed if you want to allow users to modify datasheet layout when they are using a compiled MDE version of your Access applications. Since the design view is locked in an MDE, users cannot save "changes" to the form. They can move around columns and resize them, but once the form is closed, the changes are lost forever. The only way around it is to implement the code I show below. " ... "The data for each datasheet's settings are stored in the Windows Registry under a key with the name of the datasheet. The LoadUserColumnSetup pulls that data and applies it, while the SaveUserColumnSetup writes the latest data back to the Registry. Each of those functions take an Access.Form variable, which can be identified by the Me object to simplify the application of the code. Below is a listing of all the code involved. Comments interspersed will explain the process. " ... On 30 Oct 2017 at 9:27, Rocky Smolin wrote: > Dear List: > > > > I have a form with a sub-form - the subform is datasheet view because > the user needs to be able to change the column widths and order. This > works in a mdb and an accdb - the changes are save so when the user > returns to the form the altered order and widths are retained and > displayed. > > > > But while the user can change the order and column widths in the mde > and accde versions, the changes are not saved. > > > > Is there a workaround for this? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 760-683-5777 > > www.bchacc.com > > www.e-z-mrp.com > > Skype: rocky.smolin > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 31 16:19:29 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 31 Oct 2017 14:19:29 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca> References: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca> Message-ID: <06d701d3528d$f0798b00$d16ca100$@bchacc.com> As I think about it, since it would be an advantage to let each use save their own field order and widths, saving the properties in a front end table might be an advantage. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 31, 2017 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde An excellent method to save your last position. I did a similar process many years ago with VB. Had a module that would open a registry set and then loop around pushing all global variables and position variable into the stack. When the application opened again, even after a system update, each user would have the environment they exited with...if they so chose. Unfortunately, even with the best efforts it was never a hundred percent. We do now have some excellent sync tools which could make much of that type of work redundant. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 12:33:54 AM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Oct 31 16:27:13 2017 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 31 Oct 2017 21:27:13 +0000 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <06d701d3528d$f0798b00$d16ca100$@bchacc.com> References: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca>, <06d701d3528d$f0798b00$d16ca100$@bchacc.com> Message-ID: <976E500DD0AF35409874A413967BFAECA09CBD21@EX2K10-MBX5.ads.qub.ac.uk> Or tell the user its a locked down system and tough !!!! I find I do that more often now. Martin Sent from my Windows Phone ________________________________ From: Rocky Smolin Sent: ?31/?10/?2017 21:22 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Changing Column Width and Order in mde or accde As I think about it, since it would be an advantage to let each use save their own field order and widths, saving the properties in a front end table might be an advantage. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 31, 2017 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde An excellent method to save your last position. I did a similar process many years ago with VB. Had a module that would open a registry set and then loop around pushing all global variables and position variable into the stack. When the application opened again, even after a system update, each user would have the environment they exited with...if they so chose. Unfortunately, even with the best efforts it was never a hundred percent. We do now have some excellent sync tools which could make much of that type of work redundant. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 12:33:54 AM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wrwehler at gmail.com Tue Oct 31 16:32:29 2017 From: wrwehler at gmail.com (Ryan W) Date: Tue, 31 Oct 2017 16:32:29 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: <1880680902.5362260.1509480576807.JavaMail.zimbra@shaw.ca> References: <1880680902.5362260.1509480576807.JavaMail.zimbra@shaw.ca> Message-ID: It actually appears the slowness comes from concatenation into a variable. After a while the data stored in the variable compounds the concatenation slowing down This is being done in pure TSQL to a linked server.... Sent from my iPhone > On Oct 31, 2017, at 3:09 PM, Jim Lawrence wrote: > > You could of course pre-translate the data before pushing it out. Would changing a null to a "" or 0 (an empty) be more efficient? > > Please tell me you are not using pass-through queries to move the data. > > Jim > > ----- Original Message ----- > From: "Ryan W" > To: "Access Developers discussion and problem solving" > Sent: Monday, October 30, 2017 12:54:32 PM > Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > I kind of took this idea and ran with it. I was able to get the time down > to 5 seconds for one table (500 records) but the larger 6000 row table is > giving me fits because there are nulls. So when I start wrapping colums in > IsNull() it slows down the processing even more. > > I'll have to look into the XML route, perhaps. > > > On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder > wrote: > >> >> Doing regular inserts against a linked table would take ages. So, instead I >> added code in the frontend which looped the local recordsets, wrote a SQL >> passthrough string like so: >> Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) >> Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) >> Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Oct 31 18:23:07 2017 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 31 Oct 2017 16:23:07 -0700 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <976E500DD0AF35409874A413967BFAECA09CBD21@EX2K10-MBX5.ads.qub.ac.uk> References: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca>, <06d701d3528d$f0798b00$d16ca100$@bchacc.com> <976E500DD0AF35409874A413967BFAECA09CBD21@EX2K10-MBX5.ads.qub.ac.uk> Message-ID: <06f001d3529f$35bd6a40$a1383ec0$@bchacc.com> Ooh. Cranky old guy. Welcome to the club... :) R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Tuesday, October 31, 2017 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Or tell the user its a locked down system and tough !!!! I find I do that more often now. Martin Sent from my Windows Phone ________________________________ From: Rocky Smolin Sent: ?31/?10/?2017 21:22 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Changing Column Width and Order in mde or accde As I think about it, since it would be an advantage to let each use save their own field order and widths, saving the properties in a front end table might be an advantage. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, October 31, 2017 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing Column Width and Order in mde or accde An excellent method to save your last position. I did a similar process many years ago with VB. Had a module that would open a registry set and then loop around pushing all global variables and position variable into the stack. When the application opened again, even after a system update, each user would have the environment they exited with...if they so chose. Unfortunately, even with the best efforts it was never a hundred percent. We do now have some excellent sync tools which could make much of that type of work redundant. Jim ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 12:33:54 AM Subject: Re: [AccessD] Changing Column Width and Order in mde or accde Hi Stuart Oh no. "All you need" is to read and save the properties of the columns to a set (a tree) of tables before closing the form, then read from the tables and restore the settings when opening the form. I once wrote a full system for a client who wanted this feature. It went a bit like this: ID UserSettingFormSubformID Name ColumnOrder ColumnWidth ColumnHidden 1 1 ID 1 -1 Sand 2 1 Dimension 2 1875 Sand 3 1 DimensionElementOrder 4 -1 Falsk 4 1 DimensionElement 3 1995 Falsk 5 1 DimensionElementProportion 5 2850 Falsk Those basic settings are not difficult. The challenge is the get hold on frozen columns. Sort order for each column was also added. I considered writing an article about this but gave up, as the setup was heavily intermixed with application settings for Format and Conditional Formatting, as well as default settings which - and this is important - the user could choose to revert to in case he/she got the layout garbled beyond easy restoring at the user level. Add to this maintenance of the settings. It was a large application and just about all forms had subforms in datasheetview. We made a function to rebuild all the current settings as default settings; this function was called when the user belonged to the developer group of users. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 30. oktober 2017 21:58 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Changing Column Width and Order in mde or accde Just found this - turns out you need to manipulate the Registry!!! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 18:47:25 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 17:47:25 -0600 (MDT) Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: Message-ID: <1639907499.5899127.1509493645430.JavaMail.zimbra@shaw.ca> Hi Ryan: Just a thought about improving your site's overall performance. 1. Use recordsets for holding and transferring data. The most basic recordset "forward-only"(?) as you don't need any fancy features...it is the closest thing to a memory table you have. Compared to a standard MDB table, this is lightning. (I.E.: Works great for printing a large report to a remote printer.) 2. A DoEvent is a great way to spawn a separate or background process. Processing within a doevent tends to be much faster as there is less over-head. 3. Use ADO type recorsets as it is the leanest connector. When doing local events a DAO connect is faster but that is because MS Access is completely optimized for an MDB database. 4. Does Azure allow you to cache data. Can all your data be uploaded/streamed (ADO has streaming capabilities) before any processing takes place? 5. What are your browser Speedtest results? I hope this gives you some ideas of what tools you might use. Jim ----- Original Message ----- From: "Ryan W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2017 7:32:06 AM Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow Looks like under 90ms to the datacenter I'm at. The closest bobbles up and down between mid 30s to mid 80s... I'm in "West US 2" I think.. I don't remember having a choice when I set up the DB or I'd had set it up closer to me geographically. On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder wrote: > You can try this site: > http://www.azurespeed.com/ > From my current position at a client (which has an intense firewall, and > possibly also some software gateway tool which slows down) most of the > european datacenters had a latency in the 500-1000ms range. > > When I connect from my own home PC, or office PC, they have a latency > around 150-400, so significantly lower. > > I am guessing the performance changes you see, is more related to latency > than it is to the performance SLA of the server. > > > > I remember a while ago I did an interface which pulled and pushed in the > 10k amount of records to and from a hosted mySQL on a shite webserver. The > program would pull 10k rows, do some excel magic using the built in > forecasting, then upload the results. > Doing regular inserts against a linked table would take ages. So, instead I > added code in the frontend which looped the local recordsets, wrote a SQL > passthrough string like so: > Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) > Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) > Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) > > Then I would execute that sql string against the server. > I don't really know if it was required, but I added a check on the length > of the statement, and if it reached 50K characters, it would fire the SQL, > then start a new string for the remained of the records. > The upload for all 10k records took maybe 1.5 seconds including the loop of > the recordsets, and writing of the SQL string. > > Another option I've heard from other places is to use XML for the upload, > but never tried that. > > > > Best regards > Anders Ebro // TheSmileyCoder > Access MVP 2014-2018 > > > On Mon, Oct 30, 2017 at 2:31 PM, Ryan W wrote: > > > I can't ping it unfortunately. Azure probably has a firewall rule up to > > block pings. > > > > > > > > On Mon, Oct 30, 2017 at 5:28 AM, The Smiley Coder < > > thesmileycoder at gmail.com> > > wrote: > > > > > Curious Ryan, what is the ping time for both servers? I've found that > > with > > > a bit of work, and some design principles, I can get my local access > app > > to > > > run against SQL azure so fast you can't tell it is not local. > > > > > > Best regards > > > Anders Ebro // TheSmileyCoder > > > Access MVP 2014-2018 > > > > > > > > > On Thu, Oct 19, 2017 at 10:38 PM, Ryan W wrote: > > > > > > > Gustav, > > > > The kicker there is my $10/mo "Shared Windows Hosting", with a > Shared > > > SQL > > > > Server with MANY MANY users on it is faster. I realize Azure is a > > > "shared" > > > > nature too.. but with SOME resources that are for your account only > > > (like a > > > > mini virtual machine, of sorts)... where on the shared hosting that's > > not > > > > the case.. anyone can cause the server you are on to bottleneck and > > cause > > > > grief. > > > > > > > > I would have thought that the S0 or S1 Azure plan would exceed the > > > shared > > > > windows hosting plan I have over at HostGator... I was only > testing > > to > > > > see if my 1-2 minute "insert into" time with HostGator was atypical > or > > > > not. Turns out I'm not doing as bad as I could be, I suppose. > > > > > > > > > > > > > > > > On Thu, Oct 19, 2017 at 3:34 PM, Gustav Brock > > wrote: > > > > > > > > > Hi Ryan > > > > > > > > > > We have some small Azure SQL instances running for testing > purposes, > > > and > > > > > they are very slow. Straight reading is relatively fast, but > anything > > > > else > > > > > is painfully slow. Except for some simple views, we don't run > > anything > > > > else > > > > > on the Azure SQL engine. > > > > > > > > > > The positive aspect of this is, that it is a very effective method > to > > > > > pinpoint bottlenecks. If you can run a form off the Azure SQL at > good > > > > > speed, it will run blazingly fast off a local SQL Server. And what > > you > > > > > think you can away with using a fast local server, will kick you > hard > > > > when > > > > > moved to Azure SQL. > > > > > > > > > > I guess that using a larger instance would prove much better > results, > > > but > > > > > the costs rise quite quickly. I miss a small, fast, and free > > instance. > > > > > > > > > > /gustav > > > > > > > > > > ________________________________________ > > > > > Fra: AccessD p? vegne af > Ryan > > > W < > > > > > wrwehler at gmail.com> > > > > > Sendt: 19. oktober 2017 20:39:34 > > > > > Til: Access Developers discussion and problem solving > > > > > Emne: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > > > > > > > > > Back story: > > > > > > > > > > We have an Access FE with a SQL Server back end. We push up a > > > relatively > > > > > small dataset (6000 rows total) up to our website for some updated > > > > > 'statistics' on client work. > > > > > > > > > > Right now my SQL server is on a shared windows host and pushing > those > > > > 6000 > > > > > rows takes anywhere from 1m30s to 2 minutes, usually! > > > > > > > > > > I'm also testing a snapshot of our SQL database in Azure (S1 plan) > > for > > > > some > > > > > devs we have in Denmark to query off, it doesn't have to be updated > > so > > > it > > > > > doesn't do any log shipping or anything (not that azure supports > it, > > > from > > > > > what I can tell). > > > > > > > > > > > > > > > Anyway those same tables on my shared Windows hosting plan were > > created > > > > in > > > > > my azure instance and those very same queries take over 6 minutes! > > > > > > > > > > First off, it seems highly suspect that azure would be 3 times > > slower? > > > > > Secondly aside from WAN latency and such why would it even be > taking > > 2 > > > > > minutes to insert 6,000 rows across the WAN? Is there a way I can > > > speed > > > > > that up in either the shared server or the Azure server? > > > > > > > > > > > > > > > When I check the Azure DB statistics and "DTU usage" it's barely a > > blip > > > > on > > > > > the radar, so I'm not pegging my DTU allocation by any means. > > > > > > > > > > > > > > > When I query that information back out of Azure I pull down those > > 6,000 > > > > > rows in less than one second.. so it doesn't seem like my WAN is > > > > > necessarily the culprit. > > > > > -- > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Tue Oct 31 20:02:23 2017 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 31 Oct 2017 21:02:23 -0400 Subject: [AccessD] Changing Column Width and Order in mde or accde In-Reply-To: <06f001d3529f$35bd6a40$a1383ec0$@bchacc.com> References: <515835450.5439989.1509482372960.JavaMail.zimbra@shaw.ca> <06d701d3528d$f0798b00$d16ca100$@bchacc.com> <976E500DD0AF35409874A413967BFAECA09CBD21@EX2K10-MBX5.ads.qub.ac.uk> <06f001d3529f$35bd6a40$a1383ec0$@bchacc.com> Message-ID: Rocky have a look at this ACCDB and ACCDE; my solution is working smoothly. No registry. ACCDB : ACCDE : Open database, enable macros, open form1, move controls around and resize, quit database and re-open and open Form1 again. This was pretty trivial. The key thing to remember is that I tagged all the controls in subform S that were fields with the word "Field". Bill On Tue, Oct 31, 2017 at 7:23 PM, Rocky Smolin wrote: > Ooh. Cranky old guy. Welcome to the club... :) > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Martin Reid > Sent: Tuesday, October 31, 2017 2:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > Or tell the user its a locked down system and tough !!!! I find I do that > more often now. > > Martin > > Sent from my Windows Phone > ________________________________ > From: Rocky Smolin > Sent: ?31/?10/?2017 21:22 > To: 'Access Developers discussion and problem solving' databaseadvisors.com> > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > As I think about it, since it would be an advantage to let each use save > their own field order and widths, saving the properties in a front end > table might be an advantage. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Tuesday, October 31, 2017 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > An excellent method to save your last position. > > I did a similar process many years ago with VB. Had a module that would > open a registry set and then loop around pushing all global variables and > position variable into the stack. When the application opened again, even > after a system update, each user would have the environment they exited > with...if they so chose. Unfortunately, even with the best efforts it was > never a hundred percent. > > We do now have some excellent sync tools which could make much of that > type of work redundant. > > Jim > > ----- Original Message ----- > From: "Gustav Brock" > To: "Access Developers discussion and problem solving" < > accessd at databaseadvisors.com> > Sent: Tuesday, October 31, 2017 12:33:54 AM > Subject: Re: [AccessD] Changing Column Width and Order in mde or accde > > Hi Stuart > > Oh no. "All you need" is to read and save the properties of the columns to > a set (a tree) of tables before closing the form, then read from the tables > and restore the settings when opening the form. > > I once wrote a full system for a client who wanted this feature. It went a > bit like this: > > ID UserSettingFormSubformID Name ColumnOrder ColumnWidth > ColumnHidden > 1 1 ID 1 -1 Sand > 2 1 Dimension 2 1875 Sand > 3 1 DimensionElementOrder 4 -1 Falsk > 4 1 DimensionElement 3 1995 Falsk > 5 1 DimensionElementProportion 5 2850 Falsk > > Those basic settings are not difficult. The challenge is the get hold on > frozen columns. Sort order for each column was also added. > > I considered writing an article about this but gave up, as the setup was > heavily intermixed with application settings for Format and Conditional > Formatting, as well as default settings which - and this is important - the > user could choose to revert to in case he/she got the layout garbled beyond > easy restoring at the user level. > > Add to this maintenance of the settings. It was a large application and > just about all forms had subforms in datasheetview. We made a function to > rebuild all the current settings as default settings; this function was > called when the user belonged to the developer group of users. > > /gustav > > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Stuart McLachlan > Sendt: 30. oktober 2017 21:58 > Til: Access Developers discussion and problem solving < > accessd at databaseadvisors.com> > Emne: Re: [AccessD] Changing Column Width and Order in mde or accde > > Just found this - turns out you need to manipulate the Registry!!! > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Tue Oct 31 20:18:27 2017 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2017 19:18:27 -0600 (MDT) Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: References: <1880680902.5362260.1509480576807.JavaMail.zimbra@shaw.ca> Message-ID: <1387591401.6094399.1509499107297.JavaMail.zimbra@shaw.ca> Why would the data need to be concatenated into a variable? Jim ----- Original Message ----- From: "Ryan W" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 31, 2017 2:32:29 PM Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow It actually appears the slowness comes from concatenation into a variable. After a while the data stored in the variable compounds the concatenation slowing down This is being done in pure TSQL to a linked server.... Sent from my iPhone > On Oct 31, 2017, at 3:09 PM, Jim Lawrence wrote: > > You could of course pre-translate the data before pushing it out. Would changing a null to a "" or 0 (an empty) be more efficient? > > Please tell me you are not using pass-through queries to move the data. > > Jim > > ----- Original Message ----- > From: "Ryan W" > To: "Access Developers discussion and problem solving" > Sent: Monday, October 30, 2017 12:54:32 PM > Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > I kind of took this idea and ran with it. I was able to get the time down > to 5 seconds for one table (500 records) but the larger 6000 row table is > giving me fits because there are nulls. So when I start wrapping colums in > IsNull() it slows down the processing even more. > > I'll have to look into the XML route, perhaps. > > > On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder > wrote: > >> >> Doing regular inserts against a linked table would take ages. So, instead I >> added code in the frontend which looped the local recordsets, wrote a SQL >> passthrough string like so: >> Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) >> Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) >> Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wrwehler at gmail.com Tue Oct 31 20:44:52 2017 From: wrwehler at gmail.com (Ryan W) Date: Tue, 31 Oct 2017 20:44:52 -0500 Subject: [AccessD] Pushing data to Azure SQL database VERY VERY slow In-Reply-To: <1387591401.6094399.1509499107297.JavaMail.zimbra@shaw.ca> References: <1880680902.5362260.1509480576807.JavaMail.zimbra@shaw.ca> <1387591401.6094399.1509499107297.JavaMail.zimbra@shaw.ca> Message-ID: <6F0774FF-D5C6-41A8-A702-5EF5B4D7C666@gmail.com> I was using smiley coders idea he posted about looping though a recordset and writing out a big insert statement was faster for him than actually just doing ?insert into? over the WAN. In this case it isn?t working well for me. I?m just doing it in SSMS and not using access at all. Sent from my iPhone > On Oct 31, 2017, at 8:18 PM, Jim Lawrence wrote: > > Why would the data need to be concatenated into a variable? > > Jim > > ----- Original Message ----- > From: "Ryan W" > To: "Access Developers discussion and problem solving" > Sent: Tuesday, October 31, 2017 2:32:29 PM > Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow > > It actually appears the slowness comes from concatenation into a variable. After a while the data stored in the variable compounds the concatenation slowing down > > This is being done in pure TSQL to a linked server.... > > Sent from my iPhone > >> On Oct 31, 2017, at 3:09 PM, Jim Lawrence wrote: >> >> You could of course pre-translate the data before pushing it out. Would changing a null to a "" or 0 (an empty) be more efficient? >> >> Please tell me you are not using pass-through queries to move the data. >> >> Jim >> >> ----- Original Message ----- >> From: "Ryan W" >> To: "Access Developers discussion and problem solving" >> Sent: Monday, October 30, 2017 12:54:32 PM >> Subject: Re: [AccessD] Pushing data to Azure SQL database VERY VERY slow >> >> I kind of took this idea and ran with it. I was able to get the time down >> to 5 seconds for one table (500 records) but the larger 6000 row table is >> giving me fits because there are nulls. So when I start wrapping colums in >> IsNull() it slows down the processing even more. >> >> I'll have to look into the XML route, perhaps. >> >> >> On Mon, Oct 30, 2017 at 8:49 AM, The Smiley Coder >> wrote: >> >>> >>> Doing regular inserts against a linked table would take ages. So, instead I >>> added code in the frontend which looped the local recordsets, wrote a SQL >>> passthrough string like so: >>> Insert into tbl_results(ID,value,x,y) values (6,"yeah",6,7) >>> Insert into tbl_results(ID,value,x,y) values (7,"nooo",9,7) >>> Insert into tbl_results(ID,value,x,y) values (8,"yeah",6,7) >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com