From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From pharold at proftesting.com Thu Feb 8 10:47:25 2007 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 8 Feb 2007 11:47:25 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 11:28:11 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 12:28:11 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Message-ID: <000701c74ba6$82353d50$2f01a8c0@Kermit> I never noticed the .datachanged property. I'll have to look into that one myself because it would make things a lot easier. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Thursday, February 08, 2007 11:47 AM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [dba-VB] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From dbavb at vftt.co.uk Tue Feb 20 23:12:19 2007 From: dbavb at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:12:19 -0000 Subject: [dba-VB] MS TechNet sub Message-ID: <039501c75576$e31c19c0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From stuart at lexacorp.com.pg Wed Feb 21 18:29:08 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2007 10:29:08 +1000 Subject: [dba-VB] VB ON Linux? In-Reply-To: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> References: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> Message-ID: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart From accessd at shaw.ca Wed Feb 21 19:02:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 17:02:20 -0800 Subject: [dba-VB] VB ON Linux? In-Reply-To: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> Message-ID: <0JDU00GL8ARYXTV0@l-daemon> Hi Stuart: That is quite incredible. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 21, 2007 4:29 PM To: dba-vb at databaseadvisors.com Cc: Discussion of Hardware and Software issues Subject: [dba-VB] VB ON Linux? http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From pharold at proftesting.com Thu Feb 8 10:47:25 2007 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 8 Feb 2007 11:47:25 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 11:28:11 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 12:28:11 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Message-ID: <000701c74ba6$82353d50$2f01a8c0@Kermit> I never noticed the .datachanged property. I'll have to look into that one myself because it would make things a lot easier. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Thursday, February 08, 2007 11:47 AM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [dba-VB] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From dbavb at vftt.co.uk Tue Feb 20 23:12:19 2007 From: dbavb at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:12:19 -0000 Subject: [dba-VB] MS TechNet sub Message-ID: <039501c75576$e31c19c0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From stuart at lexacorp.com.pg Wed Feb 21 18:29:08 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2007 10:29:08 +1000 Subject: [dba-VB] VB ON Linux? In-Reply-To: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> References: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> Message-ID: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart From accessd at shaw.ca Wed Feb 21 19:02:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 17:02:20 -0800 Subject: [dba-VB] VB ON Linux? In-Reply-To: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> Message-ID: <0JDU00GL8ARYXTV0@l-daemon> Hi Stuart: That is quite incredible. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 21, 2007 4:29 PM To: dba-vb at databaseadvisors.com Cc: Discussion of Hardware and Software issues Subject: [dba-VB] VB ON Linux? http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From pharold at proftesting.com Thu Feb 8 10:47:25 2007 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 8 Feb 2007 11:47:25 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 11:28:11 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 12:28:11 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Message-ID: <000701c74ba6$82353d50$2f01a8c0@Kermit> I never noticed the .datachanged property. I'll have to look into that one myself because it would make things a lot easier. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Thursday, February 08, 2007 11:47 AM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [dba-VB] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From dbavb at vftt.co.uk Tue Feb 20 23:12:19 2007 From: dbavb at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:12:19 -0000 Subject: [dba-VB] MS TechNet sub Message-ID: <039501c75576$e31c19c0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From stuart at lexacorp.com.pg Wed Feb 21 18:29:08 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2007 10:29:08 +1000 Subject: [dba-VB] VB ON Linux? In-Reply-To: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> References: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> Message-ID: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart From accessd at shaw.ca Wed Feb 21 19:02:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 17:02:20 -0800 Subject: [dba-VB] VB ON Linux? In-Reply-To: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> Message-ID: <0JDU00GL8ARYXTV0@l-daemon> Hi Stuart: That is quite incredible. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 21, 2007 4:29 PM To: dba-vb at databaseadvisors.com Cc: Discussion of Hardware and Software issues Subject: [dba-VB] VB ON Linux? http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From pharold at proftesting.com Thu Feb 8 10:47:25 2007 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 8 Feb 2007 11:47:25 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 11:28:11 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 12:28:11 -0500 Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> <00F5FCB4F80FDB4EB03FBAAEAD97CEAD3DFBB7@EXCHANGE.ptiorl.local> Message-ID: <000701c74ba6$82353d50$2f01a8c0@Kermit> I never noticed the .datachanged property. I'll have to look into that one myself because it would make things a lot easier. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Thursday, February 08, 2007 11:47 AM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Visual Basic Form - Check If Recordset/Field NeedsUpdating Paul For form controls (have only tried this with text boxes) I set the tag value to the value of the control when the form is loaded. When the focus goes away from the current record I compare the control's value to the tag value and if they are different set the .datachanged value to true. If any control has a .datachanged value of true then update the record with the new values. If they aren't different then no update is done. (The datachanged flag is set to true when the control is populated so it needs to be reset to false after populating the form with the selected record. Any keystrokes also set .datachanged to true - so no comparison is done until checking against the tag) You can copy the tag value to the log file as the original value for any control that has the .datachanged value of true and the control's current value as the new value. The field name, etc for that control could also be logged at the same time. Perry Harold Professional Testing Inc -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [dba-VB] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [dba-VB] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From dbavb at vftt.co.uk Tue Feb 20 23:12:19 2007 From: dbavb at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:12:19 -0000 Subject: [dba-VB] MS TechNet sub Message-ID: <039501c75576$e31c19c0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From stuart at lexacorp.com.pg Wed Feb 21 18:29:08 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 22 Feb 2007 10:29:08 +1000 Subject: [dba-VB] VB ON Linux? In-Reply-To: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> References: <0B8880A20E2CF24280FA60901E108FB014820F@TTNEXCHSVR.hshhp.com> Message-ID: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart From accessd at shaw.ca Wed Feb 21 19:02:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 17:02:20 -0800 Subject: [dba-VB] VB ON Linux? In-Reply-To: <45DD7074.22183.999E252@stuart.lexacorp.com.pg> Message-ID: <0JDU00GL8ARYXTV0@l-daemon> Hi Stuart: That is quite incredible. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 21, 2007 4:29 PM To: dba-vb at databaseadvisors.com Cc: Discussion of Hardware and Software issues Subject: [dba-VB] VB ON Linux? http://www.regdeveloper.co.uk/2007/02/21/visual_basic_mono_linux/ "Windows developers can now port Visual Basic applications to Linux without modifying their code, using an open source project backed by Novell. The Mono project has built a compiler that lets developers code using Visual Basic inside Visual Studio or other preferred tools environments and run the Visual Basic code on non-Windows platforms without the time and cost of modification...." -- STuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com