Hey madmonkey, I thought that might be the problem. if you leave the extra text form open it makes no difference. There is a form that open after you click exit on the main form asking to save the changes. When it runs the code to save the changes I just noticed it thinks the txtExtraText has no value? I have attached a picture of that and the main form and the save form. I'm not to good at coding but I think it might have somthing to do with this code below but I'm not sure what it is
Function GetFirstExtraTextString(OldString As String) As String
Dim TheLength As Long
TheLength = Len(OldString)
If TheLength > 255 Then
GetFirstExtraTextString = Left(OldString, 255)
Else
GetFirstExtraTextString = OldString
End If
End Function
Function GetSecondExtraTextString(OldString As String) As String
Dim TheLength As Long
TheLength = Len(OldString)
If TheLength > 255 Then
If TheLength > 510 Then
GetSecondExtraTextString = Mid(OldString, 256, 255)
Else
GetSecondExtraTextString = Right(OldString, TheLength - 255)
End If
Else
GetSecondExtraTextString = ""
End If
End Function
Function GetThirdExtraTextString(OldString As String) As String
Dim TheLength As Long
TheLength = Len(OldString)
If TheLength > 510 Then
If TheLength > 765 Then
GetThirdExtraTextString = Mid(OldString, 511, 255)
Else
GetThirdExtraTextString = Right(OldString, TheLength - 510)
End If
Else
GetThirdExtraTextString = ""
End If
End Function
Function GetFourthExtraTextString(OldString As String) As String
Dim TheLength As Long
TheLength = Len(OldString)
If TheLength > 765 Then
GetFourthExtraTextString = Right(OldString, TheLength - 765)
If TheLength > 1020 Then
GetFourthExtraTextString = Mid(OldString, 766, 255)
Else
GetFourthExtraTextString = Right(OldString, TheLength - 765)
End If
Else
GetFourthExtraTextString = ""
End If
End Function
Function GetFifthExtraTextString(OldString As String) As String
Dim TheLength As Long
TheLength = Len(OldString)
If TheLength > 1020 Then
GetFifthExtraTextString = Right(OldString, TheLength - 1020)
Else
GetFifthExtraTextString = ""
End If
End Function