473,748 Members | 8,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OLE bound photographs

24 New Member
I have created the appropriate table with the field titled "picture" and OLE. In each form. I have then create the form via a query within which I go to object, insert link and the photogaph is embedded. No probs so far.

I then click on tha navigation bar. I want to miss the next form as there is no photograph to insert. When I click again on the navigation bar to go to the 3rd form, I am informed " OLE object is empty. You can't edit a bound object frame if the field in the underlying table doesn''t contain an OLE object....Embed or link an OLE object into the bound object frame using the object command in the insert menu."

I know the underlying able doesn't have an OLE object (photograph). There isn't one to insert on the 2nd form. However, the message will not allow me to "cancel" it and each time I click on the navigation bar the message reappears.

I want to embed a photograph to relate to each separate form. Your advice would be welcome
Aug 15 '06 #1
6 7278
MMcCarthy
14,534 Recognized Expert Moderator MVP
Have you tried using an unbound object frame?

I have created the appropriate table with the field titled "picture" and OLE. In each form. I have then create the form via a query within which I go to object, insert link and the photogaph is embedded. No probs so far.

I then click on tha navigation bar. I want to miss the next form as there is no photograph to insert. When I click again on the navigation bar to go to the 3rd form, I am informed " OLE object is empty. You can't edit a bound object frame if the field in the underlying table doesn''t contain an OLE object....Embed or link an OLE object into the bound object frame using the object command in the insert menu."

I know the underlying able doesn't have an OLE object (photograph). There isn't one to insert on the 2nd form. However, the message will not allow me to "cancel" it and each time I click on the navigation bar the message reappears.

I want to embed a photograph to relate to each separate form. Your advice would be welcome
Aug 16 '06 #2
PhilBowen
24 New Member
Yes. However, that results in the same photograph appearing on each and every form. I also want others to be able to upload photographs onto the forms and not go into "design view".

I want a separate photgraph to appear on each form.

I have tried/ tested the Active X control (DBPIX0 2.O control) which does result in me being able to get photos on each form. This allows upload at a reduced storage.

I do have a network where I use PC and laptop. Draw back with DBPIX0 2.0 control is that it only allows me to access via one PC.

Your thoughts would be most welcome. What possible alternatives/ options are there?

Regards

Phil
Aug 16 '06 #3
ADezii
8,834 Recognized Expert Expert
Yes. However, that results in the same photograph appearing on each and every form. I also want others to be able to upload photographs onto the forms and not go into "design view".

I want a separate photgraph to appear on each form.

I have tried/ tested the Active X control (DBPIX0 2.O control) which does result in me being able to get photos on each form. This allows upload at a reduced storage.

I do have a network where I use PC and laptop. Draw back with DBPIX0 2.0 control is that it only allows me to access via one PC.

Your thoughts would be most welcome. What possible alternatives/ options are there?

Regards

Phil
How about dynamically loading the Picture into an Image Control on the appropriate Form. If an image doesn't exist for a Form, don't load any, or load a Default Picture. The size of your Database will also be drastically reduced. I perform a similar function in any Inventory Database which contains images of 500+ items. The filename only is stored in a Table and the graphic is loaded from a Relative Path structure. If you're interested, I can get more specific and show you some code.

ADezii
Aug 17 '06 #4
PhilBowen
24 New Member
Thanks. If you have the code that would be really useful.

In the mean time have you or any others used Active X control (DBPIX0 2.O control) or something similar
Aug 17 '06 #5
ADezii
8,834 Recognized Expert Expert
Thanks. If you have the code that would be really useful.

In the mean time have you or any others used Active X control (DBPIX0 2.O control) or something similar
Application.Ech o False 'Turn OFF Screen Updating
If IsNull(Me![txtFieldPicture]) Then
Me![txtFieldPicture].Visible = False
Me![imgFieldInvento ry].SizeMode = acOLESizeStretc h
Me![imgFieldInvento ry].Picture = fGetDBPath & "Graphics\Inven tory\" & "Thumbs Down.jpg"
Else
If Dir(fGetDBPath & gINVENTORY_GRAP HICS & Me!txtFieldPict ure, vbNormal) <> "" Then ' <R87>
Me![txtFieldPicture].Visible = True
Me![imgFieldInvento ry].SizeMode = acOLESizeClip
Me![imgFieldInvento ry].Picture = fGetDBPath & gINVENTORY_GRAP HICS & Me!txtFieldPict ure
Else
Me![txtFieldPicture].Visible = False
Me![imgFieldInvento ry].SizeMode = acOLESizeStretc h
Me![imgFieldInvento ry].Picture = fGetDBPath & "Graphics\Inven tory\" & "Thumbs Down.jpg"
End If
End If
Application.Ech o True
Aug 17 '06 #6
PhilBowen
24 New Member
Thanks

Regards
Aug 17 '06 #7

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

Similar topics

4
3576
by: Aaron Ackerman | last post by:
I am using typed datasets in an N-Tier Windows app using VB.NET. I know this posting cannot be fully explained in a single post that is why I am asking for someone to point me to a real world tutorial (in vb.net) that can show me how to use a bound Datagrid to it's fullest potential. I need to utilize the bound Datagrid in two modes. One were a bound Datagrid can be in edited directly utilizing bound combos and textbox right on the grid,...
12
2709
by: Russell E. Owen | last post by:
I have several situations in my code where I want a unique identifier for a method of some object (I think this is called a bound method). I want this id to be both unique to that method and also stable (so I can regenerate it later if necessary). I thought the id function was the obvious choice, but it doesn't seem to work. The id of two different methods of the same object seems to be the same, and it may not be stable either. For...
19
4107
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 the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
0
1283
by: paul | last post by:
Hi I have one table Student number First Name Surname I have a folder containing student photographs where the name of the photo
2
1825
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 trouble. I eventually abandoned this on advice from this group that this format was not reliable, not to mention that it bloated the database. Since then I have successfully been able to manage individual photographs
4
1763
by: kaborka | last post by:
I have a WinForm with controls bound to a typed recordset that was generated by the Dataset Designer. There are several ComboBox controls with their DataSource bound to different lookup tables. Everything is working fine, except when I need to handle a null default value in the data record coming from the database. I want the combo whose SelectedValue is bound to that field to display the "default" entry in the combo in this case. I...
1
4862
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1 to limit what is displayed in bound combo box C2. When I display Tbl-A records on a continuous form, and navigate away from record 1 to record 2, the previously entered data displayed in C2 for record 1 disappears from
7
3006
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 attempting to bind a user control I've written, "ImageBox", to a repeater. The user control takes a custom property, "ContentID", that will execute a database lookup and load an image.
1
9314
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "PAR.PAR_Status" could not be bound. The multi-part identifier "Salary.New_Salary" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part...
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.