Hi folks!

Using the dreaded Data Access Pages, I have used a small bit of code to dynamically set the 'Src' property of an image in the DAP from a table so that it changes with each record.

Is it possible to do the same with the Alt value of the image so that as the source image changes, the Alt value changes accordingly?

Sounds like it should work, but I used the same method as I did for the image source and it created an error!

Here is the code I am using:

<SCRIPT language=vbscript event=Current(x) for=MSODSC>

Can anyone see why this wouldn't work, or know a better way (that actually works) to set the Alt value dynamically?