From accesspro at gmail.com Fri Feb 2 13:36:47 2018 From: accesspro at gmail.com (Bob Heygood) Date: Fri, 2 Feb 2018 11:36:47 -0800 Subject: [AccessD] Concat Again Message-ID: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob From jimdettman at verizon.net Fri Feb 2 13:52:59 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 2 Feb 2018 14:52:59 -0500 Subject: [AccessD] Concat Again In-Reply-To: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> Message-ID: <04c501d39c5f$6dd491b0$497db510$@verizon.net> Bob, ("SELECT * FROM tblEquipment WHERE EquipID = '" & Me.txtEquipID & "'") Or ("SELECT * FROM tblEquipment WHERE EquipID =" & chr$(34) & Me.txtEquipID & chr$(34)) And as a suggestion for troubleshooting, always do this: strSQL = "SELECT * FROM tblEquipment WHERE EquipID =" & chr$(34) & Me.txtEquipID & chr$(34) Set rstEquip = dbs.OpenRecordset(strSQL) As it allows you to set a break point and look at the SQL before execution. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 2, 2018 2:37 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 2 14:57:33 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 2 Feb 2018 12:57:33 -0800 Subject: [AccessD] Concat Again In-Reply-To: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> Message-ID: <040501d39c68$72caedf0$5860c9d0$@bchacc.com> I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Fri Feb 2 17:56:39 2018 From: accesspro at gmail.com (Bob Heygood) Date: Fri, 2 Feb 2018 15:56:39 -0800 Subject: [AccessD] Concat Again In-Reply-To: <040501d39c68$72caedf0$5860c9d0$@bchacc.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> <040501d39c68$72caedf0$5860c9d0$@bchacc.com> Message-ID: <01b101d39c81$781c9650$6855c2f0$@gmail.com> Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 2 18:28:01 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 2 Feb 2018 16:28:01 -0800 Subject: [AccessD] Concat Again In-Reply-To: <01b101d39c81$781c9650$6855c2f0$@gmail.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> <040501d39c68$72caedf0$5860c9d0$@bchacc.com> <01b101d39c81$781c9650$6855c2f0$@gmail.com> Message-ID: <044401d39c85$d9ab1e10$8d015a30$@bchacc.com> Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Sat Feb 3 00:31:05 2018 From: accesspro at gmail.com (Bob Heygood) Date: Fri, 2 Feb 2018 22:31:05 -0800 Subject: [AccessD] Concat Again In-Reply-To: <044401d39c85$d9ab1e10$8d015a30$@bchacc.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> <040501d39c68$72caedf0$5860c9d0$@bchacc.com> <01b101d39c81$781c9650$6855c2f0$@gmail.com> <044401d39c85$d9ab1e10$8d015a30$@bchacc.com> Message-ID: <01c701d39cb8$93b38e50$bb1aaaf0$@gmail.com> Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 3 10:45:20 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Feb 2018 08:45:20 -0800 Subject: [AccessD] Concat Again In-Reply-To: <01c701d39cb8$93b38e50$bb1aaaf0$@gmail.com> References: <017b01d39c5d$2a6f38a0$7f4da9e0$@gmail.com> <040501d39c68$72caedf0$5860c9d0$@bchacc.com> <01b101d39c81$781c9650$6855c2f0$@gmail.com> <044401d39c85$d9ab1e10$8d015a30$@bchacc.com> <01c701d39cb8$93b38e50$bb1aaaf0$@gmail.com> Message-ID: <04d801d39d0e$6155c3f0$24014bd0$@bchacc.com> Me, too. But since I adopted using apostrophe as a rule, I get less trouble. The code usually works so I don't have to get out my readers to figure out what I've done. :) but chr(34) works but, of course, has its own syntactical risks. You can use a double quote - it's interpreted as a single quote. EquipID =""" & Me.txtEquipID & """" R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 10:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Sat Feb 3 16:23:34 2018 From: accesspro at gmail.com (Bob Heygood) Date: Sat, 3 Feb 2018 14:23:34 -0800 Subject: [AccessD] VBA Editor Font Size used to be Concat Again Message-ID: <024101d39d3d$a1e59560$e5b0c020$@gmail.com> A 2010 So has anyone figured out how to increase the size of the fonts in the vba editor ? My setup will allow me to set the size and click OK. But upon return, no effect. Searched on web and either no solution or blamed on unusual video resolutions. Tia Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, February 3, 2018 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Me, too. But since I adopted using apostrophe as a rule, I get less trouble. The code usually works so I don't have to get out my readers to figure out what I've done. :) but chr(34) works but, of course, has its own syntactical risks. You can use a double quote - it's interpreted as a single quote. EquipID =""" & Me.txtEquipID & """" R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 10:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 3 17:57:28 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 3 Feb 2018 15:57:28 -0800 Subject: [AccessD] VBA Editor Font Size used to be Concat Again In-Reply-To: <024101d39d3d$a1e59560$e5b0c020$@gmail.com> References: <024101d39d3d$a1e59560$e5b0c020$@gmail.com> Message-ID: <053f01d39d4a$bf513f70$3df3be50$@bchacc.com> In VBA Editor select Tools-->Options-->Editor Format. Select your font size. In my system it stays that way. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Saturday, February 03, 2018 2:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again A 2010 So has anyone figured out how to increase the size of the fonts in the vba editor ? My setup will allow me to set the size and click OK. But upon return, no effect. Searched on web and either no solution or blamed on unusual video resolutions. Tia Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, February 3, 2018 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Me, too. But since I adopted using apostrophe as a rule, I get less trouble. The code usually works so I don't have to get out my readers to figure out what I've done. :) but chr(34) works but, of course, has its own syntactical risks. You can use a double quote - it's interpreted as a single quote. EquipID =""" & Me.txtEquipID & """" R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 10:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darryl at whittleconsulting.com.au Sat Feb 3 20:55:30 2018 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Sun, 4 Feb 2018 02:55:30 +0000 Subject: [AccessD] VBA Editor Font Size used to be Concat Again In-Reply-To: <053f01d39d4a$bf513f70$3df3be50$@bchacc.com> References: <024101d39d3d$a1e59560$e5b0c020$@gmail.com> <053f01d39d4a$bf513f70$3df3be50$@bchacc.com> Message-ID: Agreed. That is the way to do it for Access. Again it is sticky and once set, doesn't change. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, 4 February 2018 10:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again In VBA Editor select Tools-->Options-->Editor Format. Select your font size. In my system it stays that way. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Saturday, February 03, 2018 2:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again A 2010 So has anyone figured out how to increase the size of the fonts in the vba editor ? My setup will allow me to set the size and click OK. But upon return, no effect. Searched on web and either no solution or blamed on unusual video resolutions. Tia Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, February 3, 2018 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Me, too. But since I adopted using apostrophe as a rule, I get less trouble. The code usually works so I don't have to get out my readers to figure out what I've done. :) but chr(34) works but, of course, has its own syntactical risks. You can use a double quote - it's interpreted as a single quote. EquipID =""" & Me.txtEquipID & """" R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 10:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Sun Feb 4 23:49:07 2018 From: accesspro at gmail.com (Bob Heygood) Date: Sun, 4 Feb 2018 21:49:07 -0800 Subject: [AccessD] VBA Editor Font Size used to be Concat Again In-Reply-To: References: <024101d39d3d$a1e59560$e5b0c020$@gmail.com> <053f01d39d4a$bf513f70$3df3be50$@bchacc.com> Message-ID: <002f01d39e45$0ab236e0$2016a4a0$@gmail.com> You guys are lucky. Tried a number of times. No joy. Some references on the web, seems it has to do with video resolution. And I have everything else just right, so I don't want to monkey with it.... Thanks for the responses. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Saturday, February 3, 2018 6:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again Agreed. That is the way to do it for Access. Again it is sticky and once set, doesn't change. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, 4 February 2018 10:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again In VBA Editor select Tools-->Options-->Editor Format. Select your font size. In my system it stays that way. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Saturday, February 03, 2018 2:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Editor Font Size used to be Concat Again A 2010 So has anyone figured out how to increase the size of the fonts in the vba editor ? My setup will allow me to set the size and click OK. But upon return, no effect. Searched on web and either no solution or blamed on unusual video resolutions. Tia Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, February 3, 2018 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Me, too. But since I adopted using apostrophe as a rule, I get less trouble. The code usually works so I don't have to get out my readers to figure out what I've done. :) but chr(34) works but, of course, has its own syntactical risks. You can use a double quote - it's interpreted as a single quote. EquipID =""" & Me.txtEquipID & """" R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 10:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Yes EquipID is a key w no dupes text. Since I can't seem to enlarge the text in the VBA editor this quote/apostrophe jive is maddening for my old eyes. I think I once adopted the chr(34) method. Probably should stick to it. Thanks again to you and Jim for the responses. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Non numeric? Then EquipID is a text PK? In which case it should read Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID ='" & Me.txtEquipID & "'") Where '" is apostrophe + quote and "'" is quote + apostrophe + quote. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, February 02, 2018 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again Should have been clear, txtEqupID is a string value. Thanks Jim -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Friday, February 2, 2018 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Concat Again I don't think you need & Me.txtEquipID & Just Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & Me.txtEquipID) You *might* need Val(Me.txtEquipID) But I don't think so. If Me.txtEquipID might be null then you'd either want to trap that condition before opening the recordset or use Nz(Me.txtEquipID,0) HTH 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 Bob Heygood Sent: Friday, February 02, 2018 11:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Concat Again Hello to the list. Brain lock here. Just can't make this work: Set rstEquip = dbs.OpenRecordset("SELECT * FROM tblEquipment WHERE EquipID =" & " & Me.txtEquipID & ") DAO A 2010 Very sure this is obvious. But not to me right now. TIA Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BWalsh at healthinsight.org Wed Feb 7 22:08:19 2018 From: BWalsh at healthinsight.org (Bob Walsh) Date: Wed, 7 Feb 2018 23:08:19 -0500 Subject: [AccessD] Database is in an unrecognizable format... Message-ID: I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? 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 rockysmolin at bchacc.com Wed Feb 7 22:29:10 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 7 Feb 2018 20:29:10 -0800 Subject: [AccessD] Database is in an unrecognizable format... In-Reply-To: References: Message-ID: <018901d3a095$5dd9ea50$198dbef0$@bchacc.com> Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? 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 Wed Feb 7 22:41:05 2018 From: BWalsh at healthinsight.org (Bob Walsh) Date: Thu, 8 Feb 2018 04:41:05 +0000 Subject: [AccessD] Database is in an unrecognizable format... In-Reply-To: <018901d3a095$5dd9ea50$198dbef0$@bchacc.com> References: <018901d3a095$5dd9ea50$198dbef0$@bchacc.com> Message-ID: Both the front end and the back end are on a network drive in the same directory. The database and the backup db that the repair creates are both hosed. Everything is up to date. I guess I am going to have to go back to editing on my local drive and copying to a network drive so that it gets backed up and I can access from multiple machines. Frustrating to lose half a days work from this. I actually felt like I was getting ahead today... Silly me... From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 7, 2018 8:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database is in an unrecognizable format... [Attn: This is an external email.] Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? 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 rockysmolin at bchacc.com Wed Feb 7 23:27:12 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 7 Feb 2018 21:27:12 -0800 Subject: [AccessD] Database is in an unrecognizable format... In-Reply-To: References: <018901d3a095$5dd9ea50$198dbef0$@bchacc.com> Message-ID: <01ae01d3a09d$79a62e80$6cf28b80$@bchacc.com> If multiple users are using the same front end on the server then that could very well be your problem. I suggest that you move the front end to your local machine, and give everyone who should have access to the data a copy of the front end on their local machine, and then delete all copies of the front end from the server to insure that no one tries to run the front end on the server. And BTW, you know that even when the front end is on the server, a lot of stuff is passing between the server and your local machine anyway. So any glitch in the network can still hose your database. HTH 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 Bob Walsh Sent: Wednesday, February 07, 2018 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database is in an unrecognizable format... Both the front end and the back end are on a network drive in the same directory. The database and the backup db that the repair creates are both hosed. Everything is up to date. I guess I am going to have to go back to editing on my local drive and copying to a network drive so that it gets backed up and I can access from multiple machines. Frustrating to lose half a days work from this. I actually felt like I was getting ahead today... Silly me... From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 7, 2018 8:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database is in an unrecognizable format... [Attn: This is an external email.] Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 8 03:05:42 2018 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 8 Feb 2018 09:05:42 +0000 Subject: [AccessD] Database is in an unrecognizable format... Message-ID: Hi Bob I've seen exactly the same. Always copy the file to a local folder, and edit it here. When finished, copy back to the network folder. I've never seen the issue since I implemented that method. I guess the cause is caching of the file either on the server or locally (or both) that in the end may drive Access into uncertainty and forces it to give up. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bob Walsh Sendt: 8. februar 2018 05:41 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Database is in an unrecognizable format... Both the front end and the back end are on a network drive in the same directory. The database and the backup db that the repair creates are both hosed. Everything is up to date. I guess I am going to have to go back to editing on my local drive and copying to a network drive so that it gets backed up and I can access from multiple machines. Frustrating to lose half a days work from this. I actually felt like I was getting ahead today... Silly me... From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 7, 2018 8:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database is in an unrecognizable format... [Attn: This is an external email.] Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? Bob From RRANTHON at sentara.com Thu Feb 8 08:22:39 2018 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Thu, 8 Feb 2018 14:22:39 +0000 Subject: [AccessD] Database is in an unrecognizable format... In-Reply-To: References: Message-ID: Bob, We've had similar issues and it looked like anti-virus checkers on the network were blowing up our FE's on a regular basis. Once the network team excluded the .mdbs from the checkers, it greatly reduced the episodes. HTH. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 08, 2018 4:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database is in an unrecognizable format... Hi Bob I've seen exactly the same. Always copy the file to a local folder, and edit it here. When finished, copy back to the network folder. I've never seen the issue since I implemented that method. I guess the cause is caching of the file either on the server or locally (or both) that in the end may drive Access into uncertainty and forces it to give up. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bob Walsh Sendt: 8. februar 2018 05:41 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Database is in an unrecognizable format... Both the front end and the back end are on a network drive in the same directory. The database and the backup db that the repair creates are both hosed. Everything is up to date. I guess I am going to have to go back to editing on my local drive and copying to a network drive so that it gets backed up and I can access from multiple machines. Frustrating to lose half a days work from this. I actually felt like I was getting ahead today... Silly me... From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 7, 2018 8:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database is in an unrecognizable format... [Attn: This is an external email.] Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com . From jimdettman at verizon.net Thu Feb 8 08:41:38 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 8 Feb 2018 09:41:38 -0500 Subject: [AccessD] Database is in an unrecognizable format... In-Reply-To: References: Message-ID: <014c01d3a0ea$ed90af30$c8b20d90$@verizon.net> Some other items: 1. Only run a hard connection, don't use wireless. 2. Make sure the NIC card doesn't have any diagnostic protocol's loaded. These disconnect from the network to run tests, then re-connect. Most apps don't notice, but Access does. 3. Turn off all power management on the NICs. You don't want the card going to sleep. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of RANDALL R ANTHONY Sent: Thursday, February 8, 2018 9:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database is in an unrecognizable format... Bob, We've had similar issues and it looked like anti-virus checkers on the network were blowing up our FE's on a regular basis. Once the network team excluded the .mdbs from the checkers, it greatly reduced the episodes. HTH. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 08, 2018 4:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Database is in an unrecognizable format... Hi Bob I've seen exactly the same. Always copy the file to a local folder, and edit it here. When finished, copy back to the network folder. I've never seen the issue since I implemented that method. I guess the cause is caching of the file either on the server or locally (or both) that in the end may drive Access into uncertainty and forces it to give up. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bob Walsh Sendt: 8. februar 2018 05:41 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Database is in an unrecognizable format... Both the front end and the back end are on a network drive in the same directory. The database and the backup db that the repair creates are both hosed. Everything is up to date. I guess I am going to have to go back to editing on my local drive and copying to a network drive so that it gets backed up and I can access from multiple machines. Frustrating to lose half a days work from this. I actually felt like I was getting ahead today... Silly me... From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 7, 2018 8:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Database is in an unrecognizable format... [Attn: This is an external email.] Is the back end on a server and the front end on your local machine where some transaction is getting hosed 'over the wire'? That's one of the common causes. So when this happens the database is unrecoverable? Is it happening fairly regularly - 1-5 times a week? Or a long intervals? If you are running the back end on a server could you move it to your local drive temporarily to rule out the network as a cause? If you're on a server, try switching ports on the server's router - maybe the one you're using is a bit wonky. Also, you can try replacing the cable, and/or replacing your NIC. Those are all elements of the system any one of which could be causing a problem. Software: Everything up to date with the latest patches? DAO or ADO? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Walsh Sent: Wednesday, February 07, 2018 8:08 PM To: 'Access Developers discussion and problem solving (accessd at databaseadvisors.com)' Subject: [AccessD] Database is in an unrecognizable format... I am randomly getting this error while I am in the database, editing it. It destroys the database, even though it says it is repairing it and making a backup. Any thoughts on why I am getting this error? Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com . -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JoeO at appoli.com Tue Feb 13 11:05:59 2018 From: JoeO at appoli.com (Joe O'Connell) Date: Tue, 13 Feb 2018 17:05:59 +0000 Subject: [AccessD] Unusual problem processing Outlook emails Message-ID: Access 2013 application has a module that monitors an Outlook 2013 Inbox. When an email is received it needs to be parsed and various actions taken depending on who sent the email, the subject and the contents of the body. This has worked flawlessly for years using these properties: olItem.Subject olItem.CreationTime olItem.SenderName olItem.Body Now a few emails have been received that generate errors when these properties are referenced: olItem.SenderName olItem.Body The Subject and CreationTime still work as expected. All emails display properly in Outlook, but the actual format of the emails must be different to generate the errors when VBA attempts to retrieve the properties. I have not been able to find out why this is happening. All suggestions on how to deal with these errors will be greatly appreciated. Joe O'Connell From Lambert.Heenan at aig.com Tue Feb 13 11:23:02 2018 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Tue, 13 Feb 2018 17:23:02 +0000 Subject: [AccessD] Unusual problem processing Outlook emails In-Reply-To: References: Message-ID: What are the error generated? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Tuesday, February 13, 2018 12:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Unusual problem processing Outlook emails Access 2013 application has a module that monitors an Outlook 2013 Inbox. When an email is received it needs to be parsed and various actions taken depending on who sent the email, the subject and the contents of the body. This has worked flawlessly for years using these properties: olItem.Subject olItem.CreationTime olItem.SenderName olItem.Body Now a few emails have been received that generate errors when these properties are referenced: olItem.SenderName olItem.Body The Subject and CreationTime still work as expected. All emails display properly in Outlook, but the actual format of the emails must be different to generate the errors when VBA attempts to retrieve the properties. I have not been able to find out why this is happening. All suggestions on how to deal with these errors will be greatly appreciated. Joe O'Connell From JoeO at appoli.com Tue Feb 13 11:44:08 2018 From: JoeO at appoli.com (Joe O'Connell) Date: Tue, 13 Feb 2018 17:44:08 +0000 Subject: [AccessD] Unusual problem processing Outlook emails In-Reply-To: References: Message-ID: Sorry, I forgot to include it: "Run-time error 438 Object doesn't support this property or method" Joe -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 13, 2018 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Unusual problem processing Outlook emails What are the error generated? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Tuesday, February 13, 2018 12:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Unusual problem processing Outlook emails Access 2013 application has a module that monitors an Outlook 2013 Inbox. When an email is received it needs to be parsed and various actions taken depending on who sent the email, the subject and the contents of the body. This has worked flawlessly for years using these properties: olItem.Subject olItem.CreationTime olItem.SenderName olItem.Body Now a few emails have been received that generate errors when these properties are referenced: olItem.SenderName olItem.Body The Subject and CreationTime still work as expected. All emails display properly in Outlook, but the actual format of the emails must be different to generate the errors when VBA attempts to retrieve the properties. I have not been able to find out why this is happening. All suggestions on how to deal with these errors will be greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Tue Feb 13 12:02:43 2018 From: accesspro at gmail.com (Bob Heygood) Date: Tue, 13 Feb 2018 10:02:43 -0800 Subject: [AccessD] Dirty Cancel Clear all controls Message-ID: <032d01d3a4f4$d97ab730$8c702590$@gmail.com> Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob From Accesspro at cox.net Tue Feb 13 12:29:33 2018 From: Accesspro at cox.net (B Heygood) Date: Tue, 13 Feb 2018 10:29:33 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: Message-ID: <033901d3a4f8$985924e0$c90b6ea0$@cox.net> One of the issues is that as I iterate through the controls and delete entered data, I get an error when deleting data from the control for the primary key (required). Can I not clear/delete all data at once ? Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 13 12:29:38 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Feb 2018 10:29:38 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <032d01d3a4f4$d97ab730$8c702590$@gmail.com> References: <032d01d3a4f4$d97ab730$8c702590$@gmail.com> Message-ID: <014d01d3a4f8$9b77f110$d267d330$@bchacc.com> Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Accesspro at cox.net Tue Feb 13 12:43:55 2018 From: Accesspro at cox.net (B Heygood) Date: Tue, 13 Feb 2018 10:43:55 -0800 Subject: [AccessD] Dirty Cancel Clear all controls Message-ID: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 13 13:38:37 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Feb 2018 11:38:37 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> References: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> Message-ID: <016101d3a502$3e8ecd20$bbac6760$@bchacc.com> If that control is the PK then Me.Undo should clear it. Is that the case? Are you using natural or autonumber PK? You could put a check before in your statement ctlC.Value = "" like If ctl.Name<> "your control name here" then r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 10:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 13 14:35:30 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 13 Feb 2018 15:35:30 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> References: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> Message-ID: <058001d3a50a$311f30a0$935d91e0$@verizon.net> Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 13 15:31:57 2018 From: jamesbutton at blueyonder.co.uk (James Button) Date: Tue, 13 Feb 2018 21:31:57 -0000 Subject: [AccessD] Unusual problem processing Outlook emails In-Reply-To: References: Message-ID: Also - Have you viewed the headers on the problem emails and compared them against ones that do not generate problem messages Maybe the header contains alternate fields, or massively long and/or random character effect entries as may be associated with source obfuscation or just a different emailer or version of email software such as iphone etc. I frequently copy and paste headers into a text file for source checking Or save the message and view it using a basic text viewer JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 13, 2018 5:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Unusual problem processing Outlook emails What are the error generated? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Tuesday, February 13, 2018 12:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Unusual problem processing Outlook emails Access 2013 application has a module that monitors an Outlook 2013 Inbox. When an email is received it needs to be parsed and various actions taken depending on who sent the email, the subject and the contents of the body. This has worked flawlessly for years using these properties: olItem.Subject olItem.CreationTime olItem.SenderName olItem.Body Now a few emails have been received that generate errors when these properties are referenced: olItem.SenderName olItem.Body The Subject and CreationTime still work as expected. All emails display properly in Outlook, but the actual format of the emails must be different to generate the errors when VBA attempts to retrieve the properties. I have not been able to find out why this is happening. All suggestions on how to deal with these errors will be greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bensonforums at gmail.com Tue Feb 13 17:37:29 2018 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 13 Feb 2018 18:37:29 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <058001d3a50a$311f30a0$935d91e0$@verizon.net> References: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> <058001d3a50a$311f30a0$935d91e0$@verizon.net> Message-ID: My understanding is that Me.Dirty = False saves the current record. That is what is being done in this database I am currently working in, the code is sitting there with that exact comment: 'Save the change made to the forms (ie., Scenario change) Me.Dirty = False On Tue, Feb 13, 2018 at 3:35 PM, Jim Dettman wrote: > Bob, > > A couple things: > > Me.Dirty = False is equivalent to Me.Undo for the record and you will be > back to default values. > > The alternative is Me.Undo, but the catch there is you may need two; one > for the control (if it's dirty) and then one for the record. Most use > Me.Dirty = False because it covers everything. You only need one or the > other. > > You can't clear controls like this as not everything can be modified (i.e. > an autonumber). I would either: > > 1. check the field type it's bound to > 2. rely on the enabled field (assuming everything you want cleared is > enabled). > 3. Use a tag in the control Tag property if it should be cleared or not. > > With that said though, you usually want new records to be at their > defaults. If you don't, then maybe you want to clear all the default > values. > > Also instead of a zero length string, you should be setting the control to > Null. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B > Heygood > Sent: Tuesday, February 13, 2018 1:44 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > I think me.undo is working. But need to clear entries to get to an > unsullied > new record. > > See on the web that some variable set and checked in the beforeupdate event > might help..... > > Private Sub cmdCancel_Click() > > On Error GoTo cmdCancel_Click_Error > > If Me.Dirty Then Me.Dirty = False > 'DoCmd.GoToRecord , , acNewRec > Dim ctlC As Control > ' For each control. > For Each ctlC In Me.Controls > If ctlC.ControlType = acTextBox Then > ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE > CONTROL FOR THE PRIMARY KEY ++++ > ctlC.Value = "" ' Me.txtEquipID > End If > Next ctlC > Me.Undo > > Me.txtEquipID.SetFocus > > > On Error GoTo 0 > Exit Sub > > Bob > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Tuesday, February 13, 2018 10:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Try Me.Undo > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bob > Heygood > Sent: Tuesday, February 13, 2018 10:03 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Dirty Cancel Clear all controls > > Hello to the list, > I am looking to allow my user to bail and trash all info entered and not > save the record. And goto a new record. > Have a button "Cancel". > I have used the isdirty and the cancel methods of the form. > Somehow not getting it done. > > Maybe the order in which I am attempting ?? > > > A 2010 W 8.1 > > Tia > Bob > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 13 17:38:48 2018 From: bensonforums at gmail.com (Bill Benson) Date: Tue, 13 Feb 2018 18:38:48 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> <058001d3a50a$311f30a0$935d91e0$@verizon.net> Message-ID: And as further described here https://www.techrepublic.com/blog/microsoft-office/quickly-save-the-current-record-in-access-using-code/ On Tue, Feb 13, 2018 at 6:37 PM, Bill Benson wrote: > My understanding is that Me.Dirty = False saves the current record. That > is what is being done in this database I am currently working in, the code > is sitting there with that exact comment: > > > 'Save the change made to the forms (ie., Scenario change) > Me.Dirty = False > > > On Tue, Feb 13, 2018 at 3:35 PM, Jim Dettman > wrote: > >> Bob, >> >> A couple things: >> >> Me.Dirty = False is equivalent to Me.Undo for the record and you will be >> back to default values. >> >> The alternative is Me.Undo, but the catch there is you may need two; one >> for the control (if it's dirty) and then one for the record. Most use >> Me.Dirty = False because it covers everything. You only need one or the >> other. >> >> You can't clear controls like this as not everything can be modified >> (i.e. >> an autonumber). I would either: >> >> 1. check the field type it's bound to >> 2. rely on the enabled field (assuming everything you want cleared is >> enabled). >> 3. Use a tag in the control Tag property if it should be cleared or not. >> >> With that said though, you usually want new records to be at their >> defaults. If you don't, then maybe you want to clear all the default >> values. >> >> Also instead of a zero length string, you should be setting the control >> to >> Null. >> >> Jim. >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> B >> Heygood >> Sent: Tuesday, February 13, 2018 1:44 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Dirty Cancel Clear all controls >> >> I think me.undo is working. But need to clear entries to get to an >> unsullied >> new record. >> >> See on the web that some variable set and checked in the beforeupdate >> event >> might help..... >> >> Private Sub cmdCancel_Click() >> >> On Error GoTo cmdCancel_Click_Error >> >> If Me.Dirty Then Me.Dirty = False >> 'DoCmd.GoToRecord , , acNewRec >> Dim ctlC As Control >> ' For each control. >> For Each ctlC In Me.Controls >> If ctlC.ControlType = acTextBox Then >> ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE >> CONTROL FOR THE PRIMARY KEY ++++ >> ctlC.Value = "" ' Me.txtEquipID >> End If >> Next ctlC >> Me.Undo >> >> Me.txtEquipID.SetFocus >> >> >> On Error GoTo 0 >> Exit Sub >> >> Bob >> >> >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Rocky Smolin >> Sent: Tuesday, February 13, 2018 10:30 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Dirty Cancel Clear all controls >> >> Try Me.Undo >> >> r >> >> -----Original Message----- >> From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Bob >> Heygood >> Sent: Tuesday, February 13, 2018 10:03 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Dirty Cancel Clear all controls >> >> Hello to the list, >> I am looking to allow my user to bail and trash all info entered and not >> save the record. And goto a new record. >> Have a button "Cancel". >> I have used the isdirty and the cancel methods of the form. >> Somehow not getting it done. >> >> Maybe the order in which I am attempting ?? >> >> >> A 2010 W 8.1 >> >> Tia >> Bob >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Feb 13 18:00:14 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 13 Feb 2018 19:00:14 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <033a01d3a4fa$9a450470$cecf0d50$@cox.net> <058001d3a50a$311f30a0$935d91e0$@verizon.net> Message-ID: <05d801d3a526$cb30ce30$61926a90$@verizon.net> You are indeed correct....have no idea what I was thinking about. Me.Undo needs to be issued twice. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Benson Sent: Tuesday, February 13, 2018 6:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls My understanding is that Me.Dirty = False saves the current record. That is what is being done in this database I am currently working in, the code is sitting there with that exact comment: 'Save the change made to the forms (ie., Scenario change) Me.Dirty = False On Tue, Feb 13, 2018 at 3:35 PM, Jim Dettman wrote: > Bob, > > A couple things: > > Me.Dirty = False is equivalent to Me.Undo for the record and you > will be back to default values. > > The alternative is Me.Undo, but the catch there is you may need two; one > for the control (if it's dirty) and then one for the record. Most use > Me.Dirty = False because it covers everything. You only need one or > the other. > > You can't clear controls like this as not everything can be modified (i.e. > an autonumber). I would either: > > 1. check the field type it's bound to > 2. rely on the enabled field (assuming everything you want cleared is > enabled). > 3. Use a tag in the control Tag property if it should be cleared or not. > > With that said though, you usually want new records to be at their > defaults. If you don't, then maybe you want to clear all the default > values. > > Also instead of a zero length string, you should be setting the > control to Null. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of B Heygood > Sent: Tuesday, February 13, 2018 1:44 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > I think me.undo is working. But need to clear entries to get to an > unsullied new record. > > See on the web that some variable set and checked in the beforeupdate > event might help..... > > Private Sub cmdCancel_Click() > > On Error GoTo cmdCancel_Click_Error > > If Me.Dirty Then Me.Dirty = False > 'DoCmd.GoToRecord , , acNewRec > Dim ctlC As Control > ' For each control. > For Each ctlC In Me.Controls > If ctlC.ControlType = acTextBox Then > ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON > THE CONTROL FOR THE PRIMARY KEY ++++ > ctlC.Value = "" ' Me.txtEquipID > End If > Next ctlC > Me.Undo > > Me.txtEquipID.SetFocus > > > On Error GoTo 0 > Exit Sub > > Bob > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin > Sent: Tuesday, February 13, 2018 10:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Try Me.Undo > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Bob Heygood > Sent: Tuesday, February 13, 2018 10:03 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Dirty Cancel Clear all controls > > Hello to the list, > I am looking to allow my user to bail and trash all info entered and > not save the record. And goto a new record. > Have a button "Cancel". > I have used the isdirty and the cancel methods of the form. > Somehow not getting it done. > > Maybe the order in which I am attempting ?? > > > A 2010 W 8.1 > > Tia > Bob > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Accesspro at cox.net Tue Feb 13 19:07:46 2018 From: Accesspro at cox.net (B Heygood) Date: Tue, 13 Feb 2018 17:07:46 -0800 Subject: [AccessD] Dirty Cancel Clear all controls Message-ID: <038a01d3a530$396cc800$ac465800$@cox.net> Jim, Yes, null seems to be more appropriate. I made that change. All of the controls needing clearing at text boxes bound to text fields. I no longer get an error message when iterating thru the controls now. But, when the code is ended, the values are still present on the form..... Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 13, 2018 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Feb 13 21:19:45 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 13 Feb 2018 19:19:45 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <038a01d3a530$396cc800$ac465800$@cox.net> References: <038a01d3a530$396cc800$ac465800$@cox.net> Message-ID: <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> Bob: Not sure why you need to iterate through the bound fields. Why does Me.Undo not work? I NewRecord = True at this point? Or are you trying to delete all of the data from an existing record? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Jim, Yes, null seems to be more appropriate. I made that change. All of the controls needing clearing at text boxes bound to text fields. I no longer get an error message when iterating thru the controls now. But, when the code is ended, the values are still present on the form..... Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 13, 2018 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JoeO at appoli.com Tue Feb 13 22:21:48 2018 From: JoeO at appoli.com (Joe O'Connell) Date: Wed, 14 Feb 2018 04:21:48 +0000 Subject: [AccessD] Unusual problem processing Outlook emails In-Reply-To: References: Message-ID: Jim, Thanks for the suggestion. I have never tried to view the headers, what is the best way to view them? Could there be something in the header that makes the Outlook object think that there is no body in the email? Joe -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Button via AccessD Sent: Tuesday, February 13, 2018 4:32 PM To: 'Access Developers discussion and problem solving' Cc: James Button Subject: Re: [AccessD] Unusual problem processing Outlook emails Also - Have you viewed the headers on the problem emails and compared them against ones that do not generate problem messages Maybe the header contains alternate fields, or massively long and/or random character effect entries as may be associated with source obfuscation or just a different emailer or version of email software such as iphone etc. I frequently copy and paste headers into a text file for source checking Or save the message and view it using a basic text viewer JimB -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 13, 2018 5:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Unusual problem processing Outlook emails What are the error generated? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Tuesday, February 13, 2018 12:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Unusual problem processing Outlook emails Access 2013 application has a module that monitors an Outlook 2013 Inbox. When an email is received it needs to be parsed and various actions taken depending on who sent the email, the subject and the contents of the body. This has worked flawlessly for years using these properties: olItem.Subject olItem.CreationTime olItem.SenderName olItem.Body Now a few emails have been received that generate errors when these properties are referenced: olItem.SenderName olItem.Body The Subject and CreationTime still work as expected. All emails display properly in Outlook, but the actual format of the emails must be different to generate the errors when VBA attempts to retrieve the properties. I have not been able to find out why this is happening. All suggestions on how to deal with these errors will be greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accesspro at gmail.com Wed Feb 14 00:42:28 2018 From: accesspro at gmail.com (Bob Heygood) Date: Tue, 13 Feb 2018 22:42:28 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> References: <038a01d3a530$396cc800$ac465800$@cox.net> <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> Message-ID: <03cb01d3a55e$fc091980$f41b4c80$@gmail.com> Rocky, I am opening a bound form. On open moves to a new record. If I cancel (click the cancel button) without making any entries all is well. But, if I make an entry and don't manually delete any entered data that record is saved when canceling. The idea is to be able to "cancel" any entries and start again at a blank new record. There is a potential for someone to read a barcode also, buy just any entry needs to be deleted. Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 7:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob: Not sure why you need to iterate through the bound fields. Why does Me.Undo not work? I NewRecord = True at this point? Or are you trying to delete all of the data from an existing record? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Jim, Yes, null seems to be more appropriate. I made that change. All of the controls needing clearing at text boxes bound to text fields. I no longer get an error message when iterating thru the controls now. But, when the code is ended, the values are still present on the form..... Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 13, 2018 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 14 10:27:29 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 14 Feb 2018 08:27:29 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <03cb01d3a55e$fc091980$f41b4c80$@gmail.com> References: <038a01d3a530$396cc800$ac465800$@cox.net> <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> <03cb01d3a55e$fc091980$f41b4c80$@gmail.com> Message-ID: <002101d3a5b0$b5900ca0$20b025e0$@bchacc.com> Bob: Send me your phone number. Or call me. We haven't talked in a while. R 760.683.5777 -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Rocky, I am opening a bound form. On open moves to a new record. If I cancel (click the cancel button) without making any entries all is well. But, if I make an entry and don't manually delete any entered data that record is saved when canceling. The idea is to be able to "cancel" any entries and start again at a blank new record. There is a potential for someone to read a barcode also, buy just any entry needs to be deleted. Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 7:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob: Not sure why you need to iterate through the bound fields. Why does Me.Undo not work? I NewRecord = True at this point? Or are you trying to delete all of the data from an existing record? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Jim, Yes, null seems to be more appropriate. I made that change. All of the controls needing clearing at text boxes bound to text fields. I no longer get an error message when iterating thru the controls now. But, when the code is ended, the values are still present on the form..... Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 13, 2018 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Accesspro at cox.net Wed Feb 14 13:04:36 2018 From: Accesspro at cox.net (B Heygood) Date: Wed, 14 Feb 2018 11:04:36 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <038a01d3a530$396cc800$ac465800$@cox.net> <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> <03cb01d3a55e$fc091980$f41b4c80$@gmail.com> Message-ID: <044401d3a5c6$a7ebc330$f7c34990$@cox.net> SOLVED What a novel idea, delete all those lines of code and start over. Sometimes we don't see the forest for the code. Thanks Rocky. Good to catch up. See you soon on the coast. Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Wednesday, February 14, 2018 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob: Send me your phone number. Or call me. We haven't talked in a while. R 760.683.5777 -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Rocky, I am opening a bound form. On open moves to a new record. If I cancel (click the cancel button) without making any entries all is well. But, if I make an entry and don't manually delete any entered data that record is saved when canceling. The idea is to be able to "cancel" any entries and start again at a blank new record. There is a potential for someone to read a barcode also, buy just any entry needs to be deleted. Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 7:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob: Not sure why you need to iterate through the bound fields. Why does Me.Undo not work? I NewRecord = True at this point? Or are you trying to delete all of the data from an existing record? Rocky -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 5:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Jim, Yes, null seems to be more appropriate. I made that change. All of the controls needing clearing at text boxes bound to text fields. I no longer get an error message when iterating thru the controls now. But, when the code is ended, the values are still present on the form..... Thx Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 13, 2018 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Bob, A couple things: Me.Dirty = False is equivalent to Me.Undo for the record and you will be back to default values. The alternative is Me.Undo, but the catch there is you may need two; one for the control (if it's dirty) and then one for the record. Most use Me.Dirty = False because it covers everything. You only need one or the other. You can't clear controls like this as not everything can be modified (i.e. an autonumber). I would either: 1. check the field type it's bound to 2. rely on the enabled field (assuming everything you want cleared is enabled). 3. Use a tag in the control Tag property if it should be cleared or not. With that said though, you usually want new records to be at their defaults. If you don't, then maybe you want to clear all the default values. Also instead of a zero length string, you should be setting the control to Null. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B Heygood Sent: Tuesday, February 13, 2018 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls I think me.undo is working. But need to clear entries to get to an unsullied new record. See on the web that some variable set and checked in the beforeupdate event might help..... Private Sub cmdCancel_Click() On Error GoTo cmdCancel_Click_Error If Me.Dirty Then Me.Dirty = False 'DoCmd.GoToRecord , , acNewRec Dim ctlC As Control ' For each control. For Each ctlC In Me.Controls If ctlC.ControlType = acTextBox Then ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE CONTROL FOR THE PRIMARY KEY ++++ ctlC.Value = "" ' Me.txtEquipID End If Next ctlC Me.Undo Me.txtEquipID.SetFocus On Error GoTo 0 Exit Sub Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, February 13, 2018 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Try Me.Undo r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Tuesday, February 13, 2018 10:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dirty Cancel Clear all controls Hello to the list, I am looking to allow my user to bail and trash all info entered and not save the record. And goto a new record. Have a button "Cancel". I have used the isdirty and the cancel methods of the form. Somehow not getting it done. Maybe the order in which I am attempting ?? A 2010 W 8.1 Tia Bob -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Feb 14 14:34:01 2018 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 14 Feb 2018 15:34:01 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <044401d3a5c6$a7ebc330$f7c34990$@cox.net> References: <038a01d3a530$396cc800$ac465800$@cox.net> <01a001d3a542$a9e38080$fdaa8180$@bchacc.com> <03cb01d3a55e$fc091980$f41b4c80$@gmail.com> <044401d3a5c6$a7ebc330$f7c34990$@cox.net> Message-ID: I don't follow... this "SOLVED" and comment about deleting code lines and starting over is atop a message in the thread about giving a fellow developer a call. What was the ultimate solution Bob? On Wed, Feb 14, 2018 at 2:04 PM, B Heygood wrote: > SOLVED > > What a novel idea, delete all those lines of code and start over. > Sometimes we don't see the forest for the code. > > Thanks Rocky. > Good to catch up. > See you soon on the coast. > > Bob > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Wednesday, February 14, 2018 8:27 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Bob: > > Send me your phone number. Or call me. We haven't talked in a while. > > R > 760.683.5777 > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bob > Heygood > Sent: Tuesday, February 13, 2018 10:42 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Rocky, > I am opening a bound form. > On open moves to a new record. > If I cancel (click the cancel button) without making any entries all is > well. > But, if I make an entry and don't manually delete any entered data that > record is saved when canceling. > The idea is to be able to "cancel" any entries and start again at a blank > new record. > There is a potential for someone to read a barcode also, buy just any entry > needs to be deleted. > > Thx > Bob > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Tuesday, February 13, 2018 7:20 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Bob: > > Not sure why you need to iterate through the bound fields. Why does > Me.Undo > not work? > > I NewRecord = True at this point? Or are you trying to delete all of the > data from an existing record? > > Rocky > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B > Heygood > Sent: Tuesday, February 13, 2018 5:08 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Jim, > Yes, null seems to be more appropriate. I made that change. > All of the controls needing clearing at text boxes bound to text fields. > I no longer get an error message when iterating thru the controls now. > But, when the code is ended, the values are still present on the form..... > > > Thx > Bob > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim > Dettman > Sent: Tuesday, February 13, 2018 12:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Bob, > > A couple things: > > Me.Dirty = False is equivalent to Me.Undo for the record and you will be > back to default values. > > The alternative is Me.Undo, but the catch there is you may need two; one > for the control (if it's dirty) and then one for the record. Most use > Me.Dirty = False because it covers everything. You only need one or the > other. > > You can't clear controls like this as not everything can be modified (i.e. > an autonumber). I would either: > > 1. check the field type it's bound to > 2. rely on the enabled field (assuming everything you want cleared is > enabled). > 3. Use a tag in the control Tag property if it should be cleared or not. > > With that said though, you usually want new records to be at their > defaults. If you don't, then maybe you want to clear all the default > values. > > Also instead of a zero length string, you should be setting the control to > Null. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of B > Heygood > Sent: Tuesday, February 13, 2018 1:44 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > I think me.undo is working. But need to clear entries to get to an > unsullied > new record. > > See on the web that some variable set and checked in the beforeupdate event > might help..... > > Private Sub cmdCancel_Click() > > On Error GoTo cmdCancel_Click_Error > > If Me.Dirty Then Me.Dirty = False > 'DoCmd.GoToRecord , , acNewRec > Dim ctlC As Control > ' For each control. > For Each ctlC In Me.Controls > If ctlC.ControlType = acTextBox Then > ' Clear New Value. THIS IS WHERE THE ERROR HAPPENS ON THE > CONTROL FOR THE PRIMARY KEY ++++ > ctlC.Value = "" ' Me.txtEquipID > End If > Next ctlC > Me.Undo > > Me.txtEquipID.SetFocus > > > On Error GoTo 0 > Exit Sub > > Bob > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Tuesday, February 13, 2018 10:30 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Try Me.Undo > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bob > Heygood > Sent: Tuesday, February 13, 2018 10:03 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Dirty Cancel Clear all controls > > Hello to the list, > I am looking to allow my user to bail and trash all info entered and not > save the record. And goto a new record. > Have a button "Cancel". > I have used the isdirty and the cancel methods of the form. > Somehow not getting it done. > > Maybe the order in which I am attempting ?? > > > A 2010 W 8.1 > > Tia > Bob > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Wed Feb 14 14:48:12 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2018 06:48:12 +1000 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <038a01d3a530$396cc800$ac465800$@cox.net>, <044401d3a5c6$a7ebc330$f7c34990$@cox.net>, Message-ID: <5A84A08C.2463.4B4F09CB@stuart.lexacorp.com.pg> In a thread about a block of code which wasn't working as intened. Seems like they did talk on the phone, consequently Bob deleted the problem code and came up with an alternative solution. -- Stuart On 14 Feb 2018 at 15:34, Bill Benson wrote: > I don't follow... this "SOLVED" and comment about deleting code lines > and starting over is atop a message in the thread about giving a > fellow developer a call. > > What was the ultimate solution Bob? > > On Wed, Feb 14, 2018 at 2:04 PM, B Heygood wrote: > > > SOLVED > > > > What a novel idea, delete all those lines of code and start over. > > Sometimes we don't see the forest for the code. > > > > Thanks Rocky. > > Good to catch up. > > See you soon on the coast. > > > > Bob > > From fuller.artful at gmail.com Wed Feb 14 15:31:43 2018 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 14 Feb 2018 16:31:43 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <5A84A08C.2463.4B4F09CB@stuart.lexacorp.com.pg> References: <038a01d3a530$396cc800$ac465800$@cox.net> <044401d3a5c6$a7ebc330$f7c34990$@cox.net> <5A84A08C.2463.4B4F09CB@stuart.lexacorp.com.pg> Message-ID: This bug has been lurking in Access VBA for years, and other than the fact that I know what to do when it bites me, I have no information or insight regarding its cause or this bug, or the apparent inability/unwillingness of the Access team to repair it. What I have discovered, through trial and error rather than insight, is that a second solution exists: export the code to a text file and then re-import it, which is functionally the same, of course. I've done this and noted that the "junk code" is magically eliminated during the export. Sidebar question: I've never inspected the exported text from a form to see if the re-imported text can totally recreate the form of interest. Do you know? My thought is that somewhere all this data is stored as text, but perhaps limits its export. I don't really know, but if it is, then reverse-engineering some samples ought to provide enough information to design a text-template system that auto-generates a bunch of forms (perhaps containing subforms, in which case recurse). I've written a lot of code similar to the spec described above, in languages other than Access, but never tried it in Access. Do you have any experience in this sort of experiment? Arthur ? From rockysmolin at bchacc.com Wed Feb 14 16:56:00 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 14 Feb 2018 14:56:00 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <038a01d3a530$396cc800$ac465800$@cox.net> <044401d3a5c6$a7ebc330$f7c34990$@cox.net> <5A84A08C.2463.4B4F09CB@stuart.lexacorp.com.pg> Message-ID: <005701d3a5e6$fbdf4190$f39dc4b0$@bchacc.com> I've used the Decorrupter posted here a few months ago several times and it's saved my bacon every time. It exports all the objects and reimports them and everything comes out looking just dandy. R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls This bug has been lurking in Access VBA for years, and other than the fact that I know what to do when it bites me, I have no information or insight regarding its cause or this bug, or the apparent inability/unwillingness of the Access team to repair it. What I have discovered, through trial and error rather than insight, is that a second solution exists: export the code to a text file and then re-import it, which is functionally the same, of course. I've done this and noted that the "junk code" is magically eliminated during the export. Sidebar question: I've never inspected the exported text from a form to see if the re-imported text can totally recreate the form of interest. Do you know? My thought is that somewhere all this data is stored as text, but perhaps limits its export. I don't really know, but if it is, then reverse-engineering some samples ought to provide enough information to design a text-template system that auto-generates a bunch of forms (perhaps containing subforms, in which case recurse). I've written a lot of code similar to the spec described above, in languages other than Access, but never tried it in Access. Do you have any experience in this sort of experiment? Arthur ? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 14 18:38:07 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2018 10:38:07 +1000 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <005701d3a5e6$fbdf4190$f39dc4b0$@bchacc.com> References: <038a01d3a530$396cc800$ac465800$@cox.net>, , <005701d3a5e6$fbdf4190$f39dc4b0$@bchacc.com> Message-ID: <5A84D66F.1188.4C21869C@stuart.lexacorp.com.pg> For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Feb 15 00:54:26 2018 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Feb 2018 06:54:26 +0000 Subject: [AccessD] Dirty Cancel Clear all controls Message-ID: Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur From jimdettman at verizon.net Thu Feb 15 06:45:38 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 15 Feb 2018 07:45:38 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: Message-ID: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> It's built on top of Appplication.SaveAsText and Application.LoadFromText, so it's different than importing/exporting objects directly. To answer Arthur's question, it's yes. I've been told that the un-documented functions were created to support the creation of DB's from templates, but I've never dug into them to verify if that's truly the case or not. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 15, 2018 1:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at outlook.com Thu Feb 15 08:55:33 2018 From: df.waters at outlook.com (Dan Waters) Date: Thu, 15 Feb 2018 14:55:33 +0000 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> References: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> Message-ID: To all, The DeCorrupter exports individual objects to text files one by one while looping through all the objects (except tables). Then a new Access file is created programmatically, and all the objects are imported from those text files into that new Access file. This ensures that whatever may have been going wrong in the original file is left behind. Good to hear that it's been helpful! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: February 15, 2018 06:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls It's built on top of Appplication.SaveAsText and Application.LoadFromText, so it's different than importing/exporting objects directly. To answer Arthur's question, it's yes. I've been told that the un-documented functions were created to support the creation of DB's from templates, but I've never dug into them to verify if that's truly the case or not. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 15, 2018 1:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Accesspro at cox.net Thu Feb 15 09:42:49 2018 From: Accesspro at cox.net (B Heygood) Date: Thu, 15 Feb 2018 07:42:49 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <038a01d3a530$396cc800$ac465800$@cox.net>, <044401d3a5c6$a7ebc330$f7c34990$@cox.net>, Message-ID: <051701d3a673$a28632b0$e7929810$@cox.net> Stuart/Bill Pretty much as below. I had just kept piling on more code and wound up with a mess. Once I started over and just used me.undo and nulled out the UNbound controls, all was well. Rocky is the man. Thanks Bob -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 14, 2018 12:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls In a thread about a block of code which wasn't working as intened. Seems like they did talk on the phone, consequently Bob deleted the problem code and came up with an alternative solution. -- Stuart On 14 Feb 2018 at 15:34, Bill Benson wrote: > I don't follow... this "SOLVED" and comment about deleting code lines > and starting over is atop a message in the thread about giving a > fellow developer a call. > > What was the ultimate solution Bob? > > On Wed, Feb 14, 2018 at 2:04 PM, B Heygood wrote: > > > SOLVED > > > > What a novel idea, delete all those lines of code and start over. > > Sometimes we don't see the forest for the code. > > > > Thanks Rocky. > > Good to catch up. > > See you soon on the coast. > > > > Bob > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 15 11:02:45 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 15 Feb 2018 09:02:45 -0800 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> Message-ID: <013f01d3a67e$ccc72650$665572f0$@bchacc.com> Extremely helpful, Dan. It's uncorrupted several dbs of mine that were not amenable to any other method. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 15, 2018 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls To all, The DeCorrupter exports individual objects to text files one by one while looping through all the objects (except tables). Then a new Access file is created programmatically, and all the objects are imported from those text files into that new Access file. This ensures that whatever may have been going wrong in the original file is left behind. Good to hear that it's been helpful! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: February 15, 2018 06:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls It's built on top of Appplication.SaveAsText and Application.LoadFromText, so it's different than importing/exporting objects directly. To answer Arthur's question, it's yes. I've been told that the un-documented functions were created to support the creation of DB's from templates, but I've never dug into them to verify if that's truly the case or not. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 15, 2018 1:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at att.net Thu Feb 15 17:06:51 2018 From: cjlabs at att.net (cjlabs) Date: Thu, 15 Feb 2018 17:06:51 -0600 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <013f01d3a67e$ccc72650$665572f0$@bchacc.com> References: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> <013f01d3a67e$ccc72650$665572f0$@bchacc.com> Message-ID: <000201d3a6b1$aa49ecb0$feddc610$@att.net> When I try to run DeCorrupter, I get an error in CreateDestinationFile -- File Not Found on Line 6 fso.CopyFile stgBlankTemplatePath, MstgDestinationFullPath, True This is a Access 2000 based database, running in Access 2010. Can someone help with that error? Thanks Carolyn Johnson -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 15, 2018 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Extremely helpful, Dan. It's uncorrupted several dbs of mine that were not amenable to any other method. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 15, 2018 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls To all, The DeCorrupter exports individual objects to text files one by one while looping through all the objects (except tables). Then a new Access file is created programmatically, and all the objects are imported from those text files into that new Access file. This ensures that whatever may have been going wrong in the original file is left behind. Good to hear that it's been helpful! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: February 15, 2018 06:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls It's built on top of Appplication.SaveAsText and Application.LoadFromText, so it's different than importing/exporting objects directly. To answer Arthur's question, it's yes. I've been told that the un-documented functions were created to support the creation of DB's from templates, but I've never dug into them to verify if that's truly the case or not. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 15, 2018 1:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From df.waters at outlook.com Thu Feb 15 17:44:02 2018 From: df.waters at outlook.com (Dan Waters) Date: Thu, 15 Feb 2018 23:44:02 +0000 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: <000201d3a6b1$aa49ecb0$feddc610$@att.net> References: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> <013f01d3a67e$ccc72650$665572f0$@bchacc.com>, <000201d3a6b1$aa49ecb0$feddc610$@att.net> Message-ID: Hi Carolyn, I'll look at that tomorrow. Dan Sent from my Windows 10 phone From: cjlabs Sent: Thursday, February 15, 2018 17:11 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls When I try to run DeCorrupter, I get an error in CreateDestinationFile -- File Not Found on Line 6 fso.CopyFile stgBlankTemplatePath, MstgDestinationFullPath, True This is a Access 2000 based database, running in Access 2010. Can someone help with that error? Thanks Carolyn Johnson -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Thursday, February 15, 2018 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls Extremely helpful, Dan. It's uncorrupted several dbs of mine that were not amenable to any other method. r -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, February 15, 2018 6:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls To all, The DeCorrupter exports individual objects to text files one by one while looping through all the objects (except tables). Then a new Access file is created programmatically, and all the objects are imported from those text files into that new Access file. This ensures that whatever may have been going wrong in the original file is left behind. Good to hear that it's been helpful! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: February 15, 2018 06:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dirty Cancel Clear all controls It's built on top of Appplication.SaveAsText and Application.LoadFromText, so it's different than importing/exporting objects directly. To answer Arthur's question, it's yes. I've been told that the un-documented functions were created to support the creation of DB's from templates, but I've never dug into them to verify if that's truly the case or not. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 15, 2018 1:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Thanks Stuart Will the result be different from importing all objects into a new file? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Stuart McLachlan Sendt: 15. februar 2018 01:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Dirty Cancel Clear all controls For those not familiar with it, I've posted a copy of Decorrupter at http://www.camcopng.com/decorrupter -- Stuart On 14 Feb 2018 at 14:56, Rocky Smolin wrote: > I've used the Decorrupter posted here a few months ago several times > and it's saved my bacon every time. It exports all the objects and > reimports them and everything comes out looking just dandy. > > R > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller Sent: Wednesday, February 14, 2018 1:32 PM To: Access > Developers discussion and problem solving Subject: Re: [AccessD] Dirty > Cancel Clear all controls > > This bug has been lurking in Access VBA for years, and other than the > fact that I know what to do when it bites me, I have no information or > insight regarding its cause or this bug, or the apparent > inability/unwillingness of the Access team to repair it. > > What I have discovered, through trial and error rather than insight, > is that a second solution exists: export the code to a text file and > then re-import it, which is functionally the same, of course. I've > done this and noted that the "junk code" is magically eliminated > during the export. > > Sidebar question: > > I've never inspected the exported text from a form to see if the > re-imported text can totally recreate the form of interest. Do you > know? My thought is that somewhere all this data is stored as text, > but perhaps limits its export. I don't really know, but if it is, then > reverse-engineering some samples ought to provide enough information > to design a text-template system that auto-generates a bunch of forms > (perhaps containing subforms, in which case recurse). > > I've written a lot of code similar to the spec described above, in > languages other than Access, but never tried it in Access. Do you have > any experience in this sort of experiment? > > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Thu Feb 15 20:10:07 2018 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Fri, 16 Feb 2018 02:10:07 +0000 Subject: [AccessD] OT: asap? Message-ID: Hey folks, Was wondering if any of you have any insight to an acronym that may have a different meaning... In a reporting scenario for retail, what does asap refer to? Accepted sales ? Processed? Or??? From df.waters at outlook.com Thu Feb 15 21:14:43 2018 From: df.waters at outlook.com (Dan Waters) Date: Fri, 16 Feb 2018 03:14:43 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: As soon as possible! Sent from my Windows 10 phone From: fhtapia at gmail.com Sent: Thursday, February 15, 2018 20:16 To: Access Developers discussion and problem solving Subject: [AccessD] OT: asap? Hey folks, Was wondering if any of you have any insight to an acronym that may have a different meaning... In a reporting scenario for retail, what does asap refer to? Accepted sales ? Processed? Or??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darryl at whittleconsulting.com.au Thu Feb 15 23:05:15 2018 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Fri, 16 Feb 2018 05:05:15 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: Yes, I would vote with "As Soon As Possible" too. Unless you have a different context (?) -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, 16 February 2018 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: asap? As soon as possible! Sent from my Windows 10 phone From: fhtapia at gmail.com Sent: Thursday, February 15, 2018 20:16 To: Access Developers discussion and problem solving Subject: [AccessD] OT: asap? Hey folks, Was wondering if any of you have any insight to an acronym that may have a different meaning... In a reporting scenario for retail, what does asap refer to? Accepted sales ? Processed? Or??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 16 00:29:47 2018 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 16 Feb 2018 06:29:47 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: As soon as possible, or my company comes up with its own at times and judging by what I have seen at work for sales etc what about 'annual sales average percent' or 'annual sales average purchase' On 16 Feb 2018 05:08, "Darryl Collins" wrote: Yes, I would vote with "As Soon As Possible" too. Unless you have a different context (?) -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, 16 February 2018 2:15 PM To: Access Developers discussion and problem solving < accessd at databaseadvisors.com> Subject: Re: [AccessD] OT: asap? As soon as possible! Sent from my Windows 10 phone From: fhtapia at gmail.com Sent: Thursday, February 15, 2018 20:16 To: Access Developers discussion and problem solving Subject: [AccessD] OT: asap? Hey folks, Was wondering if any of you have any insight to an acronym that may have a different meaning... In a reporting scenario for retail, what does asap refer to? Accepted sales ? Processed? Or??? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Feb 16 08:27:37 2018 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 16 Feb 2018 08:27:37 -0600 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: Could be "Annual Sales Average Price". Or maybe "As Sold Average Price". One of my companies key performance indicators is something we call ASP. Average Sale Price. It's essentially the total sales dollars divided by the number of units sold. We look at that on a rolling year basis and other timeframes, by individual product, product categories and overall. In our business the lower the price, the more new customers we tend to attract as customers are more likely to try us out with a lower price point. But it also reflects the mix of products being marketed too as Televisions and computers generally cost more than skin creams. On Thu, Feb 15, 2018 at 8:10 PM, wrote: > Hey folks, > Was wondering if any of you have any insight to an acronym that may have a > different meaning... > > In a reporting scenario for retail, what does asap refer to? Accepted sales > ? Processed? Or??? > -- > 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 Chester_Kaup at kindermorgan.com Fri Feb 16 08:38:53 2018 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 16 Feb 2018 14:38:53 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: <8E16E03987F1FD4FB0A9BEBF7CC160CB6A0E68B1@HOUEX11.kindermorgan.com> Ponder all these ASAP As Soon As Possible ASAP Army Substance Abuse Program ASAP Aviation Safety Action Program ASAP Alliance of Security Analysis Professionals ASAP As Simple As Possible ASAP AIDS Society of Asia and the Pacific (est. 1990) ASAP As Small As Possible ASAP As Short As Possible ASAP Aerospace Safety Advisory Panel (NASA) ASAP As Safe As Possible ASAP Aggregate Server Access Protocol ASAP Alcohol Safety Action Program ASAP Association of Strategic Alliance Professionals (Canton, MA) ASAP Always Say A Prayer ASAP Agroecology/Sustainable Agriculture Program ASAP Any Service, Any Port ASAP As Soon As Practical ASAP American Syringomyelia Alliance Project ASAP After School Activities Program ASAP American Society for Automation in Pharmacy ASAP Automated Standard Application for Payment (US Treasury Department) ASAP As Slow As Possible ASAP Atypical Small Acinar Proliferation ASAP Automated Scheduling, Optimisation and Planning (University of Nottingham, UK) ASAP Automatic Switching And Processing ASAP American Society for Action on Pain ASAP Academic Strategic Alliances Program ASAP American Society for Adolescent Psychiatry ASAP ARIANE Structure for Auxiliary Payloads ASAP Automated Shipboard Aerological Programme ASAP After School Academic Program ASaP Adrian Smith and Project (band) ASAP American Society of Architectural Perspectivists ASAP Alcohol Substance Abuse Program ASAP Alcoholism and Substance Abuse Providers of New York State (also seen as ASAPNYS) ASAP Anywhere Secure Access Policy (Aventail) ASAP Aeronautical Services and Procedures (Slovakia) ASAP Aging Service Access Point ASAP Aviation Safety Action Partnership ASAP Auditors Sharing Audit Programs (AuditNet) ASAP After School Assistance Program ASAP Automatic Service Activation Program ASAP Adaptive Sampling and Analysis Program ASAP Association of Social Alarms Providers (UK) ASAP As Stupid As Possible ASAP Advanced Strategic Art Program ASAP Alternative Support Apparatus (rescue vehicle based on Polaris 6x6) ASAP advanced sensor applications program (US DoD) ASAP American Society of Adults with Pseudo-Obstruction ASAP Application-Specific Systems Architecture and Processors ASAP Advanced System Analysis Program (software from Breault Research Inc.; Tucson, AZ) ASAP All Sports All Polarized (Native Eyewear sunglasses company) ASAP Association de Sauvegarde et d'Accueil des Perroquets ASAP Application Service Access Point ASAP Automated Staffing Application Program (USDA Forest Service) ASAP Advocates for Sexual Assault Prevention ASAP Audio Service America Productions ASAP Amateur Screenplays Amateur Productions (Brokport, New York) ASAP Act Swiftly Awesome Pachyderm (Dr Seuss' story Horton Hears a Who) ASAP Advanced Systems and Products ASAP Applied Securities Analysis Program ASAP Army Scientific Advisory Panel ASAP Army Streamlined Acquisition Process ASAP Anarchist Skins and Punks ASAP Asian Shelter and Advocacy Project ASAP Advanced Scientific Array Processor ASAP Always Stop and Pray ASAP Alarm Severity Assignment Profile (Alcatel) ASAP Advanced Survivability Assessment Program (naval ship design) ASAP Aerospace Safety Automation Program ASAP Arizona Student Achievement Program ASAP Automatic Self Allocating Processors (Convex) ASAP AIDS and Substance Abuse Prevention ASAP Agricultural Sciences Advisory Panel ASAP Advanced Symbolic ATE Programming ASAP A Simplified Asset (disposal) Procedure ASAP Advanced Surfaces and Processes, Inc. ASAP Accelerated Situational Awareness Prototype ASAP After September, April Possibly ASAP Automated Standardized Administrative Program (US Marine Corps) ASAP After School Attention Program ASAP Athabascan Self-Sufficiency Assistance Partnership (Alaskan native assistance plan) ASAP Aeronautics and Space Access Page (NASA) ASAP Antisubmarine Attack Plotter ASAP Accelerated Systems Applications and Products (data processing) ASAP Army Streamlined Acquisition Program ASAP Aviation Safety Analysis Program ASAP Avionics Sensor Adaptive Planner ASAP A Stupid Acting Person (Dilbert comic strip) ASAP Alcohol Servers Awareness Program ASAP Alliance for Sustainable Application Products ASAP Americans Securing American Ports (Act; HR 4833) ASAP Aggressor Space Applications Project ASAP Automated Statistical Analysis Program ASAP Architecture Simulation Analysis Platform ASAP Always Safe, Always Prepared (Texas Petrochemicals LP safety slogan) ASAP All Substance Abuse Providers ASAP Advanced Safety Applications and Procedures Ltd (UK) ASAP Acquisitions Strategies and Plans ASAP Area Studies Advanced Program (US Air Force study abroad program) ASAP Aircrew System Advisory Panel ASAP Administrative Services Automation Program ASAP Administrative Services Automation Project ASAP American Society of Advertising and Promotion ASAP Alabama Substance Abuse Program ASAP All-Star Sunday Afternoon Party (Philippines television show) ASAP Administrative Support/Advancing Productivity ASAP ASEAN Student Action Project ASAP Airplane Safety Awareness Process ASAP Any Subscriber's Access Point (Advanced Fiber Communications) ASAP Automatic Standard Application Package (Sprint) ASAP Agent Services Alliance Program (Lucent/Nec/Nortel) ASAP Automated Support Activity Program ASAP And Sink A Pint ASAP ampullary, seminal vesicle, and prostatic ASAP Asperger's Support for Adolescents Plus (est. 2006) -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, February 16, 2018 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: asap? [This email message was received from the Internet and came from outside of Kinder Morgan] Could be "Annual Sales Average Price". Or maybe "As Sold Average Price". One of my companies key performance indicators is something we call ASP. Average Sale Price. It's essentially the total sales dollars divided by the number of units sold. We look at that on a rolling year basis and other timeframes, by individual product, product categories and overall. In our business the lower the price, the more new customers we tend to attract as customers are more likely to try us out with a lower price point. But it also reflects the mix of products being marketed too as Televisions and computers generally cost more than skin creams. On Thu, Feb 15, 2018 at 8:10 PM, wrote: > Hey folks, > Was wondering if any of you have any insight to an acronym that may > have a different meaning... > > In a reporting scenario for retail, what does asap refer to? Accepted > sales ? Processed? Or??? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Fri Feb 16 08:59:13 2018 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2018 14:59:13 +0000 Subject: [AccessD] Converting Imperial measures Message-ID: Hi all Good examples for usage of Eval are rare, but here is one - a one-liner for converting Imperial feet-inch measures (string) to decimal feet (double): DecimalFeet = Eval(Replace(Replace(Replace([Measurement], """", ""), "'", "*12 "), " ", "+")) / 12 It will accept expressions like: 6' 7" 7 3/4" 6'7" 6' 7" 6' 5 3/16" /gustav From gustav at cactus.dk Fri Feb 16 09:37:51 2018 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2018 15:37:51 +0000 Subject: [AccessD] Converting Imperial measures Message-ID: Hi all One more Replace is needed to accept strings with a dash like 8' 5-7/16": DecimalFeet = Eval(Replace(Replace(Replace(Replace(m, """", ""), "'", "*12 "), " ", "+"), "-", "+")) / 12 When DO the US enter modern time and switch to decimals? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 16. februar 2018 15:59 Til: Access Developers discussion and problem solving Emne: [AccessD] Converting Imperial measures Hi all Good examples for usage of Eval are rare, but here is one - a one-liner for converting Imperial feet-inch measures (string) to decimal feet (double): DecimalFeet = Eval(Replace(Replace(Replace([Measurement], """", ""), "'", "*12 "), " ", "+")) / 12 It will accept expressions like: 6' 7" 7 3/4" 6'7" 6' 7" 6' 5 3/16" /gustav From jbodin at sbor.com Fri Feb 16 09:49:41 2018 From: jbodin at sbor.com (John Bodin) Date: Fri, 16 Feb 2018 15:49:41 +0000 Subject: [AccessD] Converting Imperial measures In-Reply-To: References: Message-ID: Maybe in the next 1 5/32 years... Nice function btw. John Bodin sBOR Office Systems jbodin at sbor.com ________________________________ From: AccessD on behalf of Gustav Brock Sent: Friday, February 16, 2018 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting Imperial measures Hi all One more Replace is needed to accept strings with a dash like 8' 5-7/16": DecimalFeet = Eval(Replace(Replace(Replace(Replace(m, """", ""), "'", "*12 "), " ", "+"), "-", "+")) / 12 When DO the US enter modern time and switch to decimals? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 16. februar 2018 15:59 Til: Access Developers discussion and problem solving Emne: [AccessD] Converting Imperial measures Hi all Good examples for usage of Eval are rare, but here is one - a one-liner for converting Imperial feet-inch measures (string) to decimal feet (double): DecimalFeet = Eval(Replace(Replace(Replace([Measurement], """", ""), "'", "*12 "), " ", "+")) / 12 It will accept expressions like: 6' 7" 7 3/4" 6'7" 6' 7" 6' 5 3/16" /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Feb 16 10:59:26 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Fri, 16 Feb 2018 08:59:26 -0800 Subject: [AccessD] OT: asap? In-Reply-To: <8E16E03987F1FD4FB0A9BEBF7CC160CB6A0E68B1@HOUEX11.kindermorgan.com> References: <8E16E03987F1FD4FB0A9BEBF7CC160CB6A0E68B1@HOUEX11.kindermorgan.com> Message-ID: <008001d3a747$80eabb60$82c03220$@bchacc.com> Yeah! One of those! R -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, February 16, 2018 6:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: asap? Ponder all these ASAP As Soon As Possible ASAP Army Substance Abuse Program ASAP Aviation Safety Action Program ASAP Alliance of Security Analysis Professionals ASAP As Simple As Possible ASAP AIDS Society of Asia and the Pacific (est. 1990) ASAP As Small As Possible ASAP As Short As Possible ASAP Aerospace Safety Advisory Panel (NASA) ASAP As Safe As Possible ASAP Aggregate Server Access Protocol ASAP Alcohol Safety Action Program ASAP Association of Strategic Alliance Professionals (Canton, MA) ASAP Always Say A Prayer ASAP Agroecology/Sustainable Agriculture Program ASAP Any Service, Any Port ASAP As Soon As Practical ASAP American Syringomyelia Alliance Project ASAP After School Activities Program ASAP American Society for Automation in Pharmacy ASAP Automated Standard Application for Payment (US Treasury Department) ASAP As Slow As Possible ASAP Atypical Small Acinar Proliferation ASAP Automated Scheduling, Optimisation and Planning (University of Nottingham, UK) ASAP Automatic Switching And Processing ASAP American Society for Action on Pain ASAP Academic Strategic Alliances Program ASAP American Society for Adolescent Psychiatry ASAP ARIANE Structure for Auxiliary Payloads ASAP Automated Shipboard Aerological Programme ASAP After School Academic Program ASaP Adrian Smith and Project (band) ASAP American Society of Architectural Perspectivists ASAP Alcohol Substance Abuse Program ASAP Alcoholism and Substance Abuse Providers of New York State (also seen as ASAPNYS) ASAP Anywhere Secure Access Policy (Aventail) ASAP Aeronautical Services and Procedures (Slovakia) ASAP Aging Service Access Point ASAP Aviation Safety Action Partnership ASAP Auditors Sharing Audit Programs (AuditNet) ASAP After School Assistance Program ASAP Automatic Service Activation Program ASAP Adaptive Sampling and Analysis Program ASAP Association of Social Alarms Providers (UK) ASAP As Stupid As Possible ASAP Advanced Strategic Art Program ASAP Alternative Support Apparatus (rescue vehicle based on Polaris 6x6) ASAP advanced sensor applications program (US DoD) ASAP American Society of Adults with Pseudo-Obstruction ASAP Application-Specific Systems Architecture and Processors ASAP Advanced System Analysis Program (software from Breault Research Inc.; Tucson, AZ) ASAP All Sports All Polarized (Native Eyewear sunglasses company) ASAP Association de Sauvegarde et d'Accueil des Perroquets ASAP Application Service Access Point ASAP Automated Staffing Application Program (USDA Forest Service) ASAP Advocates for Sexual Assault Prevention ASAP Audio Service America Productions ASAP Amateur Screenplays Amateur Productions (Brokport, New York) ASAP Act Swiftly Awesome Pachyderm (Dr Seuss' story Horton Hears a Who) ASAP Advanced Systems and Products ASAP Applied Securities Analysis Program ASAP Army Scientific Advisory Panel ASAP Army Streamlined Acquisition Process ASAP Anarchist Skins and Punks ASAP Asian Shelter and Advocacy Project ASAP Advanced Scientific Array Processor ASAP Always Stop and Pray ASAP Alarm Severity Assignment Profile (Alcatel) ASAP Advanced Survivability Assessment Program (naval ship design) ASAP Aerospace Safety Automation Program ASAP Arizona Student Achievement Program ASAP Automatic Self Allocating Processors (Convex) ASAP AIDS and Substance Abuse Prevention ASAP Agricultural Sciences Advisory Panel ASAP Advanced Symbolic ATE Programming ASAP A Simplified Asset (disposal) Procedure ASAP Advanced Surfaces and Processes, Inc. ASAP Accelerated Situational Awareness Prototype ASAP After September, April Possibly ASAP Automated Standardized Administrative Program (US Marine Corps) ASAP After School Attention Program ASAP Athabascan Self-Sufficiency Assistance Partnership (Alaskan native assistance plan) ASAP Aeronautics and Space Access Page (NASA) ASAP Antisubmarine Attack Plotter ASAP Accelerated Systems Applications and Products (data processing) ASAP Army Streamlined Acquisition Program ASAP Aviation Safety Analysis Program ASAP Avionics Sensor Adaptive Planner ASAP A Stupid Acting Person (Dilbert comic strip) ASAP Alcohol Servers Awareness Program ASAP Alliance for Sustainable Application Products ASAP Americans Securing American Ports (Act; HR 4833) ASAP Aggressor Space Applications Project ASAP Automated Statistical Analysis Program ASAP Architecture Simulation Analysis Platform ASAP Always Safe, Always Prepared (Texas Petrochemicals LP safety slogan) ASAP All Substance Abuse Providers ASAP Advanced Safety Applications and Procedures Ltd (UK) ASAP Acquisitions Strategies and Plans ASAP Area Studies Advanced Program (US Air Force study abroad program) ASAP Aircrew System Advisory Panel ASAP Administrative Services Automation Program ASAP Administrative Services Automation Project ASAP American Society of Advertising and Promotion ASAP Alabama Substance Abuse Program ASAP All-Star Sunday Afternoon Party (Philippines television show) ASAP Administrative Support/Advancing Productivity ASAP ASEAN Student Action Project ASAP Airplane Safety Awareness Process ASAP Any Subscriber's Access Point (Advanced Fiber Communications) ASAP Automatic Standard Application Package (Sprint) ASAP Agent Services Alliance Program (Lucent/Nec/Nortel) ASAP Automated Support Activity Program ASAP And Sink A Pint ASAP ampullary, seminal vesicle, and prostatic ASAP Asperger's Support for Adolescents Plus (est. 2006) -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, February 16, 2018 8:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: asap? [This email message was received from the Internet and came from outside of Kinder Morgan] Could be "Annual Sales Average Price". Or maybe "As Sold Average Price". One of my companies key performance indicators is something we call ASP. Average Sale Price. It's essentially the total sales dollars divided by the number of units sold. We look at that on a rolling year basis and other timeframes, by individual product, product categories and overall. In our business the lower the price, the more new customers we tend to attract as customers are more likely to try us out with a lower price point. But it also reflects the mix of products being marketed too as Televisions and computers generally cost more than skin creams. On Thu, Feb 15, 2018 at 8:10 PM, wrote: > Hey folks, > Was wondering if any of you have any insight to an acronym that may > have a different meaning... > > In a reporting scenario for retail, what does asap refer to? Accepted > sales ? Processed? Or??? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fahooper at gmail.com Fri Feb 16 11:30:14 2018 From: fahooper at gmail.com (Fred Hooper) Date: Fri, 16 Feb 2018 12:30:14 -0500 Subject: [AccessD] Dirty Cancel Clear all controls In-Reply-To: References: <039501d3a65a$e1c555f0$a55001d0$@verizon.net> <013f01d3a67e$ccc72650$665572f0$@bchacc.com>, <000201d3a6b1$aa49ecb0$feddc610$@att.net> Message-ID: <5A871526.4010708@gmail.com> Hi Dan, The decorrupter has an implicit assumption that the MDB being decorrupted is being run (in the decorrupter) by the same version as created it; it obtains the Version from Application.Version -- which refers to the EXE, not the MDB. In thinking about it, I believe that's the only way you could create the decorrupter program; perhaps if the versions are close it works properly, but the 10 years between Carolyn's versions probably brought too many changes. So decorrupter is identifying Carolyn's code as version 14 and attempting to export/import a version 9 mdb. Carolyn, I think you have two choices: * Convert your program to some other version and use that version to run the decorrupter. o 2002 (10) and 2003 (11) are most similar, but the original decorrupter didn't handle them. My modifications to do so are incomplete, although I'm taking another pass at them today. o Versions 12-15 are fully supported by the decorrupter. + If I were you (and 2010 permits) I'd convert the MDB to 2010 (14) and then run the decorrupter. If the program runs properly afterwards you're set -- and can run it again if you need to. + If that doesn't work and you can't find an older Access version closer to home I'll convert it to 2002, run the decorrupter, and send it back to you. * Don't use the decorrupter. Dan, in this second look for me, I noticed that I added new Version logic code only in TransferOptions. I probably should add it in TransferProperties too. This might be the explanation for the 4 failures to export that I discuss in my Other Access Versions module. I dealt with them by just importing them into the decorrupted MDB; the 200+ successes solved my problems. (You can find my changes by searching for FAH in the modules.) Best, Fred > Dan Waters > Thursday, February 15, 2018 6:44 PM > Hi Carolyn, > > I'll look at that tomorrow. > > Dan > > Sent from my Windows 10 phone > > From: cjlabs > Sent: Thursday, February 15, 2018 17:11 > To: 'Access Developers discussion and problem > solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > When I try to run DeCorrupter, I get an error in CreateDestinationFile > -- File Not Found on > Line 6 fso.CopyFile stgBlankTemplatePath, MstgDestinationFullPath, True > > This is a Access 2000 based database, running in Access 2010. > > > Can someone help with that error? > > > > Thanks > Carolyn Johnson > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin > Sent: Thursday, February 15, 2018 11:03 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Extremely helpful, Dan. It's uncorrupted several dbs of mine that were not > amenable to any other method. > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Dan > Waters > Sent: Thursday, February 15, 2018 6:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > To all, > > The DeCorrupter exports individual objects to text files one by one while > looping through all the objects (except tables). > > Then a new Access file is created programmatically, and all the > objects are > imported from those text files into that new Access file. This ensures > that > whatever may have been going wrong in the original file is left behind. > > Good to hear that it's been helpful! > > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Jim > Dettman > Sent: February 15, 2018 06:46 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > > It's built on top of Appplication.SaveAsText and Application.LoadFromText, > so it's different than importing/exporting objects directly. > > To answer Arthur's question, it's yes. I've been told that the > un-documented functions were created to support the creation of DB's from > templates, but I've never dug into them to verify if that's truly the case > or not. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: Thursday, February 15, 2018 1:54 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Thanks Stuart > > Will the result be different from importing all objects into a new file? > > /gustav > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Stuart McLachlan > Sendt: 15. februar 2018 01:38 > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Dirty Cancel Clear all controls > > For those not familiar with it, I've posted a copy of Decorrupter at > > http://www.camcopng.com/decorrupter > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From df.waters at outlook.com Fri Feb 16 11:43:06 2018 From: df.waters at outlook.com (Dan Waters) Date: Fri, 16 Feb 2018 17:43:06 +0000 Subject: [AccessD] DeCorrupter Info Message-ID: Hi Fred, I had no idea that you had looked at this so thoroughly and made valuable changes. This DeCorrupter was written in Access 2010 - although I created the file as an .mdb. I don't have all the different versions of Access - I'll probably need to find a way to run test with all the versions. I sent Carolyn a test version to get more filepath information - We'll see what happens. And - you mentioned that I could find the changes by looking for FAH in the modules - but where can I find those modules? Thank you! Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Fred Hooper Sent: February 16, 2018 11:30 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dirty Cancel Clear all controls Hi Dan, The decorrupter has an implicit assumption that the MDB being decorrupted is being run (in the decorrupter) by the same version as created it; it obtains the Version from Application.Version -- which refers to the EXE, not the MDB. In thinking about it, I believe that's the only way you could create the decorrupter program; perhaps if the versions are close it works properly, but the 10 years between Carolyn's versions probably brought too many changes. So decorrupter is identifying Carolyn's code as version 14 and attempting to export/import a version 9 mdb. Carolyn, I think you have two choices: * Convert your program to some other version and use that version to run the decorrupter. o 2002 (10) and 2003 (11) are most similar, but the original decorrupter didn't handle them. My modifications to do so are incomplete, although I'm taking another pass at them today. o Versions 12-15 are fully supported by the decorrupter. + If I were you (and 2010 permits) I'd convert the MDB to 2010 (14) and then run the decorrupter. If the program runs properly afterwards you're set -- and can run it again if you need to. + If that doesn't work and you can't find an older Access version closer to home I'll convert it to 2002, run the decorrupter, and send it back to you. * Don't use the decorrupter. Dan, in this second look for me, I noticed that I added new Version logic code only in TransferOptions. I probably should add it in TransferProperties too. This might be the explanation for the 4 failures to export that I discuss in my Other Access Versions module. I dealt with them by just importing them into the decorrupted MDB; the 200+ successes solved my problems. (You can find my changes by searching for FAH in the modules.) Best, Fred > Dan Waters > Thursday, February 15, 2018 6:44 PM > Hi Carolyn, > > I'll look at that tomorrow. > > Dan > > Sent from my Windows 10 phone > > From: cjlabs > Sent: Thursday, February 15, 2018 17:11 > To: 'Access Developers discussion and problem > solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > When I try to run DeCorrupter, I get an error in CreateDestinationFile > -- File Not Found on > Line 6 fso.CopyFile stgBlankTemplatePath, MstgDestinationFullPath, True > > This is a Access 2000 based database, running in Access 2010. > > > Can someone help with that error? > > > > Thanks > Carolyn Johnson > > > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Rocky Smolin > Sent: Thursday, February 15, 2018 11:03 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Extremely helpful, Dan. It's uncorrupted several dbs of mine that were not > amenable to any other method. > > r > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Dan > Waters > Sent: Thursday, February 15, 2018 6:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > To all, > > The DeCorrupter exports individual objects to text files one by one while > looping through all the objects (except tables). > > Then a new Access file is created programmatically, and all the > objects are > imported from those text files into that new Access file. This ensures > that > whatever may have been going wrong in the original file is left behind. > > Good to hear that it's been helpful! > > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Jim > Dettman > Sent: February 15, 2018 06:46 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > > It's built on top of Appplication.SaveAsText and Application.LoadFromText, > so it's different than importing/exporting objects directly. > > To answer Arthur's question, it's yes. I've been told that the > un-documented functions were created to support the creation of DB's from > templates, but I've never dug into them to verify if that's truly the case > or not. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: Thursday, February 15, 2018 1:54 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Thanks Stuart > > Will the result be different from importing all objects into a new file? > > /gustav > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Stuart McLachlan > Sendt: 15. februar 2018 01:38 > Til: Access Developers discussion and problem solving > > Emne: Re: [AccessD] Dirty Cancel Clear all controls > > For those not familiar with it, I've posted a copy of Decorrupter at > > http://www.camcopng.com/decorrupter > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fahooper at gmail.com Fri Feb 16 12:39:10 2018 From: fahooper at gmail.com (Fred Hooper) Date: Fri, 16 Feb 2018 13:39:10 -0500 Subject: [AccessD] DeCorrupter Info In-Reply-To: References: Message-ID: <5A87254E.4010303@gmail.com> Hi Dan, Sorry, I accidently deleted the dropbox link while I was editing; it's: https://www.dropbox.com/s/hntd7ju6rfqlhqw/decorrupter.bdm?dl=0 I'm working with that version now. It's been complicated by the fact that it's the first time I've used Access since moving to Win 10, and I've been dealing with some compatibility issues. I tested my changes -- which were good enough for the moment -- with 2002, although I changed the code for 2003 too so I don't know if 2003 works. Best, Fred > Dan Waters > Friday, February 16, 2018 12:43 PM > Hi Fred, > > I had no idea that you had looked at this so thoroughly and made > valuable changes. This DeCorrupter was written in Access 2010 - > although I created the file as an .mdb. > > I don't have all the different versions of Access - I'll probably need > to find a way to run test with all the versions. > > I sent Carolyn a test version to get more filepath information - We'll > see what happens. > > And - you mentioned that I could find the changes by looking for FAH > in the modules - but where can I find those modules? > > Thank you! > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Fred Hooper > Sent: February 16, 2018 11:30 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Hi Dan, > > The decorrupter has an implicit assumption that the MDB being > decorrupted is being run (in the decorrupter) by the same version as > created it; it obtains the Version from Application.Version -- which > refers to the EXE, not the MDB. In thinking about it, I believe that's > the only way you could create the decorrupter program; perhaps if the > versions are close it works properly, but the 10 years between > Carolyn's versions probably brought too many changes. > > So decorrupter is identifying Carolyn's code as version 14 and > attempting to export/import a version 9 mdb. > > Carolyn, I think you have two choices: > > * Convert your program to some other version and use that version to > run the decorrupter. > o 2002 (10) and 2003 (11) are most similar, but the original > decorrupter didn't handle them. My modifications to do so are > incomplete, although I'm taking another pass at them today. > o Versions 12-15 are fully supported by the decorrupter. > + If I were you (and 2010 permits) I'd convert the MDB to 2010 > (14) and then run the decorrupter. If the program runs > properly afterwards you're set -- and can run it again if > you need to. > + If that doesn't work and you can't find an older Access > version closer to home I'll convert it to 2002, run the > decorrupter, and send it back to you. > * Don't use the decorrupter. > > Dan, in this second look for me, I noticed that I added new Version > logic code only in TransferOptions. I probably should add it in > TransferProperties too. This might be the explanation for the 4 > failures to export that I discuss in my Other Access Versions module. > I dealt with them by just importing them into the decorrupted MDB; the > 200+ successes solved my problems. (You can find my changes by > searching for FAH in the modules.) > > Best, > Fred > From fahooper at gmail.com Fri Feb 16 15:13:27 2018 From: fahooper at gmail.com (Fred Hooper) Date: Fri, 16 Feb 2018 16:13:27 -0500 Subject: [AccessD] DeCorrupter Info In-Reply-To: References: Message-ID: <5A874977.6060306@gmail.com> I've hit a wall, probably caused by Windows 10. I installed Access 2002, including all KB's and SP3 on a new machine. After I found the KB's that MS had removed from their web site I had no further issues. I set MSACCESS.EXE to compatibility mode for SP3 as I had on my previous machine. Working with the DeCorrupter is my first use of Access on this machine. The DeCorrupter can't create either forms or reports from the text files; it has no problems with queries or modules. I suspected that it was a security issue, so just after the destination file was created I paused the processing and allowed Everyone full control of the destination file. I checked again before the program renamed and cleaned up, Everyone still had full control. In between, each form and report failed with Error 2285: Microsoft Access can't create the output file for the respective LoadFromText commands. As this same code worked fine on my departed Win 7 machine, I'm not sure what to do. Does anyone have any ideas? TIA, Fred > Dan Waters > Friday, February 16, 2018 12:43 PM > Hi Fred, > > I had no idea that you had looked at this so thoroughly and made > valuable changes. This DeCorrupter was written in Access 2010 - > although I created the file as an .mdb. > > I don't have all the different versions of Access - I'll probably need > to find a way to run test with all the versions. > > I sent Carolyn a test version to get more filepath information - We'll > see what happens. > > And - you mentioned that I could find the changes by looking for FAH > in the modules - but where can I find those modules? > > Thank you! > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Fred Hooper > Sent: February 16, 2018 11:30 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Hi Dan, > > The decorrupter has an implicit assumption that the MDB being > decorrupted is being run (in the decorrupter) by the same version as > created it; it obtains the Version from Application.Version -- which > refers to the EXE, not the MDB. In thinking about it, I believe that's > the only way you could create the decorrupter program; perhaps if the > versions are close it works properly, but the 10 years between > Carolyn's versions probably brought too many changes. > > So decorrupter is identifying Carolyn's code as version 14 and > attempting to export/import a version 9 mdb. > > Carolyn, I think you have two choices: > > * Convert your program to some other version and use that version to > run the decorrupter. > o 2002 (10) and 2003 (11) are most similar, but the original > decorrupter didn't handle them. My modifications to do so are > incomplete, although I'm taking another pass at them today. > o Versions 12-15 are fully supported by the decorrupter. > + If I were you (and 2010 permits) I'd convert the MDB to 2010 > (14) and then run the decorrupter. If the program runs > properly afterwards you're set -- and can run it again if > you need to. > + If that doesn't work and you can't find an older Access > version closer to home I'll convert it to 2002, run the > decorrupter, and send it back to you. > * Don't use the decorrupter. > > Dan, in this second look for me, I noticed that I added new Version > logic code only in TransferOptions. I probably should add it in > TransferProperties too. This might be the explanation for the 4 > failures to export that I discuss in my Other Access Versions module. > I dealt with them by just importing them into the decorrupted MDB; the > 200+ successes solved my problems. (You can find my changes by > searching for FAH in the modules.) > > Best, > Fred > From df.waters at outlook.com Fri Feb 16 16:25:48 2018 From: df.waters at outlook.com (Dan Waters) Date: Fri, 16 Feb 2018 22:25:48 +0000 Subject: [AccessD] DeCorrupter Info In-Reply-To: <5A874977.6060306@gmail.com> References: <5A874977.6060306@gmail.com> Message-ID: Hi Fred, I wrote the DeCorrupter using Access 2010 on W10 and all still works well. Do you have an option to use Access 2003? Dan -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Fred Hooper Sent: February 16, 2018 15:13 To: Access Developers discussion and problem solving Subject: Re: [AccessD] DeCorrupter Info I've hit a wall, probably caused by Windows 10. I installed Access 2002, including all KB's and SP3 on a new machine. After I found the KB's that MS had removed from their web site I had no further issues. I set MSACCESS.EXE to compatibility mode for SP3 as I had on my previous machine. Working with the DeCorrupter is my first use of Access on this machine. The DeCorrupter can't create either forms or reports from the text files; it has no problems with queries or modules. I suspected that it was a security issue, so just after the destination file was created I paused the processing and allowed Everyone full control of the destination file. I checked again before the program renamed and cleaned up, Everyone still had full control. In between, each form and report failed with Error 2285: Microsoft Access can't create the output file for the respective LoadFromText commands. As this same code worked fine on my departed Win 7 machine, I'm not sure what to do. Does anyone have any ideas? TIA, Fred > Dan Waters Friday, February 16, 2018 > 12:43 PM Hi Fred, > > I had no idea that you had looked at this so thoroughly and made > valuable changes. This DeCorrupter was written in Access 2010 - > although I created the file as an .mdb. > > I don't have all the different versions of Access - I'll probably need > to find a way to run test with all the versions. > > I sent Carolyn a test version to get more filepath information - We'll > see what happens. > > And - you mentioned that I could find the changes by looking for FAH > in the modules - but where can I find those modules? > > Thank you! > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Fred Hooper > Sent: February 16, 2018 11:30 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > Hi Dan, > > The decorrupter has an implicit assumption that the MDB being > decorrupted is being run (in the decorrupter) by the same version as > created it; it obtains the Version from Application.Version -- which > refers to the EXE, not the MDB. In thinking about it, I believe that's > the only way you could create the decorrupter program; perhaps if the > versions are close it works properly, but the 10 years between > Carolyn's versions probably brought too many changes. > > So decorrupter is identifying Carolyn's code as version 14 and > attempting to export/import a version 9 mdb. > > Carolyn, I think you have two choices: > > * Convert your program to some other version and use that version to > run the decorrupter. > o 2002 (10) and 2003 (11) are most similar, but the original > decorrupter didn't handle them. My modifications to do so are > incomplete, although I'm taking another pass at them today. > o Versions 12-15 are fully supported by the decorrupter. > + If I were you (and 2010 permits) I'd convert the MDB to 2010 > (14) and then run the decorrupter. If the program runs properly > afterwards you're set -- and can run it again if you need to. > + If that doesn't work and you can't find an older Access > version closer to home I'll convert it to 2002, run the decorrupter, > and send it back to you. > * Don't use the decorrupter. > > Dan, in this second look for me, I noticed that I added new Version > logic code only in TransferOptions. I probably should add it in > TransferProperties too. This might be the explanation for the 4 > failures to export that I discuss in my Other Access Versions module. > I dealt with them by just importing them into the decorrupted MDB; the > 200+ successes solved my problems. (You can find my changes by > searching for FAH in the modules.) > > Best, > Fred > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fahooper at gmail.com Fri Feb 16 16:44:26 2018 From: fahooper at gmail.com (Fred Hooper) Date: Fri, 16 Feb 2018 22:44:26 +0000 Subject: [AccessD] DeCorrupter Info In-Reply-To: References: <5A874977.6060306@gmail.com> Message-ID: I?ve been thinking of doing so and will. While I?m waiting for it to arrive I?ve found some interesting things in a search ? just on my phone but one thing that stuck through the tiny screen was that the issue can be caused by converted databases and isn?t caused by imported. I?ll try importing everything into a clean db and see if that helps. Thanks, Fred On Fri, Feb 16, 2018 at 5:28 PM Dan Waters wrote: > Hi Fred, > > I wrote the DeCorrupter using Access 2010 on W10 and all still works well. > > Do you have an option to use Access 2003? > > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Fred Hooper > Sent: February 16, 2018 15:13 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DeCorrupter Info > > I've hit a wall, probably caused by Windows 10. > > I installed Access 2002, including all KB's and SP3 on a new machine. > After I found the KB's that MS had removed from their web site I had no > further issues. I set MSACCESS.EXE to compatibility mode for SP3 as I had > on my previous machine. > > Working with the DeCorrupter is my first use of Access on this machine. > > The DeCorrupter can't create either forms or reports from the text files; > it has no problems with queries or modules. > > I suspected that it was a security issue, so just after the destination > file was created I paused the processing and allowed Everyone full control > of the destination file. I checked again before the program renamed and > cleaned up, Everyone still had full control. In between, each form and > report failed with Error 2285: Microsoft Access can't create the output > file for the respective LoadFromText commands. > > As this same code worked fine on my departed Win 7 machine, I'm not sure > what to do. Does anyone have any ideas? > > TIA, > Fred > > Dan Waters Friday, February 16, 2018 > > 12:43 PM Hi Fred, > > > > I had no idea that you had looked at this so thoroughly and made > > valuable changes. This DeCorrupter was written in Access 2010 - > > although I created the file as an .mdb. > > > > I don't have all the different versions of Access - I'll probably need > > to find a way to run test with all the versions. > > > > I sent Carolyn a test version to get more filepath information - We'll > > see what happens. > > > > And - you mentioned that I could find the changes by looking for FAH > > in the modules - but where can I find those modules? > > > > Thank you! > > Dan > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Fred Hooper > > Sent: February 16, 2018 11:30 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > > > Hi Dan, > > > > The decorrupter has an implicit assumption that the MDB being > > decorrupted is being run (in the decorrupter) by the same version as > > created it; it obtains the Version from Application.Version -- which > > refers to the EXE, not the MDB. In thinking about it, I believe that's > > the only way you could create the decorrupter program; perhaps if the > > versions are close it works properly, but the 10 years between > > Carolyn's versions probably brought too many changes. > > > > So decorrupter is identifying Carolyn's code as version 14 and > > attempting to export/import a version 9 mdb. > > > > Carolyn, I think you have two choices: > > > > * Convert your program to some other version and use that version to > > run the decorrupter. > > o 2002 (10) and 2003 (11) are most similar, but the original > > decorrupter didn't handle them. My modifications to do so are > > incomplete, although I'm taking another pass at them today. > > o Versions 12-15 are fully supported by the decorrupter. > > + If I were you (and 2010 permits) I'd convert the MDB to 2010 > > (14) and then run the decorrupter. If the program runs properly > > afterwards you're set -- and can run it again if you need to. > > + If that doesn't work and you can't find an older Access > > version closer to home I'll convert it to 2002, run the decorrupter, > > and send it back to you. > > * Don't use the decorrupter. > > > > Dan, in this second look for me, I noticed that I added new Version > > logic code only in TransferOptions. I probably should add it in > > TransferProperties too. This might be the explanation for the 4 > > failures to export that I discuss in my Other Access Versions module. > > I dealt with them by just importing them into the decorrupted MDB; the > > 200+ successes solved my problems. (You can find my changes by > > searching for FAH in the modules.) > > > > Best, > > Fred > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Feb 17 05:56:14 2018 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 17 Feb 2018 06:56:14 -0500 Subject: [AccessD] DeCorrupter Info In-Reply-To: References: <5A874977.6060306@gmail.com> Message-ID: <089701d3a7e6$4ff50250$efdf06f0$@verizon.net> Watch the default DB format that is set in options. I would imagine with this, the new DB needs to be in the exact same format as the old DB that the objects were exported from. Jim. -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Fred Hooper Sent: Friday, February 16, 2018 5:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DeCorrupter Info I?ve been thinking of doing so and will. While I?m waiting for it to arrive I?ve found some interesting things in a search ? just on my phone but one thing that stuck through the tiny screen was that the issue can be caused by converted databases and isn?t caused by imported. I?ll try importing everything into a clean db and see if that helps. Thanks, Fred On Fri, Feb 16, 2018 at 5:28 PM Dan Waters wrote: > Hi Fred, > > I wrote the DeCorrupter using Access 2010 on W10 and all still works well. > > Do you have an option to use Access 2003? > > Dan > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Fred Hooper > Sent: February 16, 2018 15:13 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DeCorrupter Info > > I've hit a wall, probably caused by Windows 10. > > I installed Access 2002, including all KB's and SP3 on a new machine. > After I found the KB's that MS had removed from their web site I had > no further issues. I set MSACCESS.EXE to compatibility mode for SP3 as > I had on my previous machine. > > Working with the DeCorrupter is my first use of Access on this machine. > > The DeCorrupter can't create either forms or reports from the text > files; it has no problems with queries or modules. > > I suspected that it was a security issue, so just after the > destination file was created I paused the processing and allowed > Everyone full control of the destination file. I checked again before > the program renamed and cleaned up, Everyone still had full control. > In between, each form and report failed with Error 2285: Microsoft > Access can't create the output file for the respective LoadFromText commands. > > As this same code worked fine on my departed Win 7 machine, I'm not > sure what to do. Does anyone have any ideas? > > TIA, > Fred > > Dan Waters Friday, February 16, 2018 > > 12:43 PM Hi Fred, > > > > I had no idea that you had looked at this so thoroughly and made > > valuable changes. This DeCorrupter was written in Access 2010 - > > although I created the file as an .mdb. > > > > I don't have all the different versions of Access - I'll probably > > need to find a way to run test with all the versions. > > > > I sent Carolyn a test version to get more filepath information - > > We'll see what happens. > > > > And - you mentioned that I could find the changes by looking for FAH > > in the modules - but where can I find those modules? > > > > Thank you! > > Dan > > > > -----Original Message----- > > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Fred Hooper > > Sent: February 16, 2018 11:30 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Dirty Cancel Clear all controls > > > > Hi Dan, > > > > The decorrupter has an implicit assumption that the MDB being > > decorrupted is being run (in the decorrupter) by the same version as > > created it; it obtains the Version from Application.Version -- which > > refers to the EXE, not the MDB. In thinking about it, I believe > > that's the only way you could create the decorrupter program; > > perhaps if the versions are close it works properly, but the 10 > > years between Carolyn's versions probably brought too many changes. > > > > So decorrupter is identifying Carolyn's code as version 14 and > > attempting to export/import a version 9 mdb. > > > > Carolyn, I think you have two choices: > > > > * Convert your program to some other version and use that version to > > run the decorrupter. > > o 2002 (10) and 2003 (11) are most similar, but the original > > decorrupter didn't handle them. My modifications to do so are > > incomplete, although I'm taking another pass at them today. > > o Versions 12-15 are fully supported by the decorrupter. > > + If I were you (and 2010 permits) I'd convert the MDB to 2010 > > (14) and then run the decorrupter. If the program runs properly > > afterwards you're set -- and can run it again if you need to. > > + If that doesn't work and you can't find an older Access > > version closer to home I'll convert it to 2002, run the decorrupter, > > and send it back to you. > > * Don't use the decorrupter. > > > > Dan, in this second look for me, I noticed that I added new Version > > logic code only in TransferOptions. I probably should add it in > > TransferProperties too. This might be the explanation for the 4 > > failures to export that I discuss in my Other Access Versions module. > > I dealt with them by just importing them into the decorrupted MDB; > > the > > 200+ successes solved my problems. (You can find my changes by > > searching for FAH in the modules.) > > > > Best, > > Fred > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fahooper at gmail.com Sat Feb 17 11:10:44 2018 From: fahooper at gmail.com (Fred Hooper) Date: Sat, 17 Feb 2018 12:10:44 -0500 Subject: [AccessD] DeCorrupter Info In-Reply-To: <089701d3a7e6$4ff50250$efdf06f0$@verizon.net> References: <5A874977.6060306@gmail.com> <089701d3a7e6$4ff50250$efdf06f0$@verizon.net> Message-ID: <5A886214.6050300@gmail.com> Hi Dan, Last night I imported the file that I want to DeCorrupt into a new, empty database. (Jim, I believe doing this met the effect of your caution.) (Reference: https://bytes.com/topic/access/answers/810467-how-rebuild-objects-text-files; see the comment from Chris Martin that includes the phrase: "This confirms that the problem likely relates to non-native".) This morning I ran the DeCorrupter on it and it ran perfectly -- including rebuilding the five forms and reports that it wouldn't process before! Therefore, I suggest performing these steps before running DeCorrupter: 1. Create a new, empty database. 2. Import all of the old databases' objects into it (making sure to include menus), then setting the necessary references, options and startup values so that it runs properly. 3. Run the DeCorrupter. An observation: I downloaded a copy of the DeCorrupter from your web site yesterday. When I compared it with the copy I downloaded from your web site in July, 2017 I found differences; the current one appears to be an earlier version than the one I downloaded last year. I've placed a copy of it on my dropbox (decorrupter - Orig.bdm) so that you can compare it. The difference I noticed was in the DestinationFileAlreadyExists function, where the new ("Orig") version is aware of .aacsb files while the version I downloaded from your web site a few days ago isn't; I didn't look for other differences. I've placed a new version of my changes in dropbox as decorrupter - FAH.bdm, which is based on the Orig file. I removed the code and table I wrote to handle objects that couldn't be converted, as that is no longer an issue for me. (It was written to be specific to my PC anyway, so it wouldn't have affected others.) Program similar to DeCorrupter: https://sourceforge.net/projects/access-srcutil/ -- This was written in Access 2007 and has been tested on 2000, 2002, 2003 mdb's and 2007 accdb's. Supersets with portions similar to DeCorrupter: These are open source version control systems for Access, I encountered one through a search for LoadFromText as they save the Access code in text form. * https://github.com/bkidwell/msaccess-vcs-integration -- the original attempt, now defunct * https://github.com/ArminBra/msaccess-vcs-integration -- forked from above o 5 contributors, 3 releases, 2 branches * https://github.com/timabell/msaccess-vcs-integration -- forked from above o 23 contributors, 6 releases, 4 branches I haven't looked at any of these yet, but I'll do so over the next few days. Best, Fred > Jim Dettman > Saturday, February 17, 2018 6:56 AM > Watch the default DB format that is set in options. > > I would imagine with this, the new DB needs to be in the exact same > format as the old DB that the objects were exported from. > > Jim. > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Fred Hooper > Sent: Friday, February 16, 2018 5:44 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] DeCorrupter Info > > I?ve been thinking of doing so and will. > > While I?m waiting for it to arrive I?ve found some interesting things > in a search ? just on my phone but one thing that stuck through the > tiny screen was that the issue can be caused by converted databases > and isn?t caused by imported. I?ll try importing everything into a > clean db and see if that helps. > > Thanks, Fred > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > Fred Hooper > Friday, February 16, 2018 5:44 PM > I?ve been thinking of doing so and will. > > While I?m waiting for it to arrive I?ve found some interesting things > in a search ? just on my phone but one thing that stuck through the > tiny screen was that the issue can be caused by converted databases > and isn?t caused by imported. I?ll try importing everything into a > clean db and see if that helps. > > Thanks, Fred > > Dan Waters > Friday, February 16, 2018 5:25 PM > Hi Fred, > > I wrote the DeCorrupter using Access 2010 on W10 and all still works well. > > Do you have an option to use Access 2003? > > Dan > From fahooper at gmail.com Sat Feb 17 15:01:45 2018 From: fahooper at gmail.com (Fred Hooper) Date: Sat, 17 Feb 2018 16:01:45 -0500 Subject: [AccessD] DeCorrupter Info In-Reply-To: <089701d3a7e6$4ff50250$efdf06f0$@verizon.net> References: <5A874977.6060306@gmail.com> <089701d3a7e6$4ff50250$efdf06f0$@verizon.net> Message-ID: <5A889839.9080208@gmail.com> Hi Dan, I've looked at two of the projects: https://sourceforge.net/projects/access-srcutil/ -- It's incomplete and adds little if anything to what you've done. It doesn't use tables to control options and properties, as you did, but it did so successfully on my test file, so it may be more version-independent. It uses a tree view to control what's exported and imported, but ignored the top node (e.g. Forms) -- so I modified it to use the top node (copy available if anyone wishes). It handled Tables poorly, and couldn't recreate linked tables. Overall, I think your DeCorrupter is both better and easier to use. I tried both versions of my test file and it responded the same as DeCorrupter to the differently-sourced objects. So this seems to be a result of the SaveAsText/LoadFromText processing and supports my suggestion to import the objects first. https://github.com/timabell/msaccess-vcs-integration -- This is a VB6 system, so the code is understandable to Access people. I didn't really look at the administrative stuff in the code nor run any of it, I mostly looked at how it handled the to/from text file stuff. The writers don't seem to use any MDB files, only AACSB files -- which reduced my interest. They do include two things that are different: (1) Convert between UTF-8 and UCS2-little-endian; I have no idea how useful this might be, their comments about it refer to external programs which I don't use; and, (2) Remove unneeded information from the text files a/k/a "sanitize" them; I suspect this has little benefit beyond reducing disk space used, a meaningless advantage. This trip through others' code has reinforced my appreciation for your approach and code. The general export/import approach adopted by the first didn't make its potential use apparent, so it doesn't really have one. While a VCS is a good idea in an organization, I haven't encountered multiple coders on a single Access project -- so I doubt it has wide enough potential usage to justify the effort it has taken. The preceding projects have the same approach and limitations; I'm not going to look further at them. In contrast, "DeCorrupter" has a clear objective and use; there's nothing extraneous and it accomplishes its purpose. I really appreciate the quality of your work. Thank you. On another subject, I should have a copy of 2003 in a few days and will use it to populate the columns of the appropriate tables. Best, Fred From rockysmolin at bchacc.com Mon Feb 19 11:41:10 2018 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 19 Feb 2018 09:41:10 -0800 Subject: [AccessD] Property Sheet Message-ID: <002b01d3a9a8$d4cdbfd0$7e693f70$@bchacc.com> Dear List: I have a FE in A2010 - it's an mdb, don't know if that makes a difference. Anyway, when I go to the form view the property sheet remains open - can't move it, can't close it. Since I have other apps where this doesn't happen, I assume it's a setting but I can't find it. How do I get the property sheet to disappear when going from design view to form view. MTIA Rocky Smolin Beach Access Software 760-683-5777 www.bchacc.com www.e-z-mrp.com Skype: rocky.smolin From fhtapia at gmail.com Tue Feb 20 08:29:40 2018 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Tue, 20 Feb 2018 14:29:40 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: I?ll be following up on this today, to find out! Thanks Paul :) On Thu, Feb 15, 2018 at 10:32 PM Paul Hartland via AccessD < accessd at databaseadvisors.com> wrote: > As soon as possible, or my company comes up with its own at times and > judging by what I have seen at work for sales etc what about 'annual sales > average percent' or 'annual sales average purchase' > > On 16 Feb 2018 05:08, "Darryl Collins" > wrote: > > Yes, I would vote with "As Soon As Possible" too. Unless you have a > different context (?) > > -----Original Message----- > From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Dan Waters > Sent: Friday, 16 February 2018 2:15 PM > To: Access Developers discussion and problem solving < > accessd at databaseadvisors.com> > Subject: Re: [AccessD] OT: asap? > > As soon as possible! > > Sent from my Windows 10 phone > > From: fhtapia at gmail.com > Sent: Thursday, February 15, 2018 20:16 > To: Access Developers discussion and problem solving databaseadvisors.com> > Subject: [AccessD] OT: asap? > > Hey folks, > Was wondering if any of you have any insight to an acronym that may have a > different meaning... > > In a reporting scenario for retail, what does asap refer to? Accepted sales > ? Processed? Or??? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fhtapia at gmail.com Tue Feb 20 08:31:42 2018 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Tue, 20 Feb 2018 14:31:42 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: Thank Gary, I?ll know today! And this explanation makes lots of sense. On Fri, Feb 16, 2018 at 6:30 AM Gary Kjos wrote: > Could be "Annual Sales Average Price". Or maybe "As Sold Average > Price". One of my companies key performance indicators is something > we call ASP. Average Sale Price. It's essentially the total sales > dollars divided by the number of units sold. We look at that on a > rolling year basis and other timeframes, by individual product, > product categories and overall. In our business the lower the price, > the more new customers we tend to attract as customers are more likely > to try us out with a lower price point. But it also reflects the mix > of products being marketed too as Televisions and computers generally > cost more than skin creams. > > On Thu, Feb 15, 2018 at 8:10 PM, wrote: > > Hey folks, > > Was wondering if any of you have any insight to an acronym that may have > a > > different meaning... > > > > In a reporting scenario for retail, what does asap refer to? Accepted > sales > > ? Processed? Or??? > > -- > > 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 fuller.artful at gmail.com Tue Feb 20 10:02:54 2018 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 20 Feb 2018 11:02:54 -0500 Subject: [AccessD] OT: asap? In-Reply-To: References: Message-ID: Francisco, Just a minor comment. ASAP is not an acronym but rather an abbreviation. The difference is that an acronym forms a word in itself, for example SPECTRE (from the James Bond books and movies) while FBI is not a word and is therefore an abbreviation. ASAP, while pronouncable, is not a word. Arthur the pedant ? From stuart at lexacorp.com.pg Tue Feb 20 11:00:42 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Feb 2018 03:00:42 +1000 Subject: [AccessD] OT: asap? In-Reply-To: References: , , Message-ID: <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg> I beg to differ. I generally pronounce it as "aye-sap", not "aye ess aye pee". If it pronounced as a word it is an acronym, regardless of whether or not it appears in a dictionary. It is only an abbreviation if each letter is sounded separately. On 20 Feb 2018 at 11:02, Arthur Fuller wrote: > Francisco, > > Just a minor comment. ASAP is not an acronym but rather an > abbreviation. The difference is that an acronym forms a word in > itself, for example SPECTRE (from the James Bond books and movies) > while FBI is not a word and is therefore an abbreviation. ASAP, while > pronouncable, is not a word. > > Arthur the pedant > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wrwehler at gmail.com Tue Feb 20 11:06:52 2018 From: wrwehler at gmail.com (Ryan W) Date: Tue, 20 Feb 2018 11:06:52 -0600 Subject: [AccessD] OT: asap? In-Reply-To: <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg> References: <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg> Message-ID: It?s actually an initialism if each letter is sounded separately such as CPU and A.S.A.P (and not aye-sap) Sent from my iPhone > On Feb 20, 2018, at 11:00 AM, Stuart McLachlan wrote: > > I beg to differ. I generally pronounce it as "aye-sap", not "aye ess aye pee". > > If it pronounced as a word it is an acronym, regardless of whether or not it appears in a > dictionary. It is only an abbreviation if each letter is sounded separately. > >> On 20 Feb 2018 at 11:02, Arthur Fuller wrote: >> >> Francisco, >> >> Just a minor comment. ASAP is not an acronym but rather an >> abbreviation. The difference is that an acronym forms a word in >> itself, for example SPECTRE (from the James Bond books and movies) >> while FBI is not a word and is therefore an abbreviation. ASAP, while >> pronouncable, is not a word. >> >> Arthur the pedant >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From fhtapia at gmail.com Tue Feb 20 14:32:56 2018 From: fhtapia at gmail.com (fhtapia at gmail.com) Date: Tue, 20 Feb 2018 20:32:56 +0000 Subject: [AccessD] OT: asap? In-Reply-To: References: <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg> Message-ID: So the answer was ?At once orders? :-o On Tue, Feb 20, 2018 at 9:10 AM Ryan W wrote: > It?s actually an initialism if each letter is sounded separately such as > CPU and A.S.A.P (and not aye-sap) > > > > Sent from my iPhone > > > On Feb 20, 2018, at 11:00 AM, Stuart McLachlan > wrote: > > > > I beg to differ. I generally pronounce it as "aye-sap", not "aye ess > aye pee". > > > > If it pronounced as a word it is an acronym, regardless of whether or > not it appears in a > > dictionary. It is only an abbreviation if each letter is sounded > separately. > > > >> On 20 Feb 2018 at 11:02, Arthur Fuller wrote: > >> > >> Francisco, > >> > >> Just a minor comment. ASAP is not an acronym but rather an > >> abbreviation. The difference is that an acronym forms a word in > >> itself, for example SPECTRE (from the James Bond books and movies) > >> while FBI is not a word and is therefore an abbreviation. ASAP, while > >> pronouncable, is not a word. > >> > >> Arthur the pedant > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Tue Feb 20 15:09:52 2018 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 20 Feb 2018 15:09:52 -0600 Subject: [AccessD] OT: asap? In-Reply-To: References: <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg> Message-ID: Nobody wins! "As soon as possible" is as close as it gets I guess. But it wouldn't win on Jeopardy On Tue, Feb 20, 2018 at 2:32 PM, wrote: > So the answer was ?At once orders? :-o > On Tue, Feb 20, 2018 at 9:10 AM Ryan W wrote: > >> It?s actually an initialism if each letter is sounded separately such as >> CPU and A.S.A.P (and not aye-sap) >> >> >> >> Sent from my iPhone >> >> > On Feb 20, 2018, at 11:00 AM, Stuart McLachlan >> wrote: >> > >> > I beg to differ. I generally pronounce it as "aye-sap", not "aye ess >> aye pee". >> > >> > If it pronounced as a word it is an acronym, regardless of whether or >> not it appears in a >> > dictionary. It is only an abbreviation if each letter is sounded >> separately. >> > >> >> On 20 Feb 2018 at 11:02, Arthur Fuller wrote: >> >> >> >> Francisco, >> >> >> >> Just a minor comment. ASAP is not an acronym but rather an >> >> abbreviation. The difference is that an acronym forms a word in >> >> itself, for example SPECTRE (from the James Bond books and movies) >> >> while FBI is not a word and is therefore an abbreviation. ASAP, while >> >> pronouncable, is not a word. >> >> >> >> Arthur the pedant >> >> >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> > >> > >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 stuart at lexacorp.com.pg Tue Feb 20 17:10:33 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Feb 2018 09:10:33 +1000 Subject: [AccessD] OT: asap? In-Reply-To: References: , <5A8C543A.23986.6964E9AC@stuart.lexacorp.com.pg>, Message-ID: <5A8CAAE9.1737.6AB7844C@stuart.lexacorp.com.pg> I stand corrected. I shouldn't have said "only an abbreviation if..." Initialisms and Acroynms are just two special cases of abbreviations. Shortenings and contractions are also abbreviations (And both of these can be further divided into Types 1 and 2). :) "The Dr Jones told me he'd heard that NATO troops would be given the WHO recommended flu vaccination in Feb" contains, in order: a Type 1 contraction a Type 2 contraction, an Acronym, an Initialisation, a Type 1 shortening and a Type 2 shortening. Now should there be a comma after "Type 1 shortening"? :) On 20 Feb 2018 at 11:06, Ryan W wrote: > It?s actually an initialism if each letter is sounded separately > such as CPU and A.S.A.P (and not aye-sap) > > > > Sent from my iPhone > > > On Feb 20, 2018, at 11:00 AM, Stuart McLachlan > > wrote: > > > > I beg to differ. I generally pronounce it as "aye-sap", not "aye > > ess aye pee". > > > > If it pronounced as a word it is an acronym, regardless of whether > > or not it appears in a dictionary. It is only an abbreviation if > > each letter is sounded separately. > > > >> On 20 Feb 2018 at 11:02, Arthur Fuller wrote: > >> > >> Francisco, > >> > >> Just a minor comment. ASAP is not an acronym but rather an > >> abbreviation. The difference is that an acronym forms a word in > >> itself, for example SPECTRE (from the James Bond books and movies) > >> while FBI is not a word and is therefore an abbreviation. ASAP, > >> while pronouncable, is not a word. > >> > >> Arthur the pedant > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Feb 21 02:59:15 2018 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2018 08:59:15 +0000 Subject: [AccessD] Converting Imperial measures Message-ID: Hi all And yes a small addition ("+0") to also accept Null values and empty strings and return zero for these: DecimalFeet = Eval(Replace(Replace(Replace(Replace("+0" & m, """", ""), "'", "*12 "), " ", "+"), "-", "+")) / 12 /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 16. februar 2018 16:38 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Converting Imperial measures Hi all One more Replace is needed to accept strings with a dash like 8' 5-7/16": DecimalFeet = Eval(Replace(Replace(Replace(Replace(m, """", ""), "'", "*12 "), " ", "+"), "-", "+")) / 12 When DO the US enter modern time and switch to decimals? /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Gustav Brock Sendt: 16. februar 2018 15:59 Til: Access Developers discussion and problem solving Emne: [AccessD] Converting Imperial measures Hi all Good examples for usage of Eval are rare, but here is one - a one-liner for converting Imperial feet-inch measures (string) to decimal feet (double): DecimalFeet = Eval(Replace(Replace(Replace([Measurement], """", ""), "'", "*12 "), " ", "+")) / 12 It will accept expressions like: 6' 7" 7 3/4" 6'7" 6' 7" 6' 5 3/16" /gustav From wrwehler at gmail.com Wed Feb 21 15:36:03 2018 From: wrwehler at gmail.com (Ryan W) Date: Wed, 21 Feb 2018 15:36:03 -0600 Subject: [AccessD] Is there a better way? (AfterUpdate event) Message-ID: https://i.imgur.com/hhUUmWw.png (screenshot) I've got this form where a user selects 4 samples from it on the left side On the right side are the compounds associated with those samples, in this example it's a very short list (1 compound). In the "Rpt" checkbox on the right side I have code that when the box is toggled, it updates the other 3 selected samples to match the toggle list. Simple right? Well imagine these 4 samples have a list of 60 analytes. If you toggle them one by one, it works beautifully. But not all the samples may have the toggle list in the same state: Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If you don't touch sample 1 for silver you still have to go fix it for Sample 2 because you wanted silver on and it's not on across the board. So what I was toying with is selecting the entire RPT column on the right, and re-pasting your "corrected list" back into itself. Unfortunately this doesn't work right. The other 3 samples don't always get the matching target list. It sporadically leaves some toggled or untoggled. I imagine this is the local access db engine (local tables) not being able to lock/unlock the table fast enough since the AfterUpdate code is executed upwards of 60 times (if you copy and paste the entire column back in). Right now this is using DoCmd.RunSQL but I've also tried using a DAO recordset which is even worse. It tells me various items are not updatable where at least RunSQL gets me 75% of the way there. Is there another approach for this that might work better? The only other thing I have come up with is to have a Command Button that runs out and updates the "final list" rather than have the user paste the column back over itself. It might work better like that since it would be a single execute with a self join to match the target lists up. But I really don't want to go to a command button if I don't have to. So.. I'm looking for ideas on what else I might be able to try? From stuart at lexacorp.com.pg Wed Feb 21 16:44:23 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2018 08:44:23 +1000 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: References: Message-ID: <5A8DF647.12637.6FC5E99E@stuart.lexacorp.com.pg> Not sure I follow you, but it seems to me that you are trying to select multiple samples and analytes. Without nowing the underlying data structures, it's hard to say what the best approach is, but this seems feasible: Instead of the "sample + analyte" and "report" list, why not just have three lists, The first two (samples and analytes) would be selectable. The "report" list would be display only and show the currently selected sample/testcode pairs. . When you select/ deselect an item in either the sample or analyte list, requery the "report" list. On 21 Feb 2018 at 15:36, Ryan W wrote: > https://i.imgur.com/hhUUmWw.png (screenshot) > > I've got this form where a user selects 4 samples from it on the left > side > > On the right side are the compounds associated with those samples, in > this example it's a very short list (1 compound). > > In the "Rpt" checkbox on the right side I have code that when the box > is toggled, it updates the other 3 selected samples to match the > toggle list. > > Simple right? > > > Well imagine these 4 samples have a list of 60 analytes. If you > toggle them one by one, it works beautifully. But not all the samples > may have the toggle list in the same state: > > Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If you > don't touch sample 1 for silver you still have to go fix it for Sample > 2 because you wanted silver on and it's not on across the board. > > So what I was toying with is selecting the entire RPT column on the > right, and re-pasting your "corrected list" back into itself. > > Unfortunately this doesn't work right. The other 3 samples don't > always get the matching target list. It sporadically leaves some > toggled or untoggled. > > I imagine this is the local access db engine (local tables) not being > able to lock/unlock the table fast enough since the AfterUpdate code > is executed upwards of 60 times (if you copy and paste the entire > column back in). > > > Right now this is using DoCmd.RunSQL but I've also tried using a DAO > recordset which is even worse. It tells me various items are not > updatable where at least RunSQL gets me 75% of the way there. > > > Is there another approach for this that might work better? The only > other thing I have come up with is to have a Command Button that runs > out and updates the "final list" rather than have the user paste the > column back over itself. It might work better like that since it > would be a single execute with a self join to match the target lists > up. But I really don't want to go to a command button if I don't have > to. > > So.. I'm looking for ideas on what else I might be able to try? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wrwehler at gmail.com Wed Feb 21 17:03:30 2018 From: wrwehler at gmail.com (Ryan W) Date: Wed, 21 Feb 2018 17:03:30 -0600 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: <5A8DF647.12637.6FC5E99E@stuart.lexacorp.com.pg> References: <5A8DF647.12637.6FC5E99E@stuart.lexacorp.com.pg> Message-ID: Well that's "more or less" what's happening here.. The user inputs some data.. and presses "get data" and it fills in these two tables. They then select 4 samples containing the same TestCode. The tables are linked by a Sequence (auto number). So each sample has a sequence, and many analytes have that same sequence number (PK/FK relationship). Then they match the report list for the 4 samples, which I'm attempting to 'synchronize' rather unsuccessfully depending on use. As I said, right now the logic to select or deselect the same analyte across the 3 remaining selected samples is spotty if you fix one Sample list and then attempt to "mass update" the check box list by pasting the column back over itself (thus triggering AfterUpdate X times, where X is between 1 and probably 90 or more, depending on test complexity). The longer the list the worse it gets at matching the list up. Each sample has to have the same equal amount of analytes selected because the transform/pivot query goes sideways if data is missing. On Wed, Feb 21, 2018 at 4:44 PM, Stuart McLachlan wrote: > Not sure I follow you, but it seems to me that you are trying to select > multiple samples and > analytes. Without nowing the underlying data structures, it's hard to say > what the best > approach is, but this seems feasible: > > Instead of the "sample + analyte" and "report" list, why not just have > three lists, The first two > (samples and analytes) would be selectable. The "report" list would be > display only and show > the currently selected sample/testcode pairs. . When you select/ deselect > an item in either > the sample or analyte list, requery the "report" list. > > > On 21 Feb 2018 at 15:36, Ryan W wrote: > > > https://i.imgur.com/hhUUmWw.png (screenshot) > > > > I've got this form where a user selects 4 samples from it on the left > > side > > > > On the right side are the compounds associated with those samples, in > > this example it's a very short list (1 compound). > > > > In the "Rpt" checkbox on the right side I have code that when the box > > is toggled, it updates the other 3 selected samples to match the > > toggle list. > > > > Simple right? > > > > > > Well imagine these 4 samples have a list of 60 analytes. If you > > toggle them one by one, it works beautifully. But not all the samples > > may have the toggle list in the same state: > > > > Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If you > > don't touch sample 1 for silver you still have to go fix it for Sample > > 2 because you wanted silver on and it's not on across the board. > > > > So what I was toying with is selecting the entire RPT column on the > > right, and re-pasting your "corrected list" back into itself. > > > > Unfortunately this doesn't work right. The other 3 samples don't > > always get the matching target list. It sporadically leaves some > > toggled or untoggled. > > > > I imagine this is the local access db engine (local tables) not being > > able to lock/unlock the table fast enough since the AfterUpdate code > > is executed upwards of 60 times (if you copy and paste the entire > > column back in). > > > > > > Right now this is using DoCmd.RunSQL but I've also tried using a DAO > > recordset which is even worse. It tells me various items are not > > updatable where at least RunSQL gets me 75% of the way there. > > > > > > Is there another approach for this that might work better? The only > > other thing I have come up with is to have a Command Button that runs > > out and updates the "final list" rather than have the user paste the > > column back over itself. It might work better like that since it > > would be a single execute with a self join to match the target lists > > up. But I really don't want to go to a command button if I don't have > > to. > > > > So.. I'm looking for ideas on what else I might be able to try? > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Wed Feb 21 17:22:36 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2018 09:22:36 +1000 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: References: , <5A8DF647.12637.6FC5E99E@stuart.lexacorp.com.pg>, Message-ID: <5A8DFF3C.23723.6FE8E97F@stuart.lexacorp.com.pg> Let's confirm the terminology, it will help :) How does the user input data. Directly into a table, or through a form. If a form, what is the data source of that form. Are "these two tables" as shon in your linked image, actual tables. If so are they temporary tables created for this prupose or are they the actual primary data tables. This: > Each sample has to have the same equal amount of analytes selected > because the transform/pivot query goes sideways if data is missing. suggests that you shoulld definitely be just picking Sample and Testcode/Analyte and using those two parameters to select the appropriate data for reporting. I hope that Run, Sample and TestCodes are three separate related tables in your database :) On 21 Feb 2018 at 17:03, Ryan W wrote: > Well that's "more or less" what's happening here.. The user inputs > some data.. and presses "get data" and it fills in these two tables. > They then select 4 samples containing the same TestCode. The tables > are linked by a Sequence (auto number). So each sample has a sequence, > and many analytes have that same sequence number (PK/FK relationship). > Then they match the report list for the 4 samples, which I'm > attempting to 'synchronize' rather unsuccessfully depending on use. > > As I said, right now the logic to select or deselect the same analyte > across the 3 remaining selected samples is spotty if you fix one > Sample list and then attempt to "mass update" the check box list by > pasting the column back over itself (thus triggering AfterUpdate X > times, where X is between 1 and probably 90 or more, depending on test > complexity). The longer the list the worse it gets at matching the > list up. > > Each sample has to have the same equal amount of analytes selected > because the transform/pivot query goes sideways if data is missing. > > On Wed, Feb 21, 2018 at 4:44 PM, Stuart McLachlan > wrote: > > > Not sure I follow you, but it seems to me that you are trying to > > select multiple samples and analytes. Without nowing the underlying > > data structures, it's hard to say what the best approach is, but > > this seems feasible: > > > > Instead of the "sample + analyte" and "report" list, why not just > > have > > three lists, The first two > > (samples and analytes) would be selectable. The "report" list would > > be display only and show the currently selected sample/testcode > > pairs. . When you select/ deselect an item in either the sample or > > analyte list, requery the "report" list. > > > > > > On 21 Feb 2018 at 15:36, Ryan W wrote: > > > > > https://i.imgur.com/hhUUmWw.png (screenshot) > > > > > > I've got this form where a user selects 4 samples from it on the > > > left side > > > > > > On the right side are the compounds associated with those samples, > > > in this example it's a very short list (1 compound). > > > > > > In the "Rpt" checkbox on the right side I have code that when the > > > box is toggled, it updates the other 3 selected samples to match > > > the toggle list. > > > > > > Simple right? > > > > > > > > > Well imagine these 4 samples have a list of 60 analytes. If you > > > toggle them one by one, it works beautifully. But not all the > > > samples may have the toggle list in the same state: > > > > > > Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If > > > you don't touch sample 1 for silver you still have to go fix it > > > for Sample 2 because you wanted silver on and it's not on across > > > the board. > > > > > > So what I was toying with is selecting the entire RPT column on > > > the right, and re-pasting your "corrected list" back into itself. > > > > > > Unfortunately this doesn't work right. The other 3 samples don't > > > always get the matching target list. It sporadically leaves some > > > toggled or untoggled. > > > > > > I imagine this is the local access db engine (local tables) not > > > being able to lock/unlock the table fast enough since the > > > AfterUpdate code is executed upwards of 60 times (if you copy and > > > paste the entire column back in). > > > > > > > > > Right now this is using DoCmd.RunSQL but I've also tried using a > > > DAO recordset which is even worse. It tells me various items are > > > not updatable where at least RunSQL gets me 75% of the way there. > > > > > > > > > Is there another approach for this that might work better? The > > > only other thing I have come up with is to have a Command Button > > > that runs out and updates the "final list" rather than have the > > > user paste the column back over itself. It might work better like > > > that since it would be a single execute with a self join to match > > > the target lists up. But I really don't want to go to a command > > > button if I don't have to. > > > > > > So.. I'm looking for ideas on what else I might be able to try? -- > > > AccessD mailing list AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd Website: > > > http://www.databaseadvisors.com > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Wed Feb 21 17:33:45 2018 From: wrwehler at gmail.com (Ryan Wehler) Date: Wed, 21 Feb 2018 17:33:45 -0600 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: <5A8DFF3C.23723.6FE8E97F@stuart.lexacorp.com.pg> References: <5A8DF647.12637.6FC5E99E@stuart.lexacorp.com.pg> <5A8DFF3C.23723.6FE8E97F@stuart.lexacorp.com.pg> Message-ID: What you?re seeing are temp tables based closely on real tables. I am not sure I follow on what you are suggesting. We are picking the samples which are related to a specific test (thus picking that test already) and then selecting the analyte list for one sample (at a time, since my code isn?t reliable for this yet) > On Feb 21, 2018, at 5:22 PM, Stuart McLachlan wrote: > > Let's confirm the terminology, it will help :) > > How does the user input data. Directly into a table, or through a form. If a form, what is the > data source of that form. > > Are "these two tables" as shon in your linked image, actual tables. If so are they temporary > tables created for this prupose or are they the actual primary data tables. > > This: >> Each sample has to have the same equal amount of analytes selected >> because the transform/pivot query goes sideways if data is missing. > > suggests that you shoulld definitely be just picking Sample and Testcode/Analyte and using > those two parameters to select the appropriate data for reporting. > > I hope that Run, Sample and TestCodes are three separate related tables in your database :) > > > >> On 21 Feb 2018 at 17:03, Ryan W wrote: >> >> Well that's "more or less" what's happening here.. The user inputs >> some data.. and presses "get data" and it fills in these two tables. >> They then select 4 samples containing the same TestCode. The tables >> are linked by a Sequence (auto number). So each sample has a sequence, >> and many analytes have that same sequence number (PK/FK relationship). >> Then they match the report list for the 4 samples, which I'm >> attempting to 'synchronize' rather unsuccessfully depending on use. >> >> As I said, right now the logic to select or deselect the same analyte >> across the 3 remaining selected samples is spotty if you fix one >> Sample list and then attempt to "mass update" the check box list by >> pasting the column back over itself (thus triggering AfterUpdate X >> times, where X is between 1 and probably 90 or more, depending on test >> complexity). The longer the list the worse it gets at matching the >> list up. >> >> Each sample has to have the same equal amount of analytes selected >> because the transform/pivot query goes sideways if data is missing. >> >> On Wed, Feb 21, 2018 at 4:44 PM, Stuart McLachlan >> wrote: >> >>> Not sure I follow you, but it seems to me that you are trying to >>> select multiple samples and analytes. Without nowing the underlying >>> data structures, it's hard to say what the best approach is, but >>> this seems feasible: >>> >>> Instead of the "sample + analyte" and "report" list, why not just >>> have >>> three lists, The first two >>> (samples and analytes) would be selectable. The "report" list would >>> be display only and show the currently selected sample/testcode >>> pairs. . When you select/ deselect an item in either the sample or >>> analyte list, requery the "report" list. >>> >>> >>>> On 21 Feb 2018 at 15:36, Ryan W wrote: >>>> >>>> https://i.imgur.com/hhUUmWw.png (screenshot) >>>> >>>> I've got this form where a user selects 4 samples from it on the >>>> left side >>>> >>>> On the right side are the compounds associated with those samples, >>>> in this example it's a very short list (1 compound). >>>> >>>> In the "Rpt" checkbox on the right side I have code that when the >>>> box is toggled, it updates the other 3 selected samples to match >>>> the toggle list. >>>> >>>> Simple right? >>>> >>>> >>>> Well imagine these 4 samples have a list of 60 analytes. If you >>>> toggle them one by one, it works beautifully. But not all the >>>> samples may have the toggle list in the same state: >>>> >>>> Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If >>>> you don't touch sample 1 for silver you still have to go fix it >>>> for Sample 2 because you wanted silver on and it's not on across >>>> the board. >>>> >>>> So what I was toying with is selecting the entire RPT column on >>>> the right, and re-pasting your "corrected list" back into itself. >>>> >>>> Unfortunately this doesn't work right. The other 3 samples don't >>>> always get the matching target list. It sporadically leaves some >>>> toggled or untoggled. >>>> >>>> I imagine this is the local access db engine (local tables) not >>>> being able to lock/unlock the table fast enough since the >>>> AfterUpdate code is executed upwards of 60 times (if you copy and >>>> paste the entire column back in). >>>> >>>> >>>> Right now this is using DoCmd.RunSQL but I've also tried using a >>>> DAO recordset which is even worse. It tells me various items are >>>> not updatable where at least RunSQL gets me 75% of the way there. >>>> >>>> >>>> Is there another approach for this that might work better? The >>>> only other thing I have come up with is to have a Command Button >>>> that runs out and updates the "final list" rather than have the >>>> user paste the column back over itself. It might work better like >>>> that since it would be a single execute with a self join to match >>>> the target lists up. But I really don't want to go to a command >>>> button if I don't have to. >>>> >>>> So.. I'm looking for ideas on what else I might be able to try? -- >>>> AccessD mailing list AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd Website: >>>> http://www.databaseadvisors.com >>>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 21 19:10:51 2018 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2018 11:10:51 +1000 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: References: , <5A8DFF3C.23723.6FE8E97F@stuart.lexacorp.com.pg>, Message-ID: <5A8E189B.14772.704C057A@stuart.lexacorp.com.pg> I'm getting confused. What is the difference between an Analyte and a Test? It seems to me that you want to end up with a grid of Results for Run x, Test Codes "abc","xyz" sample ABC XYZ Sample1 1.2 27 Sample2 1.5 36 Sample3 1.4 24 Do I have that right? On 21 Feb 2018 at 17:33, Ryan Wehler wrote: > What you?re seeing are temp tables based closely on real tables. > > I am not sure I follow on what you are suggesting. We are picking the > samples which are related to a specific test (thus picking that test > already) and then selecting the analyte list for one sample (at a > time, since my code isn?t reliable for this yet) > > > > > > > On Feb 21, 2018, at 5:22 PM, Stuart McLachlan > > wrote: > > > > Let's confirm the terminology, it will help :) > > > > How does the user input data. Directly into a table, or through a > > form. If a form, what is the data source of that form. > > > > Are "these two tables" as shon in your linked image, actual tables. > > If so are they temporary tables created for this prupose or are they > > the actual primary data tables. > > > > This: > >> Each sample has to have the same equal amount of analytes selected > >> because the transform/pivot query goes sideways if data is missing. > > > > suggests that you shoulld definitely be just picking Sample and > > Testcode/Analyte and using those two parameters to select the > > appropriate data for reporting. > > > > I hope that Run, Sample and TestCodes are three separate related > > tables in your database :) > > > > > > > >> On 21 Feb 2018 at 17:03, Ryan W wrote: > >> > >> Well that's "more or less" what's happening here.. The user inputs > >> some data.. and presses "get data" and it fills in these two > >> tables. They then select 4 samples containing the same TestCode. > >> The tables are linked by a Sequence (auto number). So each sample > >> has a sequence, and many analytes have that same sequence number > >> (PK/FK relationship). Then they match the report list for the 4 > >> samples, which I'm attempting to 'synchronize' rather > >> unsuccessfully depending on use. > >> > >> As I said, right now the logic to select or deselect the same > >> analyte across the 3 remaining selected samples is spotty if you > >> fix one Sample list and then attempt to "mass update" the check box > >> list by pasting the column back over itself (thus triggering > >> AfterUpdate X times, where X is between 1 and probably 90 or more, > >> depending on test complexity). The longer the list the worse it > >> gets at matching the list up. > >> > >> Each sample has to have the same equal amount of analytes selected > >> because the transform/pivot query goes sideways if data is missing. > >> > >> On Wed, Feb 21, 2018 at 4:44 PM, Stuart McLachlan > >> wrote: > >> > >>> Not sure I follow you, but it seems to me that you are trying to > >>> select multiple samples and analytes. Without nowing the > >>> underlying data structures, it's hard to say what the best > >>> approach is, but this seems feasible: > >>> > >>> Instead of the "sample + analyte" and "report" list, why not just > >>> have three lists, The first two (samples and analytes) would be > >>> selectable. The "report" list would be display only and show the > >>> currently selected sample/testcode pairs. . When you select/ > >>> deselect an item in either the sample or analyte list, requery the > >>> "report" list. > >>> > >>> > >>>> On 21 Feb 2018 at 15:36, Ryan W wrote: > >>>> > >>>> https://i.imgur.com/hhUUmWw.png (screenshot) > >>>> > >>>> I've got this form where a user selects 4 samples from it on the > >>>> left side > >>>> > >>>> On the right side are the compounds associated with those > >>>> samples, in this example it's a very short list (1 compound). > >>>> > >>>> In the "Rpt" checkbox on the right side I have code that when the > >>>> box is toggled, it updates the other 3 selected samples to match > >>>> the toggle list. > >>>> > >>>> Simple right? > >>>> > >>>> > >>>> Well imagine these 4 samples have a list of 60 analytes. If you > >>>> toggle them one by one, it works beautifully. But not all the > >>>> samples may have the toggle list in the same state: > >>>> > >>>> Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If > >>>> you don't touch sample 1 for silver you still have to go fix it > >>>> for Sample 2 because you wanted silver on and it's not on across > >>>> the board. > >>>> > >>>> So what I was toying with is selecting the entire RPT column on > >>>> the right, and re-pasting your "corrected list" back into itself. > >>>> > >>>> Unfortunately this doesn't work right. The other 3 samples > >>>> don't always get the matching target list. It sporadically > >>>> leaves some toggled or untoggled. > >>>> > >>>> I imagine this is the local access db engine (local tables) not > >>>> being able to lock/unlock the table fast enough since the > >>>> AfterUpdate code is executed upwards of 60 times (if you copy and > >>>> paste the entire column back in). > >>>> > >>>> > >>>> Right now this is using DoCmd.RunSQL but I've also tried using a > >>>> DAO recordset which is even worse. It tells me various items are > >>>> not updatable where at least RunSQL gets me 75% of the way there. > >>>> > >>>> > >>>> Is there another approach for this that might work better? The > >>>> only other thing I have come up with is to have a Command Button > >>>> that runs out and updates the "final list" rather than have the > >>>> user paste the column back over itself. It might work better > >>>> like that since it would be a single execute with a self join to > >>>> match the target lists up. But I really don't want to go to a > >>>> command button if I don't have to. > >>>> > >>>> So.. I'm looking for ideas on what else I might be able to try? > >>>> -- AccessD mailing list AccessD at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/accessd Website: > >>>> http://www.databaseadvisors.com > >>>> > >>> > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >>> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Wed Feb 21 19:24:50 2018 From: wrwehler at gmail.com (Ryan W) Date: Wed, 21 Feb 2018 19:24:50 -0600 Subject: [AccessD] Is there a better way? (AfterUpdate event) In-Reply-To: <5A8E189B.14772.704C057A@stuart.lexacorp.com.pg> References: <5A8DFF3C.23723.6FE8E97F@stuart.lexacorp.com.pg> <5A8E189B.14772.704C057A@stuart.lexacorp.com.pg> Message-ID: A test can be comprised of many analytes. So if we test for metals we test for lead, copper, zinc, aluminum etc Sample 1 aluminum 50 Sample 1 copper 300 Sample 1 zinc 0 So then repeat for sample 2,3,4 with different values. Pivot on the 4 sample id names using the detected value as the result Sent from my iPhone > On Feb 21, 2018, at 7:10 PM, Stuart McLachlan wrote: > > I'm getting confused. What is the difference between an Analyte and a Test? > > It seems to me that you want to end up with a grid of > > Results for Run x, Test Codes "abc","xyz" > > sample ABC XYZ > Sample1 1.2 27 > Sample2 1.5 36 > Sample3 1.4 24 > > > Do I have that right? > > > > > > > > > >> On 21 Feb 2018 at 17:33, Ryan Wehler wrote: >> >> What you?re seeing are temp tables based closely on real tables. >> >> I am not sure I follow on what you are suggesting. We are picking the >> samples which are related to a specific test (thus picking that test >> already) and then selecting the analyte list for one sample (at a >> time, since my code isn?t reliable for this yet) >> >> >> >> >> >>> On Feb 21, 2018, at 5:22 PM, Stuart McLachlan >>> wrote: >>> >>> Let's confirm the terminology, it will help :) >>> >>> How does the user input data. Directly into a table, or through a >>> form. If a form, what is the data source of that form. >>> >>> Are "these two tables" as shon in your linked image, actual tables. >>> If so are they temporary tables created for this prupose or are they >>> the actual primary data tables. >>> >>> This: >>>> Each sample has to have the same equal amount of analytes selected >>>> because the transform/pivot query goes sideways if data is missing. >>> >>> suggests that you shoulld definitely be just picking Sample and >>> Testcode/Analyte and using those two parameters to select the >>> appropriate data for reporting. >>> >>> I hope that Run, Sample and TestCodes are three separate related >>> tables in your database :) >>> >>> >>> >>>> On 21 Feb 2018 at 17:03, Ryan W wrote: >>>> >>>> Well that's "more or less" what's happening here.. The user inputs >>>> some data.. and presses "get data" and it fills in these two >>>> tables. They then select 4 samples containing the same TestCode. >>>> The tables are linked by a Sequence (auto number). So each sample >>>> has a sequence, and many analytes have that same sequence number >>>> (PK/FK relationship). Then they match the report list for the 4 >>>> samples, which I'm attempting to 'synchronize' rather >>>> unsuccessfully depending on use. >>>> >>>> As I said, right now the logic to select or deselect the same >>>> analyte across the 3 remaining selected samples is spotty if you >>>> fix one Sample list and then attempt to "mass update" the check box >>>> list by pasting the column back over itself (thus triggering >>>> AfterUpdate X times, where X is between 1 and probably 90 or more, >>>> depending on test complexity). The longer the list the worse it >>>> gets at matching the list up. >>>> >>>> Each sample has to have the same equal amount of analytes selected >>>> because the transform/pivot query goes sideways if data is missing. >>>> >>>> On Wed, Feb 21, 2018 at 4:44 PM, Stuart McLachlan >>>> wrote: >>>> >>>>> Not sure I follow you, but it seems to me that you are trying to >>>>> select multiple samples and analytes. Without nowing the >>>>> underlying data structures, it's hard to say what the best >>>>> approach is, but this seems feasible: >>>>> >>>>> Instead of the "sample + analyte" and "report" list, why not just >>>>> have three lists, The first two (samples and analytes) would be >>>>> selectable. The "report" list would be display only and show the >>>>> currently selected sample/testcode pairs. . When you select/ >>>>> deselect an item in either the sample or analyte list, requery the >>>>> "report" list. >>>>> >>>>> >>>>>> On 21 Feb 2018 at 15:36, Ryan W wrote: >>>>>> >>>>>> https://i.imgur.com/hhUUmWw.png (screenshot) >>>>>> >>>>>> I've got this form where a user selects 4 samples from it on the >>>>>> left side >>>>>> >>>>>> On the right side are the compounds associated with those >>>>>> samples, in this example it's a very short list (1 compound). >>>>>> >>>>>> In the "Rpt" checkbox on the right side I have code that when the >>>>>> box is toggled, it updates the other 3 selected samples to match >>>>>> the toggle list. >>>>>> >>>>>> Simple right? >>>>>> >>>>>> >>>>>> Well imagine these 4 samples have a list of 60 analytes. If you >>>>>> toggle them one by one, it works beautifully. But not all the >>>>>> samples may have the toggle list in the same state: >>>>>> >>>>>> Eg: Sample 1 as "Silver" on, but Sample 2 has silver "Off". If >>>>>> you don't touch sample 1 for silver you still have to go fix it >>>>>> for Sample 2 because you wanted silver on and it's not on across >>>>>> the board. >>>>>> >>>>>> So what I was toying with is selecting the entire RPT column on >>>>>> the right, and re-pasting your "corrected list" back into itself. >>>>>> >>>>>> Unfortunately this doesn't work right. The other 3 samples >>>>>> don't always get the matching target list. It sporadically >>>>>> leaves some toggled or untoggled. >>>>>> >>>>>> I imagine this is the local access db engine (local tables) not >>>>>> being able to lock/unlock the table fast enough since the >>>>>> AfterUpdate code is executed upwards of 60 times (if you copy and >>>>>> paste the entire column back in). >>>>>> >>>>>> >>>>>> Right now this is using DoCmd.RunSQL but I've also tried using a >>>>>> DAO recordset which is even worse. It tells me various items are >>>>>> not updatable where at least RunSQL gets me 75% of the way there. >>>>>> >>>>>> >>>>>> Is there another approach for this that might work better? The >>>>>> only other thing I have come up with is to have a Command Button >>>>>> that runs out and updates the "final list" rather than have the >>>>>> user paste the column back over itself. It might work better >>>>>> like that since it would be a single execute with a self join to >>>>>> match the target lists up. But I really don't want to go to a >>>>>> command button if I don't have to. >>>>>> >>>>>> So.. I'm looking for ideas on what else I might be able to try? >>>>>> -- AccessD mailing list AccessD at databaseadvisors.com >>>>>> http://databaseadvisors.com/mailman/listinfo/accessd Website: >>>>>> http://www.databaseadvisors.com >>>>>> >>>>> >>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Thu Feb 22 13:52:34 2018 From: wrwehler at gmail.com (Ryan W) Date: Thu, 22 Feb 2018 13:52:34 -0600 Subject: [AccessD] Collections.. and what the heck am I doing wrong? Message-ID: Module Header: Public MyCol as Collection Form_Open: Set MyCol = New Collection End Sub Form_Delete: if MyCol is Nothing then Set MyCol = New Collection end if MyCol.Add me.MyValueToTrack End Sub Form_BeforeDeleteConfirm: dim i as integer dim var as variant 'try to iterate this way for i = 1 to MyCol.Count Debug.Print MyCol(i) Debug.Print MyCol.Item(i) Next i 'or this way for each var in MyCol Debug.Print var next var 'unset the object so my collection doesn't continually grow between deletes Set MyCol = Nothing End Sub I'm trying to track when users delete multiple items on a form by using a unique (PK) and then use that collection to iterate through it and perform another operation based on that PK elsewhere.... However, when it comes to iterating through the collection (either as an integer or variant) the debug.print statements always print null? I don't use collections, really EVER. I usually write this stuff out to a temp table then read it back where I need it to perform other operations in scenarios just like this. But I figured why not learn something new.. collections in theory should be faster since it's all stored in memory rather than an actual table on disk. So am I not using the collection right? From jwcolby at gmail.com Thu Feb 22 21:24:32 2018 From: jwcolby at gmail.com (John Colby) Date: Thu, 22 Feb 2018 22:24:32 -0500 Subject: [AccessD] Collections.. and what the heck am I doing wrong? In-Reply-To: References: Message-ID: <8b84169a-d546-078b-6cc5-84412b2185e5@Gmail.com> The first thing to do is try the same debug.print on the object before you put it into the collection. On 2/22/2018 2:52 PM, Ryan W wrote: > MyCol.Add me.MyValueToTrack -- John W. Colby From wrwehler at gmail.com Thu Feb 22 21:53:18 2018 From: wrwehler at gmail.com (Ryan Wehler) Date: Thu, 22 Feb 2018 21:53:18 -0600 Subject: [AccessD] Collections.. and what the heck am I doing wrong? In-Reply-To: <8b84169a-d546-078b-6cc5-84412b2185e5@Gmail.com> References: <8b84169a-d546-078b-6cc5-84412b2185e5@Gmail.com> Message-ID: <690DC0C2-E5F2-4528-BC80-79CF1CD2E205@gmail.com> I have indeed made sure that the object I am trying to add to the collection is not null. > On Feb 22, 2018, at 9:24 PM, John Colby wrote: > > The first thing to do is try the same debug.print on the object before you put it into the collection. > > >> On 2/22/2018 2:52 PM, Ryan W wrote: >> MyCol.Add me.MyValueToTrack > > -- > John W. Colby > From wrwehler at gmail.com Fri Feb 23 09:14:31 2018 From: wrwehler at gmail.com (Ryan W) Date: Fri, 23 Feb 2018 09:14:31 -0600 Subject: [AccessD] Collections.. and what the heck am I doing wrong? Message-ID: Here's the info from the immediate window (done during form delete) Adding to collection: 35326 Adding to collection: 35327 Adding to collection: 35328 (done during BeforeDelConfirm) Collection object count: 3 As integer: As integer (item): As integer: As integer (item): As integer: As integer (item): As var: As var: As var: From wrwehler at gmail.com Fri Feb 23 09:21:56 2018 From: wrwehler at gmail.com (Ryan W) Date: Fri, 23 Feb 2018 09:21:56 -0600 Subject: [AccessD] Collections.. and what the heck am I doing wrong? In-Reply-To: References: Message-ID: AH HAH! I was storing the field in the collection, not the field value. MyCol.Add me.bot_no was storing the actual textbox object MyCol.Add me.bot_no.value is storing the value now. On Fri, Feb 23, 2018 at 9:14 AM, Ryan W wrote: > > Here's the info from the immediate window > > (done during form delete) > Adding to collection: 35326 > Adding to collection: 35327 > Adding to collection: 35328 > > (done during BeforeDelConfirm) > Collection object count: 3 > As integer: > As integer (item): > As integer: > As integer (item): > As integer: > As integer (item): > As var: > As var: > As var: > > > > From bensonforums at gmail.com Wed Feb 28 07:42:19 2018 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 28 Feb 2018 08:42:19 -0500 Subject: [AccessD] How to parametrize an IN ( ) clause with ADO Message-ID: I noticed this message I never posted in my Drafts folder. I don't think I ever resolved it, just abandoned it. Is there a way to create a parameter query that avails of an IN operator in the WHERE clause? The attempt below does not work as written. I think I do not need Set Rst = CreateObject("ADODB.Recordset") but I added it just for good measure. Dim Cmd As Object Dim Rst As Object Dim paramFileType As ADODB.Parameter Set Cmd = CreateObject("ADODB.Command") Set Rst = CreateObject("ADODB.Recordset") With Cmd .ActiveConnection = CurrentProject.Connection .CommandType = 1 'adCmdText=1 .CommandText = "Select Description From [_Files] Where Description IN ([pDescription])" Set paramFileType = .CreateParameter("[pDescription]", 200, 1, 255, "'Template','Output','Manual'") 'adVarChar = 200, adParamInput = 1 .Parameters.Append paramFileType Set Rst = .Execute() End With From gustav at cactus.dk Wed Feb 28 07:52:35 2018 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2018 13:52:35 +0000 Subject: [AccessD] How to parametrize an IN ( ) clause with ADO Message-ID: Hi Bill Nope. That is wishful thinking only. Could be nice, also to include a function to returns the INs. You'll have to create the full (literal) IN clause dynamically. /gustav -----Oprindelig meddelelse----- Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bill Benson Sendt: 28. februar 2018 14:42 Til: Access Developers discussion and problem solving Emne: [AccessD] How to parametrize an IN ( ) clause with ADO I noticed this message I never posted in my Drafts folder. I don't think I ever resolved it, just abandoned it. Is there a way to create a parameter query that avails of an IN operator in the WHERE clause? The attempt below does not work as written. I think I do not need Set Rst = CreateObject("ADODB.Recordset") but I added it just for good measure. Dim Cmd As Object Dim Rst As Object Dim paramFileType As ADODB.Parameter Set Cmd = CreateObject("ADODB.Command") Set Rst = CreateObject("ADODB.Recordset") With Cmd .ActiveConnection = CurrentProject.Connection .CommandType = 1 'adCmdText=1 .CommandText = "Select Description From [_Files] Where Description IN ([pDescription])" Set paramFileType = .CreateParameter("[pDescription]", 200, 1, 255, "'Template','Output','Manual'") 'adVarChar = 200, adParamInput = 1 .Parameters.Append paramFileType Set Rst = .Execute() End With From bensonforums at gmail.com Wed Feb 28 10:28:00 2018 From: bensonforums at gmail.com (Bill Benson) Date: Wed, 28 Feb 2018 11:28:00 -0500 Subject: [AccessD] How to parametrize an IN ( ) clause with ADO In-Reply-To: References: Message-ID: Thanks Gustav. At least I can now rest easy. ;) On Feb 28, 2018 8:54 AM, "Gustav Brock" wrote: > Hi Bill > > Nope. That is wishful thinking only. Could be nice, also to include a > function to returns the INs. > > You'll have to create the full (literal) IN clause dynamically. > > /gustav > > -----Oprindelig meddelelse----- > Fra: AccessD [mailto:accessd-bounces at databaseadvisors.com] P? vegne af > Bill Benson > Sendt: 28. februar 2018 14:42 > Til: Access Developers discussion and problem solving < > accessd at databaseadvisors.com> > Emne: [AccessD] How to parametrize an IN ( ) clause with ADO > > I noticed this message I never posted in my Drafts folder. I don't think I > ever resolved it, just abandoned it. Is there a way to create a parameter > query that avails of an IN operator in the WHERE clause? The attempt below > does not work as written. > > I think I do not need Set Rst = CreateObject("ADODB.Recordset") but I > added it just for good measure. > > > Dim Cmd As Object > Dim Rst As Object > Dim paramFileType As ADODB.Parameter > > Set Cmd = CreateObject("ADODB.Command") > Set Rst = CreateObject("ADODB.Recordset") With Cmd > .ActiveConnection = CurrentProject.Connection > .CommandType = 1 'adCmdText=1 > .CommandText = "Select Description From [_Files] Where Description IN > ([pDescription])" > Set paramFileType = .CreateParameter("[pDescription]", 200, 1, 255, > "'Template','Output','Manual'") 'adVarChar = 200, adParamInput = 1 > .Parameters.Append paramFileType > > Set Rst = .Execute() > End With > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jbodin at sbor.com Wed Feb 28 12:03:30 2018 From: jbodin at sbor.com (John Bodin) Date: Wed, 28 Feb 2018 18:03:30 +0000 Subject: [AccessD] Access 2016 w/MDB's Message-ID: Do any of you have experience in running a back-end Access MDB with a front-end Access 2016 along with other A2k3 and below front-ends? Data portion of the Database is MDB format. I know it can be done, just have a potential multi-version access front-end project that will be banged on 10 hours a day every day and didn't know how reliable the 2016 version is running the older MDB format. Thanks. John From darryl at whittleconsulting.com.au Wed Feb 28 20:49:14 2018 From: darryl at whittleconsulting.com.au (Darryl Collins) Date: Thu, 1 Mar 2018 02:49:14 +0000 Subject: [AccessD] Access 2016 w/MDB's In-Reply-To: References: Message-ID: Access 2016 has been the most stable version of Access I have used to date - and have been stuffing around with is since Access 2.0. Not sure if / how this translate to your question though on using MDB and A2003 FE set up. Any reason you cannot convert to the newer format and update the FE db(s) to suit? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bodin Sent: Thursday, 1 March 2018 5:04 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2016 w/MDB's Do any of you have experience in running a back-end Access MDB with a front-end Access 2016 along with other A2k3 and below front-ends? Data portion of the Database is MDB format. I know it can be done, just have a potential multi-version access front-end project that will be banged on 10 hours a day every day and didn't know how reliable the 2016 version is running the older MDB format. Thanks. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jbodin at sbor.com Wed Feb 28 21:25:27 2018 From: jbodin at sbor.com (John Bodin) Date: Thu, 1 Mar 2018 03:25:27 +0000 Subject: [AccessD] Access 2016 w/MDB's In-Reply-To: References: Message-ID: Hi Darryl, Customer is eventually going to have program re-written for the web and mobile app, so for now they want to keep things steady (and it has been working very well for over 15 years except for some query problems I posted about a few years ago.) They don't want to spend the bucks on upgrading everyone to an O365 package that comes with Access 2016 or spend money on me getting 2016 runtime on all the machines. They just bought new building so there will be the craziness of the move and prep, and they don't want to deal with any problems that tend to creep up with incompatible libraries and the like when you migrate up the Access chain. I have an opportunity to push out a separate access app to their mobile technicians on a new RDS Server, that talks to the same tables on the back end of their existing MDB data database. Thought I'd try and bring that to light in a new 2016 FE-format and publish on the RDS server. It's not a major piece, so I could fairly quickly convert it back to the older MDB should problems come up that I can rectify in 2016. Since there will be about 60 users on the system once I put the new piece on, I was looking for some validation that the 2016 FE would work or not work well with MDB BE. Thanks, John -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Wednesday, February 28, 2018 9:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2016 w/MDB's Access 2016 has been the most stable version of Access I have used to date - and have been stuffing around with is since Access 2.0. Not sure if / how this translate to your question though on using MDB and A2003 FE set up. Any reason you cannot convert to the newer format and update the FE db(s) to suit? -----Original Message----- From: AccessD [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bodin Sent: Thursday, 1 March 2018 5:04 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2016 w/MDB's Do any of you have experience in running a back-end Access MDB with a front-end Access 2016 along with other A2k3 and below front-ends? Data portion of the Database is MDB format. I know it can be done, just have a potential multi-version access front-end project that will be banged on 10 hours a day every day and didn't know how reliable the 2016 version is running the older MDB format. Thanks. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com