I am trying to loop through some VBA code in an Access database, build a string as it goes along based on events in the loop then show the string in a text box control. Problem is that the Chr$(10) and CHR$(13) are being displayed as squares in the txt box.
example of code :
str="Error Log"
....process
str=str & chr($10) & chr$(13) & "Check index number : " & indx & chr($10) & chr$(13)
....loop
str = str & chr($10) & chr$(13) & "finished processing"
text0.setfocus
text0.text=str
Can anyone help ? Why is it doing this.
PS it is happening in Access 97 and 2000.
![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)
example of code :
str="Error Log"
....process
str=str & chr($10) & chr$(13) & "Check index number : " & indx & chr($10) & chr$(13)
....loop
str = str & chr($10) & chr$(13) & "finished processing"
text0.setfocus
text0.text=str
Can anyone help ? Why is it doing this.
PS it is happening in Access 97 and 2000.
![[machinegun] [machinegun] [machinegun]](/data/assets/smilies/machinegun.gif)
![[flame] [flame] [flame]](/data/assets/smilies/flame.gif)