PC Review


Reply
Thread Tools Rate Thread

ACTION and VERB Properties Not Available

 
 
ortaias@hotmail.com
Guest
Posts: n/a
 
      13th Nov 2006
I have a table that has a WORD file embedded in it. The word file is
opened succesfully through a command button located on the form with
the following:

Me![gpcopy].Verb = -2
Me![gpcopy].Action = acOLEActivate

I attempted to duplicate this approach with another access 2000
database, but I get the error message that the VERB and ACTION
properties are not available. What is even more surprising, I created
a new form with a command button on the working database, the new form
also fails. The existing working form still works as expected.

Any clues as to why the VERB and ACTION properties cannot now be
accessed?.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      13th Nov 2006
What type of control are you trying to do this with in the cases that don't
work? Only the Bound Object Frame Control, the Chart Control and the Unbound
Object Frame Control has an Action property. The Verb property only applies
to those three control types as well, plus to ActiveX controls.

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


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a table that has a WORD file embedded in it. The word file is
> opened succesfully through a command button located on the form with
> the following:
>
> Me![gpcopy].Verb = -2
> Me![gpcopy].Action = acOLEActivate
>
> I attempted to duplicate this approach with another access 2000
> database, but I get the error message that the VERB and ACTION
> properties are not available. What is even more surprising, I created
> a new form with a command button on the working database, the new form
> also fails. The existing working form still works as expected.
>
> Any clues as to why the VERB and ACTION properties cannot now be
> accessed?.
>



 
Reply With Quote
 
ortaias@hotmail.com
Guest
Posts: n/a
 
      13th Nov 2006
Doug: There is no bound control as I am opening the Word Document
directly through the use of VBA code in a command button. Basically, I
am directly accessing the OLE field on the table.

Also I am troubled by the fact that when I create a new form that
duplicates what the existing form does, the VBA code fails?????????
When I created the form that works (the existing form), I do not recall
setting anything special, yet the new form fails???

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      13th Nov 2006
I suspect that your original sample which worked did have a bound control,
with the same name as the field in the underlying recordset.

The controls I listed are the only ones that allow the Action and Verb
properties: you cannot use them with fields in a recordset.

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


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Doug: There is no bound control as I am opening the Word Document
> directly through the use of VBA code in a command button. Basically, I
> am directly accessing the OLE field on the table.
>
> Also I am troubled by the fact that when I create a new form that
> duplicates what the existing form does, the VBA code fails?????????
> When I created the form that works (the existing form), I do not recall
> setting anything special, yet the new form fails???
>



 
Reply With Quote
 
ortaias@hotmail.com
Guest
Posts: n/a
 
      13th Nov 2006
Figured it out. Doug, you are correct there was a bound control. The
control was set to NOTvisible and I was refering to the control, which
had the same name as the field in the table. Because I failed to "see"
the control, I ended up referring to it in an incorrect manner. Thanks
for the help.

 
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
form action properties =?Utf-8?B?V2F5bmU=?= Microsoft Outlook VBA Programming 3 28th Sep 2006 12:32 PM
Custom Action Data Properties Kerry Whelan Microsoft Dot NET Framework 0 17th Sep 2004 03:43 PM
using deployment properties in custom action Greg Shaw Microsoft Dot NET 0 2nd Jun 2004 08:08 AM
disabling a firewall and properties action not disaplying =?Utf-8?B?bGl6czEwMTU=?= Windows XP General 1 23rd May 2004 02:46 AM
Get Performed Illegal Action message with Files, Properties, OK jsg Microsoft Outlook 0 1st Apr 2004 03:39 PM


Features
 

Advertising
 

Newsgroups
 


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