PC Review


Reply
Thread Tools Rate Thread

How to display scanned images from a form

 
 
charles.kendricks@charter.net
Guest
Posts: n/a
 
      1st Dec 2006
I have a patient database, but a lot of the old patient records were
scanned and stored previous the development of the database. All of
the scanned image files are named using the patients FirstName_LastName
as the first part of the file name.

What I want to do is to be able to display those scanned images for the
patients from a form which I use to look up other information for the
patients. Of course two of the fields on the form are patient
FirstName and LastName.

I'm sure there must be a fairly straightforward method to accomplish
this, even for a novice such as myself.

 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      1st Dec 2006
You'll want to load each picture into an image control on the form
programmatically. Usually, people store the actual file name in a table,
but if all the images are named consistantly with FirstName_Lastname, and
you are already displaying these fields on the form, you should be able to
build the file name in code as well.

pathname = CurrentProject.Path
Me.ImgControl.Picture = pathname & "\" & Me.FirstName & "_" &
Me.Lastname & ".jpg"

Note: you'll have to change the extention (.jpg) to whatever file format
your image is using. Also replace ImgControl with the actual name of your
Image Control.

On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "Pictures.mdb" which illustrates how to do this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a patient database, but a lot of the old patient records were
> scanned and stored previous the development of the database. All of
> the scanned image files are named using the patients FirstName_LastName
> as the first part of the file name.
>
> What I want to do is to be able to display those scanned images for the
> patients from a form which I use to look up other information for the
> patients. Of course two of the fields on the form are patient
> FirstName and LastName.
>
> I'm sure there must be a fairly straightforward method to accomplish
> this, even for a novice such as myself.
>



 
Reply With Quote
 
kingston via AccessMonster.com
Guest
Posts: n/a
 
      1st Dec 2006
One way to do this is to store all of the images in one folder (e.g. C:\
PatientPics). In the form with the name fields, insert an image control (in
design mode - add an image box, select a temporary image as the default,
change it to (none) in the properties window, and change the Picture Type to
Linked). Use the form's OnCurrent event to set the control's Picture
property to something like:

Me.ImageControl.Picture = "C:\PatientPics\" & Me.FirstName & "_" & Me.
LastName & ".jpg"


(E-Mail Removed) wrote:
>I have a patient database, but a lot of the old patient records were
>scanned and stored previous the development of the database. All of
>the scanned image files are named using the patients FirstName_LastName
>as the first part of the file name.
>
>What I want to do is to be able to display those scanned images for the
>patients from a form which I use to look up other information for the
>patients. Of course two of the fields on the form are patient
>FirstName and LastName.
>
>I'm sure there must be a fairly straightforward method to accomplish
>this, even for a novice such as myself.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display images on a running form Doekoe Microsoft Access Form Coding 6 9th Oct 2007 07:34 PM
Display Multiple Images on a form =?Utf-8?B?RkQ=?= Microsoft Access 3 18th Sep 2007 03:22 PM
Coding to Display Images on a Form =?Utf-8?B?ZHdhbHNoNzc=?= Microsoft Access Form Coding 0 28th Mar 2007 09:26 PM
How to Display Scanned Images With Associated Application charles.kendricks@charter.net Microsoft Access 3 6th Dec 2006 04:17 PM
scanned images =?Utf-8?B?dmlj?= Microsoft Powerpoint 1 3rd Mar 2004 01:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 PM.