473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help needed on picture files in access

I need to include a picture / photograph in a Db then from a query
export to Excel - picture included - I just can't find a way through
this - can anyone please help? TIA JOhn

Jan 9 '06 #1
2 1489
This may help, but it reports a product spec sheet directly from an
actual Access reort rather than exporting to excel. Describe the
specifics of why you need to export images to excel - the processing
overhead could be pretty high.

This may give some ideas:
I had a similar situation which is working well in
Access. I scanned JPEGs of all my products and opened a field in my
product table called ProductPicture. The value of each field
corresponds to
an address in another folder on my server that holds all the JPEGS.
My address field for say my product 7961776 is stored on a Linux
server
having a common folder and a sub-folder named
productJPGs. So my field in my access table has this value to look up:
\\LinuxMain\Common\productJPGs\7961776.jpg
In my report, which can be printed as a product spec
sheet or emailed, the formatting routine (in the code for the report)
links the jpeg at the time of printing or emailing. It gets its value
from the form where I choose a product from a combo box.
'on format jpeg is referenced
Private Sub Detail_Format(Cancel As Integer,
FormatCount As Integer)
On Error Resume Next
Me![ProductImage].Picture =
[Forms]![ProdDispScreen]![ProdID]
End Sub
My print button on my ProdDispScreen form has the
following code:
Private Sub printSpecs_Click()
'Prints Product Specifications of ProdID shown in ProdDispScreen.
On Error GoTo Err_printSpecs_Click
Dim stDocName As String
stDocName = "TagSpecRep"
DoCmd.OpenReport stDocName, acPreview,
"TagSpecFilter"
DoCmd.RunCommand acCmdZoom50
Exit_printSpecs_Click:
Exit Sub
Err_printSpecs_Click:
MsgBox err.Description
Resume Exit_printSpecs_Click
End Sub
the "TagSpecFilter" is a query that simply tells it to
print a report
only for the displayed record (product). SQL:
SELECT DISTINCTROW ProdID.*
FROM VFProducts
WHERE
(((Products.ProdID)=[Forms]![ProdDispScreen]![ProdID]));
In summary, placing all the actual jpeg files in a separate folder
from my actual Access Application improves the performance. I
originally placed the jpegs themselves into my database, but the
loading time and size of my app was unbelievable. Hope this helps a
little! Brian

Jan 9 '06 #2
Brian

Many thanks for taling the time to repond to my request.

I am not a techie so I am still working through your code and looking
at adapting it for my need. But I do understand the concept and I
believe it will solve my problem.

My need is driven by the following. I currently use Access 97 to
produce my html web pages from queries. This works well but is all
descriptive without any pictures but I do carry a simple PICTURE
hyperlink to the specific picture for that product.

Willing to accept constructive critism I am responding to clients who
say they would like to see a thumbnail of each item - I am loathed to
give up the system I use so am looking for a solution work-arround. I
will battle on with your code but if you can add anything to help my
quest I would appreciate it.

many Thanks - John - www.gamesetal.net

Jan 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
2
by: Lyn | last post by:
Hi, I am struggling to display photographs in a list format. Any help will be greatly appreciated. Originally I had attempted to store photographs as embedded OLE Objects, but had lots of...
15
by: Jake | last post by:
Hello, We have some code (see below) that has been working intermittently and I was wondering if someone had a better approach or an idea on why we get these errors. This part of code basically...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
1
by: blazingmavrick | last post by:
My problem consits of the following:- i am creating mulitple picturebox's, when the user double clicks on the picture box it opens the opendialog box to load a picture (jpeg only) into the picture...
4
by: =?Utf-8?B?Q2FybGFKYWRl?= | last post by:
Can anyone help me? I need to use picture it 2000 every day and use to use it on Windows XP and had NO problems at all. If I would open up windows explorer i could be in my folder that has all of...
6
by: aanund | last post by:
I don't know if I'm in the right place, or doing this properly, but I hope someone sees it anyway. I am a rookin i PHP, yet I have found this to be an efficient and useful scripting language for many...
13
by: Martin Racette | last post by:
Hi, I would like to create a program to keep track of all of DVD in my collection, but I do no know how I can do such a thing. I use to use Access to do this but Access 2007 refuse to use most...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.