473,699 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OLE Object

I have a table that contains a field "Signature" where the data type is
set-up as OLE Object.

I've created a module that will store global variables for me to use in
various forms.

the variable for the signature I have as:
Global strSignature As Object

I have no idea if the syntax is correct or not.

Anyway, when I close a form, I set the on close event to
strSignature = Signtaure.Objec t

This doesn't seem to work.

Is there a way I can accomplish saving the object as a variable or some
other method, so that I can use it in other forms.

Thank you,
Chris

Nov 13 '05 #1
4 3308
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try Set:

Set strSignature = Signature.Objec t

BTW, the prefix "str" indicates the variable holds a string value. Your
variable doesn't hold a string value, it holds an object; therefore,
change it's name to:

Public objSignature As Object

"Public" superseded "Global" around Access 95.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQnki0IechKq OuFEgEQI3NwCfSM H8ChuIMSIncevHN osKhM/sle4An1CV
mdWNjqoXQTiIKTx KraiEq1Wi
=6/V2
-----END PGP SIGNATURE-----

chris wrote:
I have a table that contains a field "Signature" where the data type is
set-up as OLE Object.

I've created a module that will store global variables for me to use in
various forms.

the variable for the signature I have as:
Global strSignature As Object

I have no idea if the syntax is correct or not.

Anyway, when I close a form, I set the on close event to
strSignature = Signtaure.Objec t

This doesn't seem to work.

Is there a way I can accomplish saving the object as a variable or some
other method, so that I can use it in other forms.

Nov 13 '05 #2
Thank you very much for your response. The syntax corrections were
exactally what I was looking for. However, I'm still unable to
accomplish what I'm looking to do.

I get the error message "The component doesn't support automation"

Again, here is a simplistic view of what I'm trying to do:

I have a Bound Object Frame field "EngineeringSig nature"
I have a Public variable objEngSig As Object in a module

On the "On Click" event of a command button I have:
objEngSig = EngineeringSign ature.Object

When I click the button I get that above error message. I just want to
save the image I have stored in the bound object frame as a variable so
I can use it in another form.

Any further assisatnce would be greatly appreciated.

Chris

Nov 13 '05 #3
chris wrote:
Thank you very much for your response. The syntax corrections were
exactally what I was looking for. However, I'm still unable to
accomplish what I'm looking to do.

I get the error message "The component doesn't support automation"

Again, here is a simplistic view of what I'm trying to do:

I have a Bound Object Frame field "EngineeringSig nature"
I have a Public variable objEngSig As Object in a module

On the "On Click" event of a command button I have:
objEngSig = EngineeringSign ature.Object

When I click the button I get that above error message. I just want to
save the image I have stored in the bound object frame as a variable so
I can use it in another form.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just found out that an Object data type is actually a pointer (4
bytes) and, therefore, cannot hold the data from the Bound Object Frame.
Since the signature doesn't change (does it?), it would be better to use
an Image control & just embed the signature in the control. Then it
would be the same signature for each record.
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQnqOcoechKq OuFEgEQJ7+QCgxB +derSJ4peOWKpA0 z8o6F43WvIAoJ5M
ccOEnfyR3id7Qjx 69eNMLMdl
=VMTs
-----END PGP SIGNATURE-----
Nov 13 '05 #4
It would be a lot simpler if you were working with a standard Image
control instead of an OLE Frame control.

If I remember correctly, you can copy the data from one OLE Frame
control to another. You are using the wrong property as the Object
property is merely a pointer to an Interface. Use the Value property
instead and copy it directly from one Frame control's Value property to
another.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"chris" <ch**********@y ahoo.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Thank you very much for your response. The syntax corrections were
exactally what I was looking for. However, I'm still unable to
accomplish what I'm looking to do.

I get the error message "The component doesn't support automation"

Again, here is a simplistic view of what I'm trying to do:

I have a Bound Object Frame field "EngineeringSig nature"
I have a Public variable objEngSig As Object in a module

On the "On Click" event of a command button I have:
objEngSig = EngineeringSign ature.Object

When I click the button I get that above error message. I just want to save the image I have stored in the bound object frame as a variable so I can use it in another form.

Any further assisatnce would be greatly appreciated.

Chris


Nov 13 '05 #5

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

Similar topics

1
3224
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't understand is:
28
20327
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()', this.pinginterval); - but is there no way to do this without using the literal ObjectName? If I write 'this.methodName()' I get "Line 1 Char 1: Object doesn't support this property or method." in IE, and nothing happens in Firebird.
9
8590
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). On the aspx page I have the object tag as follows:
11
9252
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
44
2442
by: Steven T. Hatton | last post by:
This may seem like such a simple question, I should be embarrassed to ask it. The FAQ says an object is "A region of storage with associated semantics." OK, what exactly is meant by "associated semantics"? What, if any, associated semantics are shared by all objects? That part seems to go beyond the FAQ. Does anybody know of a resource that discusses (focuses on) this topic? -- p->m == (*p).m == p.m
16
25411
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have the properties: mode1, mode2, and mode3. This seems simple but I can't quite figure it out... Any ideas anyone?
0
4628
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't understand is:
26
5680
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized several parts of the DOM, but this does not include the window object. Thank you
3
2770
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Defining_Functions doesn't actually give any insight.
2
2653
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
8685
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
8613
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,...
0
9172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7745
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
6532
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
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2008
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.