"TeeSee" wrote in message
...
At the top of one of my form modules I have ....
Option Compare Database
Option Explicit
Private strItem As String
Am I correct in thinking that I can now use strItem in any procedure
within that specific form module? FOr instance if strItem is defined
as "TeeSee" in OpenForm then it would still be the same value on a
cmdClick event on the same form.
Yes.
Are there any tricks to doing so 'cos
I can't get it to work out.
You'd have to show us exactly what you coded. One possible error would be
to *redefine* strItem in the procedures. If you Dim it at the module level,
don't Dim it anywhere else in that module, or you'll just be creating a
separate, local veriable of the same name, hiding the module-level one from
that procedure.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)