My experience has been that I would have some test code in some obscure
location that I forgot about, and it gets invoked at some event, but you
don't know which event - could be a button event, current event, etc.
To make matters worse, I reference the field by its ordinal number
For i = 0 to rs.fields.count - 1
rs(i) = ""
Next
Something you could try would be to search for the field name using the
Find dialog (ctrl-F in the code module). If that does not turn anything
up then try searching for the table name. If you locate the table name
(or if you are lucky enough to find the actual field name) trace the
code wherever you reference the table/field in question. One other
thing you could check is the default property of the field on the form.
That property may also be getting set to "" after some event. That is
the worst case scenario because you can't find anything in the code
module, and if you have lots of forms and lots of fields - well, you can
open all the forms and loop through the forms collection and check the
properties of each control on each form in a couple of For Each loops
till you find the control whose source is your memo field and then check
its properties. Lastly, you can use DAO to loop through all the
querydef objects (queries) and check the sql string of each query to see
if your memo field is in an update query
Sub HuntForMemofldInQueries()
Dim DB As DAO.Database, QD As DAO.QueryDef
Set DB = CurrentDB
For Each QD in DB.QueryDefs
If Instr(1, QD.Sql, "Memofld") > 0 Then
Debug.Print QD.Name
End If
Next
End Sub
HTH
Rich
*** Sent via Developersdex
http://www.developersdex.com ***