... but there seems to be a "feature" in Access 2007 when concatenating text strings.
Here's what I'm trying to do: Her Indoors is starting her PhD in Law. The list of publications, journals, etc was huge for her Masters Degree and it's going to be a lot worse writing a thesis of 100k words, so I decided to write her a simple database to keep track of them all. That bit's working fine
. The next bit is to concatenate the various text strings in a certain way in order to construct a citation that she can copy/paste for her footnotes.
As long as all the fields are "Plain Text" or "Rich Text" all in the same font/weight/size/name/etc, the & and + operators work perfectly. The snag comes when you try to add fields where there is a change in the font to italics, for example... Access trims any trailing spaces (including the ones you add on purpose) and inserts a hard CR/LF.
Here's what a typical citation should look like:
Dworkin Gerald, Frey R.G. and Bok Sissela, Euthanasia and Physician–Assisted Suicide, Cambridge University Press, Cambridge 1998. pp214-216
And here's what Access ends up with:
Dworkin Gerald, Frey R.G. and Bok Sissela,
Euthanasia and Physician–Assisted Suicide
, Cambridge University Press, Cambridge 1998. pp214-216
Here's the expression:
=[Author] & ", " & [Publication] & ", " & [Publisher] & ", " & [Pub_Place] & ", " & [Pub_Place] & " " & [Pub_Date] & ". pp" & [Pages]
Keep it simple to start with, and I'll be able to mess about with "IIf(Isnull())" and/or null propagations once I've got this first bit running.
Edit: BTW, I've already tried IIf(Isnull()) etc and it's no help... same result.
Clearly, in the short-term, it would be easy enough to copy/paste into her Word doc and then delete the CR/LFs and insert spaces where needed, but this is supposed to make her life easier.
Any clues, please?
Here's what I'm trying to do: Her Indoors is starting her PhD in Law. The list of publications, journals, etc was huge for her Masters Degree and it's going to be a lot worse writing a thesis of 100k words, so I decided to write her a simple database to keep track of them all. That bit's working fine
As long as all the fields are "Plain Text" or "Rich Text" all in the same font/weight/size/name/etc, the & and + operators work perfectly. The snag comes when you try to add fields where there is a change in the font to italics, for example... Access trims any trailing spaces (including the ones you add on purpose) and inserts a hard CR/LF.
Here's what a typical citation should look like:
Dworkin Gerald, Frey R.G. and Bok Sissela, Euthanasia and Physician–Assisted Suicide, Cambridge University Press, Cambridge 1998. pp214-216
And here's what Access ends up with:
Dworkin Gerald, Frey R.G. and Bok Sissela,
Euthanasia and Physician–Assisted Suicide
, Cambridge University Press, Cambridge 1998. pp214-216
Here's the expression:
=[Author] & ", " & [Publication] & ", " & [Publisher] & ", " & [Pub_Place] & ", " & [Pub_Place] & " " & [Pub_Date] & ". pp" & [Pages]
Keep it simple to start with, and I'll be able to mess about with "IIf(Isnull())" and/or null propagations once I've got this first bit running.
Edit: BTW, I've already tried IIf(Isnull()) etc and it's no help... same result.
Clearly, in the short-term, it would be easy enough to copy/paste into her Word doc and then delete the CR/LFs and insert spaces where needed, but this is supposed to make her life easier.
Any clues, please?
Last edited: