473,396 Members | 2,151 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,396 software developers and data experts.

Inserting pictures on msaccess database

I spend a lot of time making 2 thousand pictures and saving them as an
article name. jpg.

I have a table with the article name and name of the file in jpg (format).

How can I make an instant attach to the database instead of adding picture
record by record... is any way possible to do that on msaccess?

Thank you
Nov 12 '05 #1
3 2662
Pardon my extra words, you appear to be from Portugal, I hope the extra
words will make the translation easier

It is far better to save the pictures as pictures and not in an Access mdb.
Access is bad at saving pictures in an mdb

try, this

Save the path to the pictures in the mdb and do this when you need a
picture:

Set MySet = CurrentDb().OpenRecordset("select * from [tblIMAGES] where
[PicName] = '" & MyName & "';", dbOpenSnapshot)
Select Case MySet.RecordCount
Case 1
Me.ctlItemPic.picture = MySet!PATH
Case Else
Me.ctlItemPic.picture = "C:\default.bmp"
End Select

John Bickmore
www.BicycleCam.com
www.Feed-Zone.com

"Pedro Maria Ferro da Cunha" <pf*****@iol.pt> wrote in message
news:10**************@news.iol.pt...
I spend a lot of time making 2 thousand pictures and saving them as an
article name. jpg.

I have a table with the article name and name of the file in jpg (format).

How can I make an instant attach to the database instead of adding picture
record by record... is any way possible to do that on msaccess?

Thank you

Nov 12 '05 #2
If it has to go into a table, then I can think of only two ways, record by
record, or using the Dir() function to loop through the folder they are
stored in, then adding them record by record through a recordset in code.
Perhaps you're better off only keeping the path to the image in the DB?

Mike Storr

"Pedro Maria Ferro da Cunha" <pf*****@iol.pt> wrote in message
news:10**************@news.iol.pt...
I spend a lot of time making 2 thousand pictures and saving them as an
article name. jpg.

I have a table with the article name and name of the file in jpg (format).

How can I make an instant attach to the database instead of adding picture
record by record... is any way possible to do that on msaccess?

Thank you

Nov 12 '05 #3
Download the sample databases from http://accdevel.tripod.com. They
illustrate three approaches to handling images in Access. You can embed the
programmatic method for embedding or linking in a VBA loop using the DIR
statement to find the names of the files. You may want to review the
included article which discusses considerations in choosing the method
appropriate to use in your application.

Larry Linson
Microsoft Access MVP
"Pedro Maria Ferro da Cunha" <pf*****@iol.pt> wrote in message
news:10**************@news.iol.pt...
I spend a lot of time making 2 thousand pictures and saving them as an
article name. jpg.

I have a table with the article name and name of the file in jpg (format).

How can I make an instant attach to the database instead of adding picture
record by record... is any way possible to do that on msaccess?

Thank you

Nov 12 '05 #4

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

Similar topics

1
by: Fons Dijkstra | last post by:
Hello, I'm using the mx.ODBC.Windows package in order to read/write a MSAccess database. Everything works fine apart from the DATE format handling. I'm using the default "datetimeformat" (i.e....
1
by: nsj | last post by:
how to insert records in table1 of db1.mdb of MsAccess using Vb.NET
3
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and...
2
by: keith | last post by:
Thanks to everyone for their previous help, I'm almost finished with my database. I just need one piece of information, and it should be good to go! I'm using a SQL Server database with Access...
2
by: PraveenKadkol | last post by:
I have 25000 Rows, that needs to be inserted into Oralce table from MsAccess When i run below code, i am not getting any error message, Still records are not inserting into destination table. ...
0
by: eBob.com | last post by:
Here's how I insert and size pictures in an Excel spreadsheet which I create via a VB.NET program (commentary follows): 'add thumb nail objSheet.Rows(XLRow.ToString).rowheight =...
0
by: ismashkhy | last post by:
I want to create a report table of certain Items with their corresponding pictures. Using Msaccess as database connection (ADO) in VB6, I need to export the table with header and it's complete...
1
by: bseakgano | last post by:
Am using VB.Net though it is my first time to use it . I just want to insert , delete , seach, update pictures into database, I want to using vb.net and forms(ASP) to insert pictures into SQL. Please...
0
by: bbrewder | last post by:
I am struggling with some MSAccess automation issues. Basically, we have a .Net application that uses MSAccess for reporting (legacy code). We are able to launch MSAccess fine and even work with...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.