599CD.com Busy busy busy...   Mobile View
 
 
NEW Courses - Access Work Orders, Excel 2007 Level 5 dismiss
 
   
 

What's New?  |  Courses  |  Theater  |  Demo  |  Tips  |  Blog  |  Forums  |  Search  |  Help  |  Order

 
What do you want to learn today? 
 
 

Microsoft Access Imaging Seminar
Work with Images and Objects in Access

 
This seminar will teach you how all about working with images, pictures, graphics, OLE objects, attachments, and pictures from the Web. You will learn how to store pictures in your database, and how to work with images that are NOT stored in your database. You'll also learn how to work with the new Attachment data type.

This seminar came about because one of my customers had a need to work with a large number of images in his database, but storing pictures in an Access database is NOT a very efficient use of space. Your database gets big and slow very quickly.

So, in this seminar, I will show you a technique for selecting a file by browsing your drives, copying that file to an Images folder, and then displaying that image in your database forms and reports WITHOUT storing it in the database.

But... we don't stop there. Since we're going to learn about images, we might as well learn everything about images. We'll start with basic OLE objects (bound, unbound, linked, embedded, etc.) and move right into VBA coding for Image controls. You'll learn about the new Attachment field type in Access 2007 (but don't worry, almost everything else is perfectly valid for Access 2000 and 2003 users) and lots more.

Click here for a video showing what's covered in this seminar:

AccessLearningZone.com
Click to Play - Seminar Preview
 


 

 
Seminars - Access Imaging
Description: Learn how to work with images and other types of objects in your Access databases.
Versions: I will use Access 2007, however most of the lessons are valid for all versions of Access back to 2000. I will show any differences between 2007 and 2003. The lesson on Attachments is specific to 2007.
Pre-Requisites: Access 101 - 104 a must
Access 201 - 207 highly recommended
Access 301 - 329 very helpful
Running Time: 3 hours, 32 minutes
Cost: $69

 

This seminar has several main goals. You will:

1. Learn about the different types of OLE objects
2. Discuss the most efficient way to work with images
3. Embed and Link OLE objects into your tables and forms
4. Work with non-image objects (spreadsheets, documents)
5. Display external images in your forms & reports
6. Browse your hard drive to select a file
7. Copy files to a central "Shared Images Folder"
8. Display images found on Web sites in your Database
9. Work with the new Attachment type in Access 2007
 

We will begin by learning about all of the different types of objects you can use in Microsoft Access. You'll learn about bound and unbound OLE objects, images, linking vs. embedding, non-image objects, when and when NOT to store images in your database, and you'll learn about the new Attachment data type.

 

Next we'll build a table and form to store embedded OLE objects right in our database tables. This is OK if you don't have a very large number of images to work with. You'll see how easy it is to edit these images in place.

 

In the next lesson, you'll see how easy it is to work with non-image objects in your database. We will embed a Microsoft Excel spreadsheet into a database form and give our users the full functionality of Excel without ever leaving Access.

 

Next you'll see how we can embed a company logo ONCE in a single form, and then use that same image in all of our other forms and reports without making separate copies of it. This saves a lot of space in our database.

 

We will then learn how to work with the Image control. This allows us to specify the path and filename of a picture file on our hard drive (or network) and view the image without having to store it in the database.

 

 

Next we're going to look at the Microsoft Common Dialog Control. This was an ActiveX control that shipped with Access 2003 and earlier, but is no longer available in 2007. It allows you to quickly and easily browse for a file on your hard drive.

 

Don't worry, Access 2007 users. I've got a solution for you. Using a little bit of VBA code, we can access that Common Dialog window without a special ActiveX control.

 

Once we learn how to select a file, now we can copy that file up to a central Shared Images folder (or just your database folder if you prefer). This way we can keep all of our images together in one place, and even rename them if we want. If you're working on a network, you want to put your images where everyone has access to view them. Don't panic... I will explain all of the VBA programming code you need to know to get this to work.

 

Next you'll see how you can give your end-users the ability to actually EDIT those pictures using Microsoft Paint. Even though the images aren't stored in the database, we can launch Paint and load up the pictures with just a few lines of VBA code.

 

If you have a Web site with images on it, you can view those images and use them in your Access database forms and reports. This is especially handy if you already have all of your product pictures online. Just point to them, and voila...

 

Next, Access 2007 users will learn how to use the Attachment data type. You can store multiple objects (pictures, text files, documents, spreadsheets, you name it) as attachments to database records... just like Email attachments.

 

 

This seminar is perfect for anyone who wants to learn how to work with images, pictures, or any kind of objects in Microsoft Access databases.

This seminar is long (over three hours) but it's broken up into easily managed lessons of about 10 minutes each. You can sit down, watch a lesson, review the material, test the code out yourself, and experiment. Do a little bit each day. It's long, but it's comprehensive - you won't miss a single step as I've recorded everything from start to finish. 

All of the sample database files for this seminar are available on my Web site (instructions on where to download them are in the course videos). They are available in Access 2007, 2003, and 2000 formats. Click here to download the sample database files.

This seminar is available to view online in the Amicron Theater. You can click here to watch the first lesson absolutely free.

Of course, if you have any questions about whether or not this seminar is for you, please contact me.
 

 

Access Imaging Seminar Outline

0. Welcome (14:40)

1. Intro to Objects (14:04)
OLE Objects v. Images
Bound v. Unbound OLE Objects
Linking v. Embedding
When and when not to store objects
Access 2007 Attachments

2. Database Setup (2:41)
Creating the Database
Customizing Options
Trusted Locations

3. Table Form Setup (5:41)
Setup Employee Table
Build Employee Form

4. Bound Embedded OLE Objects (10:02)
Insert Object
Icons v. Full Images
Edit or Display Object
Changing Registered Program Type
Zoom, Clip, Stretch

5. Linked OLE Objects (9:42)
Linking to Objects
File Folder Considerations
Shared Network Folders
Editing Linked Copies

6. Non Image Objects (6:55)
Excel Spreadsheet Fragments
Links to Word and Excel Files
Employee Report

7. Unbound OLE Objects 1 (5:05)
Shared Linked Excel Sheet
Editable Sheet Stored in Form

8. Unbound OLE Objects 2 (8:56)
Main Menu
Shared Logo on Forms Reports
Editable Logo in Multiple Places

9. Image Control 1 (11:18)
Inserting an Image Control
Manipulating the Picture Property
Loading an Image from your Drive
Change Image Button
Loading an Image when the Form Loads
Empty Image Control Box

10. Image Control 2 (12:00)
Show Image on Bound Data Form
Change Image for Each Record in VBA
Load Picture from Server or C: drive
Creating Your Own Subroutine in VB

11. Common Dialog Control (9:52)
Up to Access 2003 Users Only
Use CD Control to Pick a File
Save Filename in Field
Does Not Work in Access 2007

12. Common Dialog DLL (9:08)
All Versions of Access
Use DLL Call to Pick a File
Works With ANY Version of Access
Location of Sample Database Files

13. Copy Files to Server 1 (8:22)
Create a SettingsT Table
DLOOKUP Folder Path
Change Display Code
Null vs. Empty

14. Copy Files to Server 2 (11:25)
Separate Filename from Path
GetFilenameOnly Function

15. Copy Files to Server 3 (12:34)
Determine if File needs copying
FileCopy command

16. Copy Files to Server 4 (9:17)
Ask to Copy if File Already Exists
Dir Function
Make EmployeeID part of Filename

17. Handling Errors (9:13)
Cancel on Select File
Picking a Non-Image File Type
Image Files Moved or Renamed

18. Editing Images (6:27)
Creating Your Own Edit Event
Shell Command

19. Embedding OLE with VBA (4:21)
Pick a File
Embed the File in OLE with VBA code

20. Display Images from Web (10:53)
WebBrowser Control
Determining an Images URL
Navigate to a Web URL
LoadPicture Subroutine

21. Attachments (10:57)
Added in Access 2007
Attachments in Table Fields
Pros and Cons
Attachment in Form
VBA to Work with Attachments
Count Attachments
Cycle Through them on Form

22. Image Report (5:22)
Create a Report with Image Control

23. Review (2:55)

 


 

 

Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now.
 

Student Interaction: Access Imaging Seminar

Richard on 1/1/2007:  Learn how to properly work with images and graphics in your database. This 3.5 hour seminar covers: - OLE Objects, Linking, Embedding - Display external images in forms - Browse drive to select a file - Copy to a "shared images" folder - Embed non-image objects - Display Web-based images - New Attachment data type
Richard on 3/7/2010: PLEASE NOTE: The web page for the sample database files and source code can be found in LESSON 12, about 1:41 into the video.
 James on 3/8/2010: Great Class again Rick. Keep the VBA comming I love it. Great stuff here. I especially like the copy to server classes.
 Dave Sterner on 3/9/2010: I am not seeing the time index you mention by at about 3 minutes when you drop the image control on the form it looks like there is a significant difference between Access 2007 and 2003. With my Access 2003, when I add the image control it automatically starts to browse for a picture and when I click cancel in the browse window, the image box gets deleted. To get an empty box, I had to load a picture and delete it from the picture property of the image control just like in the previous lesson.
 Rupert Bennett on 3/9/2010: Hi Richard, I hit a snag while working through the Images Seminar. I am using Access 2003 and am tyring to use the Common Dialog DLL. I am not saving to a server, so I have my VB Code as EmployeePicture = (me, "C:\Program Files\Microsoft Office\Office11\Samples") I am getting the following error "Wrong number of arguments or invalid property assignment" Can you spot my mistake? Thanks for your help. Rupert


Reply from Richard Rost:

Rupert, remember you're working with the picture PROPERTY of your image control. Change your code to: EmployeePicture.PICTURE = (me, "C:\Program Files\Microsoft Office\Office11\Samples")
 Dave Sterner on 3/9/2010: You might want to warn students about making the EmployeePicture field (the one that contains the path) text size larger than 50. I tried to load some jpg's from my MyDocuments\MyPictures folder and got an error message telling me my field was too small.


Reply from Richard Rost:

Thanks Dave. You just did. :)
 Dave Sterner on 3/9/2010: Correction on my previous comment about cancelling out of the image object not being able to get an empty image box - I have Access 2002


