Public variable's 'lifetime' only module/procedure-level ?
Referring to page 152, the following code ( declarations ) which I hoped would retain the value of sSid, when another form opens, to be referenced there, doesn't....
[CODEOption Compare Database
Dim pin As Integer
' Get the full path and name of the current database
Dim db As DAO.Database
Dim rs, rs1 As DAO.Recordset
' for Staff_ID as filter on Main Form
Public sSid As Long
Dim strFullpath, strSQl As String
Dim Msg, Style, Title, Response
Dim c As Long][/CODE]
Any ideas ? ( probably something simple, I've overlooked, knowing me ... ) Thanks.
|