No. Not knowing the application, it would be difficult for you to
understand. Hardcoding a ' ' between fields would demolish the whole
reason
why I am storing templates in a database to begin with. Nothing within
the
template should be hardcoded. These things need to change at my boss'
whim,
without having to recompile each and every time. "Hey... I don't like the
spacing here... add another space", or "Tomorrow, I want a book with
sections
9 and 16 having dashes between fields 6 and 7, but tabs between those same
fields in the remaining sections... and then after tomorrow, change that
style back to what it was." etc, etc. I'm going to be having hundreds of
styles that will be responsible for spitting out Word documents in excess
of
10,000 pages each. And the place where I am storing the XML template
pieces
have to be text fields, because some of them are pages and pages long
(ever
seen the XML behind a Word document?).
What I wanted from Access was an "ease of use" functionality to speed up
development. I guess Access will simply not do it. Kinda sad, in my
opinion, that you can't just type in a space or a tab within a datasheet
view
and have it save to the database. Instead, I have to go to SQL Query
analyzer, find the index for each row I want to update, and type something
akin to: "update StyleXML set SXMPreXML = ' ' where SxmStyleFieldID in
(232,235,238,221,241,34,36,39,100,234,744,3331)"
The "automatic" trimming of trailing spaces that you mention might be a
great feature to most people, but it hinders others. It's like Microsoft
is
figuring it knows what is better for a coder than the coder does. It
should
at least be a feature you can toggle on or off. Oh well.
Thanks for your time, though!
John Vinson said:
On Mon, 21 Nov 2005 05:51:09 -0800, "XjeaxaxX"
I am storing my template pieces in an SQL database...
In SQL you can use a Char() field rather than a Varchar to store fixed
length.
Or, of course, you can append blanks in code without storing them in
the field - [Firstname] & ' ' & [lastname] for example.
John W. Vinson[MVP]