Reply from Richard Rost:

Yep. I think I mentioned that in the video for 2003 and earlier users.
 Rupert Bennett on 3/12/2010: At 08:25 in this lesson, we are comparing the length of the string in the Imagesfolder to determine if we need to copy up to the server. What if we are in another folder on the server, with the length of the PathFilename identical to that of the ImagesFolder? Would that not create a problem?


Reply from Richard Rost:

It's not just the length we're checking... we're comparing the beginning of the folder string to see if it's identical to the same length of string from the chosen file. I did think of one problem, however. If you have your Images folder set to: C:\ Then any file you choose on the C:\ drive will show up as being in the Images folder for the purposes of this function. I suppose a better algorithm is needed. Until I have a few minutes to come up with one, just make sure your Images folder name is UNIQUE on your hard drive, like: C:\Data\dbImages\ Or something like that - something that's not going to be easily confused with another folder.
Ray McCain on 5/6/2010: The image files which I am copying have been set up in multiple album amd sub-album folders, which I need to include in the complete pathfilename. How do I set up a mid string to identify everything between C:\Images\ and the filename and then be able to include it along with the pathname. It is also possible that no album name exists so I would need to check for an empty string and ignore it if one is found.


Reply from Richard Rost:

Hmmm... how about making "C:\images\" your root folder, and then just including any subfolder information either in another field, or as part of the image filename. You would then store your images relative to the root folder. For example: joe.gif subfolder\sue.jpg another\subfolder\bill.gif Would this work for you?
 Alan Hill on 5/6/2010: The launchCD function is just what I have been looking for. It even opens up at the correct folder. That's great. I love it. Thankyou very much.


