Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 11:42 AM
Brian Graham
Guest
 
Posts: n/a
Default Link OLE objects to Records

I've got a whack of photos from my digital camera that I'd like to link to in a database. (I can add descriptions etc.) If I can get the filenames into a table, how can I link the actual file to a db record?

I'm trying to avoid the manual "Right-Click", "Insert Object", Link, "Browse" etc..
  #2  
Old November 13th, 2005, 11:42 AM
Ozzone
Guest
 
Posts: n/a
Default Re: Link OLE objects to Records

Use the application.filesearch method and just populate a field in the
table with the filenames.

VBA help shows you an example.

  #3  
Old November 13th, 2005, 11:43 AM
Brian Graham
Guest
 
Posts: n/a
Default Re: Link OLE objects to Records

Hmmm. I reviewed the help file and I don't think I made my needs clear.

Lets say I have a table called Photos, with the following fields:
PhotoID - Autonumber
Taken - Date
Location - text
WhoOf - text
Desc - memo
filename - text
Pic - OLE

I can use code to populate the filenames. What I'm trying to do is link the photo with that filename to the Pic field, so that when I use a form to go through the records, the picture will be displayed. I don't want to create all those links by hand...

Also, I was hoping this could be done in A97..
--
Brian
[color=blue][color=green][color=darkred]
>>> Ozzone<ozzonelayyer@yahoo.com> June 9, 2005 1:10 pm >>>[/color][/color][/color]
Use the application.filesearch method and just populate a field in the
table with the filenames.

VBA help shows you an example.



 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles