Access databases.... anyone know much?

This is a discussion on "Access databases.... anyone know much?" within the Databases section. This forum, and the thread "Access databases.... anyone know much? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 1st, 2004, 20:32
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Access databases.... anyone know much?

Does anyone know how to add a bound image to a report so that each record has its own image (for example, an image of each employee by their record...)

please help!!
Reply With Quote

  #2 (permalink)  
Old Jul 1st, 2004, 20:47
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
I just use the links to do the images... i don't actually bound an image into the database itself..
Reply With Quote
  #3 (permalink)  
Old Jul 1st, 2004, 22:36
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You can store an image in a OLE Object field, but I generally just save a link in a text field that points to the image for each record.

See the following for examples and details of the OLE technique
http://search.msn.com/results.aspx?F...ess+ole+object
Reply With Quote
  #4 (permalink)  
Old Jul 2nd, 2004, 08:14
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Just give each image the same name as the employeeID like: 34.jpg so you can used the ID to call it.
Reply With Quote
  #5 (permalink)  
Old Jul 2nd, 2004, 08:22
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
how do you call it though? so that I can display it in a report
Reply With Quote
  #6 (permalink)  
Old Jul 2nd, 2004, 13:04
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
ok... does anyone know what this message means when i try to add a file to the ole field in a table:

A problem occurred when Microsoft Access was communicating with the OLE server of ActiveX Control.
Close the OLE server and restart it outside of Microsoft Access.

What do i have to do?
Reply With Quote
  #7 (permalink)  
Old Jul 2nd, 2004, 13:39
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,956
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Dont use OLE objects!!

in fact, you dont need to store anything in the DB at all!! (not even a file name)

just make the image filename the same as the employeeid.

You can then use the fileexists function (filesystemobject) to determine
whether or not you have an image for that employee!
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #8 (permalink)  
Old Jul 2nd, 2004, 13:43
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
but how do i then make each image appear on each record in the report?
Reply With Quote
  #9 (permalink)  
Old Jul 2nd, 2004, 18:14
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
response.write "[img]images/<%= employeeID %>.jpg[/img]"
Reply With Quote
Reply

Tags
access, databases

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Databases? Apocalyptic Poet Classic ASP 1 Apr 23rd, 2008 12:24
ASP Multi users Access to Microsoft Access ish Classic ASP 0 Apr 26th, 2007 20:05
Populating databases DennisK PHP Forum 9 Nov 16th, 2006 15:55
Databases on Easily.co.uk Paula Classic ASP 2 Sep 21st, 2006 09:19
no databases in phpmyadmin Drgreenfingers Databases 1 Feb 4th, 2006 21:21


All times are GMT. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43