Gustav Brock
Gustav at cactus.dk
Wed May 28 01:56:53 CDT 2008
Hi John Another option is to follow my advice #3 here: http://blogs.techrepublic.com.com/10things/?p=331 Leave your form bound but move the memo field off the current source table to a separate table with a one-to-one relationship and set your memo TextBox unbound. OnCurrent of the form, read the memo field into the memo TextBox. Store the initial content in a variable, say, strMemoLoad. OnExit of the memo TextBox, compare the content with strMemoLoad. If different, save the edited content to the memo field and fill strMemoLoad again (in case the user will make a later edit. Or set a flag at OnChange and save the content to the memo field at BeforeUpdate or AfterUpdate of the form. When adding a new record to the main table, add a new record to the memo table as well. /gustav >>> jwcolby at colbyconsulting.com 28-05-2008 00:34 >>> 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.