A
Amy
This is probably a very easy problem but I have been pulling my hair out
attempting to figure out where I am going wrong. Perhaps someone here will
be able to tell me what I am doing wrong.
I have a form that I use to enter & view captial/non capital assets. On
this form there is a button that opens another form for the user to enter
comments related to the equipment currently displayed. I have the button set
for "on click" to do the following:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmComments"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
When the form comments opens, I have the "on load" set to do the following:
If ParentFormIsOpen() Then Forms![tblassets]!ToggleLink = True
Me.chrComments.SetFocus
Basically, when I open the comment form from my asset form, it links the
serial number from the asset form to comments. This allows the user to
attach the comments without having to retype the serial number. My problem
is, that when the user exits the comments form, the comment is not saved. No
matter what I try I cannot get it to save the record. I am certain this
probably an easy fix and I am simply over looking it.
Any and all help would be greatly appreciated!
attempting to figure out where I am going wrong. Perhaps someone here will
be able to tell me what I am doing wrong.
I have a form that I use to enter & view captial/non capital assets. On
this form there is a button that opens another form for the user to enter
comments related to the equipment currently displayed. I have the button set
for "on click" to do the following:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmComments"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
When the form comments opens, I have the "on load" set to do the following:
If ParentFormIsOpen() Then Forms![tblassets]!ToggleLink = True
Me.chrComments.SetFocus
Basically, when I open the comment form from my asset form, it links the
serial number from the asset form to comments. This allows the user to
attach the comments without having to retype the serial number. My problem
is, that when the user exits the comments form, the comment is not saved. No
matter what I try I cannot get it to save the record. I am certain this
probably an easy fix and I am simply over looking it.
Any and all help would be greatly appreciated!