You create module _Global
And here you write under
Option Compare Database
Option Explicit
Public Const RL2ID = "TIA"
Public ReportStartDate As Variant (if you need datatype)
Public Const ContractStartDate = #7/1/2002#
Public Const TemplateFileName As String = "ExcelFileName - YYYYMMDD.xls"
Ask if you need to know more
I have a lot to share on this subject
Thanks for the fast response.
I'm not sure how to create 'module_global'
I need a global variable as it is easier than having to pass the var several times.
TIA
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.