Image.Picture--size of property

  • Thread starter Thread starter Joe Holzhauer
  • Start date Start date
J

Joe Holzhauer

I'm attempting to assign an image path to an image control, as below:

imgImage.Picture = Recordset!ImagePath

I keep getting the error "The setting for this property is too long." At
first, I was using a very long filename, but the error persists even when I
change it to a short one (i.e. "c:\test.bmp").

Any idea why? It doesn't seem too long to me!

Thanks for your help!
Joe
 
Just a guess - change your variable Recordset name to something else
(Rst??). Recordset is a reserved word and when you use reserved words,
strange things happen.
 
Oh-sorry. I did that for clarity. The real recordset is recImages:

imgImage.Picture = recImages!ImagePath

Any other ideas?

Thanks!
 
Joe Holzhauer said:
Oh-sorry. I did that for clarity. The real recordset is recImages:

imgImage.Picture = recImages!ImagePath

Code almost identical to that works for me. Are you sure it's this line
that causes the error?
 
Back
Top