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 / New Users / January 2005

Tip: Looking for answers? Try searching our database.

Listbox and images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bhavtosh.sharma@intel.com - 06 Jan 2005 07:03 GMT
hi im facing a problem in working with listbox and images. can anyone
tell me how to include images and link them with listbox entry so that
when user clicks any item then particular linked image should come in
image control. any help wud be highly appreciated.

thanx
sharma
Dan Artuso - 06 Jan 2005 12:16 GMT
Hi,
Well, whatever table contains the info for your listbox entry would also have a
field with the path to an image on your hard drive. Then you simply load the image
associated with the entry.

--
HTH
Dan Artuso, Access MVP

> hi im facing a problem in working with listbox and images. can anyone
> tell me how to include images and link them with listbox entry so that
[quoted text clipped - 3 lines]
> thanx
> sharma
- 06 Jan 2005 12:50 GMT
you need to have the image's filepath in the table with
the records. then when you select the item in the list
box, code would chage the image control'spicture property
to the new file path of the new item.

>-----Original Message-----
>hi im facing a problem in working with listbox and images. can anyone
[quoted text clipped - 6 lines]
>
>.
- 06 Jan 2005 12:55 GMT
sorry. use code like this
Me.Imagecontrol.Picture = DLookup
("[filepath]", "Atable", "[id] ='" & Me.ListBox0 & "'")

>-----Original Message-----
>you need to have the image's filepath in the table with
[quoted text clipped - 17 lines]
>>
>.
 
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.