troubleshooting Question

When I delete one Remark in one record deletes all

Avatar of Jass Saini
Jass Saini asked on
Microsoft Access
6 Comments1 Solution112 ViewsLast Modified:
I have a code that writes the same Remark to all the records that have a value in BC1.  Bu when I delete one Remark, it deletes all the remark in the rest of the records that have a value in BC1.  

Private Sub Remarks1_AfterUpdate()
 Dim rst As DAO.Recordset
   Dim strRemarks As String
   Set rst = CurrentDb.OpenRecordset("Final_Table")
   strRemarks = Me.Remarks1

   Do While Not rst.EOF
        If Nz(rst![BC1Chng1]) <> "" Then
         rst![Remarks1] = strRemarks
         rst![Remarks1] = Null
      End If

End Sub

Not sure which line is doing this.  I have this code as an After Update event
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros