G
Guest
I have a main form that has a command button that opens a pop-up form to add
comments to the main form. Each form gets it's data from a query. When the
pop-up form opens, if there is data already in the field, you can add/change
the information and it changes it on the form and the table. If that field
has no data in it, then it doesn't update it at all. It works perfectly if
there is data already there but not if there is none. Could you please help.
This is the code that works with the data already in the field.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Input Response"
stLinkCriteria = "[Cingular_Response]=" & "'" & Me![Cingular_Response] &
"'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
comments to the main form. Each form gets it's data from a query. When the
pop-up form opens, if there is data already in the field, you can add/change
the information and it changes it on the form and the table. If that field
has no data in it, then it doesn't update it at all. It works perfectly if
there is data already there but not if there is none. Could you please help.
This is the code that works with the data already in the field.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Input Response"
stLinkCriteria = "[Cingular_Response]=" & "'" & Me![Cingular_Response] &
"'"
DoCmd.OpenForm stDocName, , , stLinkCriteria