473,395 Members | 1,583 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,395 software developers and data experts.

Bound Image Control problem

135 100+
Hello

Ive been trying to find a way to reduce database size (image related) and the only solution ive found (http://support.microsoft.com/default.aspx?scid=kb;en-us;285820) only deals with continuous forms in order to create some kind of "image catalog".

What im trying to find is a way to display the SWITCHBOARD FORM "background picture", which would be the same for ALL records, hoping i can reduce .mdb size (already ALL the pics are only LINKED).

Im good with access but ive been learning fast i just cant figure out the code to use so that i can indicate WHICH exact image"path" to set as the property for image control.

So far im using:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  On Error Resume Next
  3.     Me![Image].Picture = Me![txtImageName]
  4.  
  5. End Sub
but i need to display ONLY ONE picture and with this code the picture changes to display the records (image paths) i have in the tblImage.

Any ideas,
Gilberto
Nov 8 '07 #1
5 2337
MMcCarthy
14,534 Expert Mod 8TB
Hello

Ive been trying to find a way to reduce database size (image related) and the only solution ive found (http://support.microsoft.com/default.aspx?scid=kb;en-us;285820) only deals with continuous forms in order to create some kind of "image catalog".

What im trying to find is a way to display the SWITCHBOARD FORM "background picture", which would be the same for ALL records, hoping i can reduce .mdb size (already ALL the pics are only LINKED).

Im good with access but ive been learning fast i just cant figure out the code to use so that i can indicate WHICH exact image"path" to set as the property for image control.

So far im using:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  On Error Resume Next
  3.     Me![Image].Picture = Me![txtImageName]
  4.  
  5. End Sub
but i need to display ONLY ONE picture and with this code the picture changes to display the records (image paths) i have in the tblImage.

Any ideas,
Gilberto
What is the data type of the txtImageName field?
Nov 8 '07 #2
Gilberto
135 100+
What is the data type of the txtImageName field?
Its TEXT, and contains the image files paths.
Nov 12 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Its TEXT, and contains the image files paths.
OK I would advise changing the datatype to an OLE object and link the files.
Nov 12 '07 #4
Gilberto
135 100+
OK I would advise changing the datatype to an OLE object and link the files.
Thanks ive done so and the size decreased around 15mb.

Thanks a lot!!!
Nov 13 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Thanks ive done so and the size decreased around 15mb.

Thanks a lot!!!
You're welcome.
Nov 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
3
by: Brian Keanie | last post by:
I had asked a question about the above subject a few days ago and between Stephen Lebans and Rog received the following answer. Would someone please tell this *Air Head* .... 1 What is meant by...
1
by: Jax | last post by:
I have an arraylist of objects. This arraylist is bound to a repeater. That repeater then creates a set of controls like so <asp:repeater id="garmentRepeater" runat="server"...
9
by: C Newby | last post by:
I have a data grid control taht contains a data bound coulmn called "Type". Depending on the value of "Type" I want to display a corresponding image in the rendered table cell. So, if the value of...
8
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a...
4
by: Rico | last post by:
Hello, I have an MDE application where I use a bound object frame to display an image. This frame is updatable and bested on the contents of an OLE field. My problem is, some images display as...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
7
by: Computer Guru | last post by:
Hi, Pardon the unclear/verbose subject, I just can't think of another way of phrasing it. Basically, I can assign the (for instance) "Location" property of a picture box to a data-bound item....
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.