Results 1 to 3 of 3
  1. #1
    carremax is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Mar 2013
    Posts
    1

    Query getting slower because of pciture in data set

    Hello everybody,



    I use an access database with picture inside data set. This database became bigger and now a queries last few seconds. The problem comes from the picture. I’d like that Access does not “treat” the picture during query but only when the data set is open by the user. I need a kind of pointer on these pictures.

    Has someone a solution for me?

    Thanks in advance for your help

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I think you post is unclear. What data set? What query? Can you tell us WHAT you are trying to do? --simple terms or an example would help.
    Sounds like you are currently storing a picture(s) in your database. And you would like to change that.

    You can have your "pictures" stored in the windows file system eg. C:\myFolder\MyPictures\PictureId.jpg

    And record the location in your table.

  3. #3
    Rawb is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    I'd recommend the same thing orange does: Save the picture to the file system and just save the path in your database.

    If you need the picture imbedded in the database for some reason, though, you can do this:
    • Create a new Table with only two Fields: An autonumber field (the Primary Key), and a Field for the image.
    • Change your current Table(s) so that it saves the autonumber value from your image table instead of the image itself. And, whenever you need to use the image, just use a JOIN on the two Tables.


    This method has two advantages: First, you're not forced to access the images unless you want to (when viewing the Records from a Bound Form). And second, if multiple Records have the same image, you can just save it in the DB once and point all those Records to the single copy of the image (making the database smaller).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 12-17-2012, 03:46 PM
  2. Replies: 27
    Last Post: 08-14-2012, 09:05 AM
  3. incrementally slower routine -- vba
    By bill shockley in forum Access
    Replies: 2
    Last Post: 07-01-2012, 02:12 PM
  4. Database slower under Windows 7
    By krzycho23 in forum Access
    Replies: 5
    Last Post: 04-27-2012, 01:07 AM
  5. Query filters slower, if left open
    By Frenotx in forum Queries
    Replies: 5
    Last Post: 01-25-2012, 03:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums