Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2005

Tip: Looking for answers? Try searching our database.

Image.Picture--size of property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Holzhauer - 19 Aug 2005 02:09 GMT
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
PC Datasheet - 19 Aug 2005 02:54 GMT
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.

Signature

                                       PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
                             resource@pcdatasheet.com
                                www.pcdatasheet.com

> I'm attempting to assign an image path to an image control, as below:
>
[quoted text clipped - 8 lines]
> Thanks for your help!
> Joe
Joe Holzhauer - 19 Aug 2005 04:35 GMT
Oh-sorry.  I did that for clarity.  The real recordset is recImages:

imgImage.Picture = recImages!ImagePath

Any other ideas?

Thanks!

> Just a guess - change your variable Recordset name to something else
> (Rst??). Recordset is a reserved word and when you use reserved words,
[quoted text clipped - 12 lines]
>> Thanks for your help!
>> Joe
Dirk Goldgar - 19 Aug 2005 06:19 GMT
> 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?

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.