prevent viewing procedure names with ALT-F8

G

grt

hi,
I have a rather large database with a substantial amount of Procedures. As
my code became hard to read I decided to split it up in different Modules.
However, I can't use the 'Private Sub Statements' anymore while executing
code from different modules together.
Is there another way to avoid that you can see all the procedure names with
ALT-F8 now I can not use the 'Private Sub' names for my Procedures'?
tia,
grt
 
J

JE McGimpsey

grt said:
hi,
I have a rather large database with a substantial amount of Procedures. As
my code became hard to read I decided to split it up in different Modules.
However, I can't use the 'Private Sub Statements' anymore while executing
code from different modules together.
Is there another way to avoid that you can see all the procedure names with
ALT-F8 now I can not use the 'Private Sub' names for my Procedures'?
tia,
grt

One way is to include an optional dummy argument in the procedure
declaration:

Public Sub foo(optional bar as long)
'your code here
End Sub

Note that this won't affect any of your existing procedure calls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top