I am writing software that displays 1 to 5 stars on a form, and need to be able to programmatically refer to a picture object.. I can't figure out the syntax.
The number of stars is in an MS Access table that displays on the form.
The following code is in the on open event, but does not work
nn = Me.Stars
For pp = 1 To nn
Forms("frmDetailListingPassives")("StarPix" & Trim(nn)).Picture = "C:\Disti-Master\Database\Star.jpg"
Can anyone help?