Use the LoadPicture method.
>I have created an Image control on the form and would like to
>assign a new picture (eg. graphic.jpg) each time I move the
>database pointer to the next record.
>How could I go about assigning the picture name.
>
>I tried something as follows, but it doesn't work:
> Image1.Picture = "c:\pictures\" & RTrim(LTrim(CStr(txtItemCode.Text)))
> & ".jpg"
>
> where txtItemCode.Text is one of the fields display on the form.
>
>Please advise, thank you very much.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com