Re: I Need to replace many text area in a field with replace function.



uberblick wrote:
Hello Access Community,

I'm using Access 2003.

I have a generic HTML template for ebay that contains html code.

In that HTML code we have some field or attribute names like {{ORIGINAL TITLE}}, {{GENRE}}, {{MPAA}} etc. that we would like to customize for each SKU.

We would like to create a customized html code per SKU that contains the right attribute values. So in Fact we have to replace all attribute names by their respective attributes values.

Up to now I was able to replace 1 attribute but I don't know how to build my formula to replace 12 attributes within the same string expression.

This an example: <Start Here>Detail1: Replace(Templates!HTML,"{{IMAGE(ITEMIMAGEURL1)}}",[Oztion_Images&Flags]!Filename)<End Here>

The HTML field is a MEMO field.

The expected result would be an append or make table query that will contains fields named "UPC" and "Detail", the customized html code.


I'm using the Expression Builder not VBA.


Thanks in advance for any input.

Your help will be very appreciated since I'm working on that since a week.

Regards

Stephan

I don't think you can replace multiple targets in one sweep. But since you have 12 attributes, a relatively small number and probably fixed, you could create 12 separate expressions.

If you want all 12 expressions to fire from one control, you could put them each in separate queries, create a macro to fire each query in turn, and point the control at the macro.

--
Smartin
.



Relevant Pages

  • Re: I Need to replace many text area in a field with replace funct
    ... The UPDATE query will only accept one argument per field. ... I have a generic HTML template for ebay that contains html code. ... If you want all 12 expressions to fire from one control, you could put them each in separate queries, create a macro to fire each query in turn, and point the control at the macro. ...
    (microsoft.public.access.queries)
  • Re: Please MS fix this ^%$^%$ thing
    ... wanted to in response to other problems. ... with my attempt to change the ID of the control. ... >> HTML code whether I want it too at all. ... >> keep the designer and code in sync. ...
    (microsoft.public.vsnet.ide)
  • Re: How to know the selected row in a DataControlField
    ... I've tried to explore html code generated and i found out the piece of ... So I saw that client ID is a sort of $ separated format in wich i could ... i had this requirement in my repeater control. ... the ImageButton, directly in the DataControlField i made, but I would ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: asp:label control doesnt show up as a form element
    ... Labels are not form elements, they are more directly document elements. ... They convert to SPAN tags in HTML code, which are not attributues of a form ... > of another control by setting the Visible property to true. ... > VIRTUAL SIGNATURE PAD FOR GRANTOR SIGNATURE ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access wab page with excel VBA
    ... that holds a basic login form that requires a user name and password, ... in this case if i wanted to automatically control this page i would ... taken from the HTML code. ... creating and setting objects, when you are done with them set them ...
    (microsoft.public.excel.programming)