Hi Guys
I have a tick box that once ticked goes and looks up data and then adds it to a memo field (works ok.)
but I need to add a carriage return for when I add the next one
(I have a list of possible data that I may need and this is in a continuous form layout ) as you can see I think i have tried variosu methods but each time i click the button it data sits next to and not below the last data retrieved .
what/where have i gone wrong
G:banghead:
Private Sub REquiredY_AfterUpdate()
Dim EndTxt As String
If REquiredY = True Then
EndTxt = DLookup("wording", "wording", "[endorsementid]=" & Me.endorsementid)
Set db = CurrentDb
Set rs = db.OpenRecordset("Generaltbl", dbOpenDynaset)
rs.FindFirst "[GenReferenceNo]=" & Me.GenReferenceNo
Dim EndorsementAdd1 As String
rs.Edit
EndorsementAdd1 = rs.Endorsements & EndTxt & vbCrLf & vbCr & vbNewLine & vbLf
rs.Endorsements = vbCrLf & vbCr & vbNewLine & vbLf & EndorsementAdd1
rs.Update
rs.Close
End If
End Sub
I have a tick box that once ticked goes and looks up data and then adds it to a memo field (works ok.)
but I need to add a carriage return for when I add the next one
(I have a list of possible data that I may need and this is in a continuous form layout ) as you can see I think i have tried variosu methods but each time i click the button it data sits next to and not below the last data retrieved .
what/where have i gone wrong
G:banghead:
Private Sub REquiredY_AfterUpdate()
Dim EndTxt As String
If REquiredY = True Then
EndTxt = DLookup("wording", "wording", "[endorsementid]=" & Me.endorsementid)
Set db = CurrentDb
Set rs = db.OpenRecordset("Generaltbl", dbOpenDynaset)
rs.FindFirst "[GenReferenceNo]=" & Me.GenReferenceNo
Dim EndorsementAdd1 As String
rs.Edit
EndorsementAdd1 = rs.Endorsements & EndTxt & vbCrLf & vbCr & vbNewLine & vbLf
rs.Endorsements = vbCrLf & vbCr & vbNewLine & vbLf & EndorsementAdd1
rs.Update
rs.Close
End If
End Sub