dbTalk Databases Forums  

A2010 Dbl Click action

comp.databases.ms-access comp.databases.ms-access


Discuss A2010 Dbl Click action in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Devenish
 
Posts: n/a

Default A2010 Dbl Click action - 02-07-2011 , 10:17 AM






I am just making the move from A2K to A2010 (or A2KX ?); missed out
all the intervening steps. Have been exploring it for a few days now.
Have sorted out a few things like finding the navigation pane instead
of the database window; although why I need to quit and restart the
database when I want to display or hide it is irritating!!

I may be posting a few questions as I get further on but for the
moment I have one about the double click event:

In a form I have many text boxes all with the same Double Click
action. In the properties of each textbox, against the On Double
Click event, I have =[viewEntry]. ViewEntry is a public sub in the
code module of that form.

This works perfectly well in A2K but gives an error in A2010:
"the expression On Dbl Click you entered as the event property setting
produced the following error: The object doesn't contain the
Automation object 'viewEntry'
* the expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]"

The help system seems to suggest that A2010 handles it the same as
before. Any advice would be welcome.

Reply With Quote
  #2  
Old   
Stuart McCall
 
Posts: n/a

Default Re: A2010 Dbl Click action - 02-07-2011 , 12:25 PM






"Jim Devenish" <internet.shopping (AT) foobox (DOT) com> wrote

Quote:
I am just making the move from A2K to A2010 (or A2KX ?); missed out
all the intervening steps. Have been exploring it for a few days now.
Have sorted out a few things like finding the navigation pane instead
of the database window; although why I need to quit and restart the
database when I want to display or hide it is irritating!!

I may be posting a few questions as I get further on but for the
moment I have one about the double click event:

In a form I have many text boxes all with the same Double Click
action. In the properties of each textbox, against the On Double
Click event, I have =[viewEntry]. ViewEntry is a public sub in the
code module of that form.

This works perfectly well in A2K but gives an error in A2010:
"the expression On Dbl Click you entered as the event property setting
produced the following error: The object doesn't contain the
Automation object 'viewEntry'
* the expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]"

The help system seems to suggest that A2010 handles it the same as
before. Any advice would be welcome.
Convert the sub into a function. Then it's something that Access can
evaluate.

Reply With Quote
  #3  
Old   
imb
 
Posts: n/a

Default Re: A2010 Dbl Click action - 02-07-2011 , 12:38 PM



Quote:
The help system seems to suggest that A2010 handles it the same as
before. *Any advice would be welcome.

Hi Jim,

This is the way I typically use in events (A2003), no Function, no
‘=’:

Private Sub ThisField_DblClick(Cancel As Integer)
ViewEntry
End Sub


Imb.

Reply With Quote
  #4  
Old   
Jim Devenish
 
Posts: n/a

Default Re: A2010 Dbl Click action - 02-07-2011 , 01:31 PM



On Feb 7, 6:25*pm, "Stuart McCall" <smcc... (AT) myunrealbox (DOT) com> wrote:
Quote:
"Jim Devenish" <internet.shopp... (AT) foobox (DOT) com> wrote in message

news:4bd47bd4-9c83-460c-b874-c635298f3a86 (AT) c10g2000vbv (DOT) googlegroups.com...





I am just making the move from A2K to A2010 *(or A2KX ?); missed out
all the intervening steps. Have been exploring it for a few days now.
Have sorted out a few things like finding the navigation pane instead
of the database window; although why I need to quit and restart the
database when I want to display or hide it is irritating!!

I may be posting a few questions as I get further on but for the
moment I have one about the double click event:

In a form I have many text boxes all with the same Double Click
action. *In the properties of each textbox, against the On Double
Click event, I have =[viewEntry]. *ViewEntry is a public sub in the
code module of that form.

This works perfectly well in A2K but gives an error in A2010:
"the expression On Dbl Click you entered as the event property setting
produced the following error: The object doesn't contain the
Automation object 'viewEntry'
* the expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]"

The help system seems to suggest that A2010 handles it the same as
before. *Any advice would be welcome.

Convert the sub into a function. Then it's something that Access can
evaluate.
I was very hopeful with that suggestion but I still get the same
error. Any other ideas?

Reply With Quote
  #5  
Old   
Salad
 
Posts: n/a

Default Re: A2010 Dbl Click action - 02-07-2011 , 02:06 PM



Jim Devenish wrote:
Quote:
On Feb 7, 6:25 pm, "Stuart McCall" <smcc... (AT) myunrealbox (DOT) com> wrote:

"Jim Devenish" <internet.shopp... (AT) foobox (DOT) com> wrote in message

news:4bd47bd4-9c83-460c-b874-c635298f3a86 (AT) c10g2000vbv (DOT) googlegroups.com...






I am just making the move from A2K to A2010 (or A2KX ?); missed out
all the intervening steps. Have been exploring it for a few days now.
Have sorted out a few things like finding the navigation pane instead
of the database window; although why I need to quit and restart the
database when I want to display or hide it is irritating!!

I may be posting a few questions as I get further on but for the
moment I have one about the double click event:

In a form I have many text boxes all with the same Double Click
action. In the properties of each textbox, against the On Double
Click event, I have =[viewEntry]. ViewEntry is a public sub in the
code module of that form.

This works perfectly well in A2K but gives an error in A2010:
"the expression On Dbl Click you entered as the event property setting
produced the following error: The object doesn't contain the
Automation object 'viewEntry'
* the expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]"

The help system seems to suggest that A2010 handles it the same as
before. Any advice would be welcome.

Convert the sub into a function. Then it's something that Access can
evaluate.


I was very hopeful with that suggestion but I still get the same
error. Any other ideas?
Wouldn't
=ViewEntry()
work instead of
=[ViewEntry]

Reply With Quote
  #6  
Old   
Jim Devenish
 
Posts: n/a

Default Re: A2010 Dbl Click action - 02-08-2011 , 04:29 AM



On Feb 7, 8:06*pm, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
Jim Devenish wrote:
On Feb 7, 6:25 pm, "Stuart McCall" <smcc... (AT) myunrealbox (DOT) com> wrote:

"Jim Devenish" <internet.shopp... (AT) foobox (DOT) com> wrote in message

news:4bd47bd4-9c83-460c-b874-c635298f3a86 (AT) c10g2000vbv (DOT) googlegroups.com....

I am just making the move from A2K to A2010 *(or A2KX ?); missed out
all the intervening steps. Have been exploring it for a few days now.
Have sorted out a few things like finding the navigation pane instead
of the database window; although why I need to quit and restart the
database when I want to display or hide it is irritating!!

I may be posting a few questions as I get further on but for the
moment I have one about the double click event:

In a form I have many text boxes all with the same Double Click
action. *In the properties of each textbox, against the On Double
Click event, I have =[viewEntry]. *ViewEntry is a public sub in the
code module of that form.

This works perfectly well in A2K but gives an error in A2010:
"the expression On Dbl Click you entered as the event property setting
produced the following error: The object doesn't contain the
Automation object 'viewEntry'
* the expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure]"

The help system seems to suggest that A2010 handles it the same as
before. *Any advice would be welcome.

Convert the sub into a function. Then it's something that Access can
evaluate.

I was very hopeful with that suggestion but I still get the same
error. Any other ideas?

Wouldn't
* * * * =ViewEntry()
work instead of
* * * * =[ViewEntry]
Thanks, good idea. It works.

The syntax appears to have changed. They have also corrected the
earlier problem wherein the function was called three times for one
double click.

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.