It isn't visible in the table itself. It was in earlier Access versions.
It isn't visible in the table itself. It was in earlier Access versions.
I don't recall that, but won't say it wasn't. Question is, it's a non-printable character so what would be the point? If it was ever visible, it makes sense to me that they got rid of it. Why would you want this?
Last edited by Micron; 06-11-2024 at 08:34 PM. Reason: repetition
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
I'm using Access to store data and Excel connects to it and uses chr$(10) as a linefeed in pop-up comments.
I have 2010 and AFAIK, neither Chr(10) nor Chr$(10) show as visible characters in field. If you literally see "Chr$(10)" then you see text, not LF character.
I tried to UPDATE a field with just Chr(10) and get bad results. Only combination of Chr(10) & Chr(13) shows new line in string.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
The Access version number I forget but it showed as a little black square. Not chr$(10) as text.
It can be added with Update once setting somewhere for it
Set t = CurrentDb.OpenRecordset("Select ff from Table1;")
t.Edit
t(0) = Replace(t(0), ".xx ", "." & vbLf)
t.Update
But then you cannot even edit a field with it in... the weirdest things happen.
Can't you get what you want by making the table field long text and format as rtf? The cr/lf would be embedded and carry over to Excel. At least I think so.I'm using Access to store data and Excel connects to it and uses chr$(10) as a linefeed in pop-up comments.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
RTF uses html tags. I don't think Excel will interpret the tags.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.