Hi, can anyone help me do this...
In my products table I have fields such as Bulletpoint1, Bulletpoint2, MainDescription etc.
Each holds part of the product description
In a seperate table I have my description templates with placeholders for the bulletpoints and maindescription. for example....
<ul><li><!-- Bulletpoint1 --></li><li><!-- Bulletpoint2 --><li></ul>
Now, for each record I want to grab the template and replace the placeholders with the real text.
I've got as far as putting this in a query...
Expr1: Replace([DescTemplates]![TemplateData], "<!-- Bulletpoint1 -->", [Products]![Bulletpoint1])
That does the job nicely or the first bulletpoint but where from there? There must be a neater way than having a load of query columns each updating the last. ie.
Expr2: Replace([Expr1], "<--Bulletpoint2 -->", ...
Expr3: Replace([Expr2],...
Or is that the simplest way of doing it?
Cheers!
In my products table I have fields such as Bulletpoint1, Bulletpoint2, MainDescription etc.
Each holds part of the product description
In a seperate table I have my description templates with placeholders for the bulletpoints and maindescription. for example....
<ul><li><!-- Bulletpoint1 --></li><li><!-- Bulletpoint2 --><li></ul>
Now, for each record I want to grab the template and replace the placeholders with the real text.
I've got as far as putting this in a query...
Expr1: Replace([DescTemplates]![TemplateData], "<!-- Bulletpoint1 -->", [Products]![Bulletpoint1])
That does the job nicely or the first bulletpoint but where from there? There must be a neater way than having a load of query columns each updating the last. ie.
Expr2: Replace([Expr1], "<--Bulletpoint2 -->", ...
Expr3: Replace([Expr2],...
Or is that the simplest way of doing it?
Cheers!