Const Fails to work
On May 19, 9:48 am, johnb wrote:
Const AFile as string = "C:\xxxxx\xxxxx\xxxx.mdb" placed at the top of a
standard module but fails to show in the procedures other than the top
procedure.
Any ideas why??
TIA johnb
Both of the following subs work fine for me. Can you be more specific
about what's happening for you?
Option Explicit
Const AFile As String = "C:\xxxxx\xxxxx\xxxx.mdb"
Public Sub Test()
MsgBox "1: " & AFile
End Sub
Public Sub Test2()
MsgBox "2: " & AFile
End Sub
-Bryan
|