I have a database of chldren and their parents, who have been participants in a research study. At the conclusion, they will undergo an assessment, which results in a numerical score.
The project wants to write to the parents and tell them how the kids went, but they don’t want to actually reveal the numerical score. Instead they want to display it in a manner, like I have shown below.
(This is just a rough prototype and the score would not be visible on the final product.)
Normally I would write to the parents via a Mail Merge. So my question is: Can I put a diagram like that above in a merge document, and have the position of the marker determined by the score.
I could do the letter as an Access report. In that case I would use the following code in the Format Event of the Detail section of the report. (The screen shot above was created that way.)
Dim lngLeft As Long Dim lngwidth As Long lngwidth = Me.BoxRange.Width Me.LabelMarker.Left = Me.BoxRange.Left + CLng(lngwidth * Me.score / 100 - Me.LabelMarker.Width / 2)
I presume I could use similar code in Word, but I don’t know where to put it. The code would need to execute for each merge record.