Reply from Richard Rost:

That's what you pay me for. :) LOL
Alan Hill on 5/6/2010: Hi Richard Common Dialog DLL I know the length of my filepath. N = Len(filepath): P = Len(FullPath) L = P-N so I used ImageTitle = Right(FullPath,L)to get the ImageTitle Seems to work OK Just about to watch copy files to server Best wishes Alan Hill


Reply from Richard Rost:

Good approach.
Ray McCain on 5/21/2010: Due to the use of multiple folders to set up the albums needed for this photo directory, I need to retreive the entire path all the way to FileFolder which ends with "Images\". Since the backslash is in all likelihood not the last one in the path name, I need to know how to rewrite the mid or instr functions to accomidate this.


Reply from Richard Rost:

You can start from the end of the string containing the path/filename to isolate just the pathname. I would start a loop that looks for that last backslash. Let's say you have: S = "C:\Users\Richard\Images\something.jpg" X = len(S) While X > 0 and mid(S,X,1)<>"\" X = X - 1 Wend Now you have the position of the last "\" in the string. At this point you can cut off the filename, which you can do with: S = left(S,X) Now you have just: S = "C:\Users\Richard\Images\" If you want to get what's BEFORE the Images\ folder, you can now just chop that off: S = Left(S,Len(S)-7) Since you know that "Images\" is 7 characters. Now you're left with: S = "C:\Users\Richard\" Hopefully this is what you're trying to find. Now, I haven't fully tested this (it's off the top of my head) and I didn't add any error handling (what if there are no \ in the string?) but it should get you started.
 Lynn on 7/5/2010: So Far I have enjoyed the Access Imaging Seminar
 
 

You may want to read these articles from the 599CD Blog:

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.
 


CLICK HERE for a FREE lesson



Order your first 599CD course now.
Your Satisfaction is Guaranteed!


Subscribe to our RSS FeedWhat's This?

599CD on Facebook  599CD on Twitter  Subscribe to RSS Feed  Add to Live Bookmarks  Add to My AOL  Add to MyYahoo  Add to Google Reader or Homepage    hide  help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Tips & Tricks