PC Review


Reply
Thread Tools Rate Thread

CommandBar function call w/o parens runs function 2-3 times

 
 
Mark Hammer
Guest
Posts: n/a
 
      1st Jan 2004
Anybody seen this one? In Access 2002.

A command bar function call with no parentheses runs a public function
behind a form two or three times, for no reason that I can see.

So, when the command bar properties include

On Action: "=TestCmdBarFunction"

and the function is in a form's code, the function runs twice or three
times.

Add parens and the function only runs once; so,

On Action: "=TestCmdBarFunction()"

runs the function just once.

Had me stumped for awhile. Someone out there got an explanation for this
behavior?

--Mark Hammer
Lake Oswego, Oregon, U.S.



 
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
Determine which commandbar called a function Sgt Waddle Microsoft Excel Programming 3 21st Oct 2008 10:20 PM
Eval Function - Recursive call?? Routine Being Called Multiple Times RandomElle Microsoft Access VBA Modules 0 30th Dec 2007 12:57 AM
custom function in query runs multiple times Michael Microsoft Access Queries 2 24th Aug 2004 02:05 AM
how do i call a function by using the function name as a string of characters Keith G Hicks Microsoft Access Form Coding 2 11th Feb 2004 05:19 AM
How to call a function in a DLL with a function pointer parameter? David Rose Microsoft C# .NET 2 6th Aug 2003 07:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.