I
Ian Smith
When presenting memo fields, I commonly display the field
in a two or three line field on a main form, but open up a
large editing window when the user clicks into the memo.
Everything usually behaves, but sometimes, records will
get into a state where the edits made on the pop-up form
do not get updated to the record. I have not been able to
determine what differentiates editable records from non-
editable, but once a record behaves that way, it persists
in not updating, even from one Access session to another.
If I disable the on-click event, the same memo field can
be edited from the main form.
Can anyone suggest what might be wrong with my code, or
what is it about a record that prevents the update?
in frmMain:
Private Sub txtMemo_Click()
' Upon a mouse click inside the note, present the note in
a large window.
Dim strDocName As String
Dim strLinkCriteria As String
Me.Refresh 'ensure we are not passing a dirty record
strDocName = "frmEditMemo"
strLinkCriteria = "PropertyID = " & Me.PropertyID
' problem exhibited whether dialog form or not
DoCmd.OpenForm strDocName, , , strLinkCriteria, ,
acDialog
End Sub
in frmEditMemo:
Private Sub cmdOK_Click()
DoCmd.close acForm, Me.Name
End Sub
in a two or three line field on a main form, but open up a
large editing window when the user clicks into the memo.
Everything usually behaves, but sometimes, records will
get into a state where the edits made on the pop-up form
do not get updated to the record. I have not been able to
determine what differentiates editable records from non-
editable, but once a record behaves that way, it persists
in not updating, even from one Access session to another.
If I disable the on-click event, the same memo field can
be edited from the main form.
Can anyone suggest what might be wrong with my code, or
what is it about a record that prevents the update?
in frmMain:
Private Sub txtMemo_Click()
' Upon a mouse click inside the note, present the note in
a large window.
Dim strDocName As String
Dim strLinkCriteria As String
Me.Refresh 'ensure we are not passing a dirty record
strDocName = "frmEditMemo"
strLinkCriteria = "PropertyID = " & Me.PropertyID
' problem exhibited whether dialog form or not
DoCmd.OpenForm strDocName, , , strLinkCriteria, ,
acDialog
End Sub
in frmEditMemo:
Private Sub cmdOK_Click()
DoCmd.close acForm, Me.Name
End Sub