Drew Wutka
DWUTKA at Marlow.com
Tue May 27 17:45:12 CDT 2008
Not sure where you are stumbling here John. It's just going to require some code. As far as approach on this, do you want to check if the data class is 'dirty', or just compare it to current record when you go to save it? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 27, 2008 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Susan, > John, are you asking how to use disconnected recordsets No, I am trying to discover how to use unbound forms for data entry editing. It is a similar but not identical thing. For example if you create a new record in an unbound form, there is no recordset to be disconnected. If you edit an existing record, then yes, kind of. You would (I assume) open a record, grab the field values, old values, names and such, and then close the recordset. That assumes a DAO recordset. You would disconnect the recordset (I assume) if you tried to do this in ADO. >or are you trying to talk yourself into writing a class instead? No, I am trying to discover the best way to emulate the functionality of a bound form. I do assume that this will involve custom written classes, but never having done this I am not certain of that. I have actually thought of taking a bound form, opening it to a record (bound forms use DAO recordsets, at least back in 2K and previous which this client still uses), then grabbing all the field values and "disconnecting" the form (and controls). This would give me a snapshot of the data as it existed as the form opened, and a method of determining if the data changed. And no, I do not have a TechRepublic membership. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.