pr2-eugin
Super Moderator
- Local time
- Today, 21:42
- Joined
- Nov 30, 2011
- Messages
- 8,487
I am trying to take data from a memo field and split it into strings and place them in the combo box.. it is runnign fine.. except for a very small problem.. the coding works to extract the data from the memo box and place it neatly in the combobox; except that it is not complete.. i.e. the string is chopped off.. If i had entered data as "The customer changed the value and has now requested a new contract. the request was made on 21/12/2011 12:56:35." the result displayed is ""The customer changed the value and has now" the rest of the data is missing.. following is the code.
dumStr = DLookup("[FAILED PAYMENTS]", "Customers", "CUSTOMER_ID = " & id & "")
If Len(dumStr & "") > 0 Then
iArray = Split(dumStr, "#")
For iCtr = 0 To UBound(iArray)
'inserted a Msgbox to display the values they are fine. i mean the iArray(iCtr) has the whole data.
FailCmbBox.AddItem iArray(iCtr)
Next
End If
dumStr = DLookup("[FAILED PAYMENTS]", "Customers", "CUSTOMER_ID = " & id & "")
If Len(dumStr & "") > 0 Then
iArray = Split(dumStr, "#")
For iCtr = 0 To UBound(iArray)
'inserted a Msgbox to display the values they are fine. i mean the iArray(iCtr) has the whole data.
FailCmbBox.AddItem iArray(iCtr)
Next
End If