PC Review


Reply
Thread Tools Rate Thread

What is an Automation object?

 
 
=?Utf-8?B?cmc=?=
Guest
Posts: n/a
 
      15th May 2006
I'm getting an error message that says, "The object doesn't contain the
Automation object 'Content standard.'" It goes on to say, "You tried to run a
Visual Basic procedure to set a property or method for an object. However,
the component doesn't make the property or method available for Automation
operators. Check the component's documentation for information on the
properties and methods it makes available for Automation operators."

Unfortunately, this is all greek to me. I can't find what an Automation
object is, and I don't know what component it's talking about. Obviously I"m
trying to do something that's not allowed, but I don't have enough knowledge
to even find out what I'm not supposed to be doing.
-rg
 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      15th May 2006
Automation usually refers to using objects from another application inside
your application. For example, you can use Automation from within Access to
work with a Word document or an Excel spreadsheet.

What are you trying to do in your code? Post the relevant code, and indicate
where the error is occurring, and someone will probably be able to help you.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"rg" <(E-Mail Removed)> wrote in message
news:6C535076-0EB7-4FBC-BD5D-(E-Mail Removed)...
> I'm getting an error message that says, "The object doesn't contain the
> Automation object 'Content standard.'" It goes on to say, "You tried to

run a
> Visual Basic procedure to set a property or method for an object. However,
> the component doesn't make the property or method available for Automation
> operators. Check the component's documentation for information on the
> properties and methods it makes available for Automation operators."
>
> Unfortunately, this is all greek to me. I can't find what an Automation
> object is, and I don't know what component it's talking about. Obviously

I"m
> trying to do something that's not allowed, but I don't have enough

knowledge
> to even find out what I'm not supposed to be doing.
> -rg



 
Reply With Quote
 
=?Utf-8?B?cmc=?=
Guest
Posts: n/a
 
      15th May 2006
Thanks for the information.
I am trying to set the value of one field in a record based on the value of
two other fields in the same record. I created a macro that has one action -
SetValue. The Item is [Content standard]![ID], and Expression is [Content
standard]![Strand ID] & "." & [Content standard]![Standard #]. I don't
understand why Access thinks that my table name is an Automation object.
There must be a better way to accomplish what I'm trying to do, any one with
ideas? Thanks,
rg

"Douglas J Steele" wrote:

> Automation usually refers to using objects from another application inside
> your application. For example, you can use Automation from within Access to
> work with a Word document or an Excel spreadsheet.
>
> What are you trying to do in your code? Post the relevant code, and indicate
> where the error is occurring, and someone will probably be able to help you.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>


 
Reply With Quote
 
Douglas J Steele
Guest
Posts: n/a
 
      16th May 2006
There's no reason to store that computed value in your table. As fellow MVP
John Vinson likes to say "Storing derived data such as this in your table
accomplishes three things: it wastes disk space; it wastes time (almost any
calculation will be MUCH faster than a disk fetch); and most importantly, it
risks data corruption. If one of the underlying fields is subsequently
edited, you will have data in your table WHICH IS WRONG, and no automatic
way to detect that fact."

Create a query with a computed field in it that concatenates the two fields.
Use the query wherever you would otherwise use the table.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"rg" <(E-Mail Removed)> wrote in message
news:82D472ED-0B80-485D-9DA6-(E-Mail Removed)...
> Thanks for the information.
> I am trying to set the value of one field in a record based on the value

of
> two other fields in the same record. I created a macro that has one

action -
> SetValue. The Item is [Content standard]![ID], and Expression is [Content
> standard]![Strand ID] & "." & [Content standard]![Standard #]. I don't
> understand why Access thinks that my table name is an Automation object.
> There must be a better way to accomplish what I'm trying to do, any one

with
> ideas? Thanks,
> rg
>
> "Douglas J Steele" wrote:
>
> > Automation usually refers to using objects from another application

inside
> > your application. For example, you can use Automation from within Access

to
> > work with a Word document or an Excel spreadsheet.
> >
> > What are you trying to do in your code? Post the relevant code, and

indicate
> > where the error is occurring, and someone will probably be able to help

you.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >

>



 
Reply With Quote
 
=?Utf-8?B?cmc=?=
Guest
Posts: n/a
 
      16th May 2006
That's cool., I had found another message you wrote to someone else saying
basically the same thing. The field had been used as a unique key and your
other post said not to store the data, but to use more than one field for
primary key, which is what I have now done. Thanks for your help, it's
really appreciated.
-rg

"Douglas J Steele" wrote:

> There's no reason to store that computed value in your table. As fellow MVP
> John Vinson likes to say "Storing derived data such as this in your table
> accomplishes three things: it wastes disk space; it wastes time (almost any
> calculation will be MUCH faster than a disk fetch); and most importantly, it
> risks data corruption. If one of the underlying fields is subsequently
> edited, you will have data in your table WHICH IS WRONG, and no automatic
> way to detect that fact."
>
> Create a query with a computed field in it that concatenates the two fields.
> Use the query wherever you would otherwise use the table.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "rg" <(E-Mail Removed)> wrote in message
> news:82D472ED-0B80-485D-9DA6-(E-Mail Removed)...
> > Thanks for the information.
> > I am trying to set the value of one field in a record based on the value

> of
> > two other fields in the same record. I created a macro that has one

> action -
> > SetValue. The Item is [Content standard]![ID], and Expression is [Content
> > standard]![Strand ID] & "." & [Content standard]![Standard #]. I don't
> > understand why Access thinks that my table name is an Automation object.
> > There must be a better way to accomplish what I'm trying to do, any one

> with
> > ideas? Thanks,
> > rg
> >
> > "Douglas J Steele" wrote:
> >
> > > Automation usually refers to using objects from another application

> inside
> > > your application. For example, you can use Automation from within Access

> to
> > > work with a Word document or an Excel spreadsheet.
> > >
> > > What are you trying to do in your code? Post the relevant code, and

> indicate
> > > where the error is occurring, and someone will probably be able to help

> you.
> > >
> > > --
> > > Doug Steele, Microsoft Access MVP
> > > http://I.Am/DougSteele
> > > (no e-mails, please!)
> > >
> > >

> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Object does not contain the automation object in dlookup queryresults John Spencer MVP Microsoft Access VBA Modules 0 25th Jun 2009 03:33 PM
Re: Object does not contain the automation object in dlookup query results Ken Snell [MVP] Microsoft Access VBA Modules 0 25th Jun 2009 03:25 PM
The Object Doesn't contain the Automation object 'securityTicker' Maury Markowitz Microsoft Access Form Coding 1 8th May 2009 07:22 AM
Error: The Object doesnt contain the Automation Object =?Utf-8?B?QXBwYWNoZQ==?= Microsoft Access VBA Modules 0 12th Jun 2006 06:38 PM
Re: OLE Embedded Object/Object Packager Automation Shyam Pillai Microsoft Powerpoint 0 29th Nov 2005 11:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 PM.