A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

functions in forms?



 
 
Thread Tools Display Modes
  #1  
Old July 24th, 2006, 05:31 PM posted to microsoft.public.access.forms
Leif
external usenet poster
 
Posts: 82
Default functions in forms?

Hi Clive,

I see you and I have a question with no response. Perhaps I can help you.

Functions is module are usually place their if the are either

1. Global to the application. In that case you indicate it is a PUBLIC
function.

or

2. Used by another subroutine within the module (only), in which case you
indicate it is a PRIVATE function.

In a form a function would be accessible by other subroutines in the form
code and are indicated as PRIVATE. However, they can be labeled PUBLIC then
they are accessible from outside the form.

If that does not anwser your question please provide additional details.

"grog" wrote:

Hi,

I am missing something. If I define a funtion within a module then it
will execute satisfactoriily from the immediate window. If I define a
funtion within a form then it does not execute satistactorily. Is this
a quirk of the immediate window? or should functions only be defined in
modules not form code?

thanks in advance.

Clive Grog


 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.