A
andyw
I'm trying to get an image1 to display if a value is empty and display
image2 to display if not.
I've found this line of code which seems to work:
if IsNull(forms!form1!txtbox1.Value) = True then img1.Picture =
"C:\mypic.jpg" else img1.Picture = ""
the trouble is form1 is not open at the time this code runs. I tried
numerous things to fix. A thought a subform might do the trick however
all i get is an error messge:
"Microsoft Access can't find form 'form1' referred in a macro
expression or Visual Basic Code".
I'm after suggestions as to how I could get this to work ?
image2 to display if not.
I've found this line of code which seems to work:
if IsNull(forms!form1!txtbox1.Value) = True then img1.Picture =
"C:\mypic.jpg" else img1.Picture = ""
the trouble is form1 is not open at the time this code runs. I tried
numerous things to fix. A thought a subform might do the trick however
all i get is an error messge:
"Microsoft Access can't find form 'form1' referred in a macro
expression or Visual Basic Code".
I'm after suggestions as to how I could get this to work ?