Variable in Forms! Statement

J

Jim

How do I replace the “Image1†field name portion of the following statement
with a variable?

Forms!frmPhoto_AttachView!Image1.Picture

Thanks in advance,

Jim
 
M

Marshall Barton

Jim said:
How do I replace the “Image1” field name portion of the following statement
with a variable?

Forms!frmPhoto_AttachView!Image1.Picture


strvar = “Image1”
Forms!frmPhoto_AttachView(strvar).Picture
 
Top