I call Init from a form OnLoad event which sets the public vars at the start of a session. the strange thing is that now it seems to be happening intermitantly - it'll be fine for a while, them for no apparent reasn, all the variables will be reset. I will next try re-installing office97 to see it it helps.
.....(i've deleted some stuff so only the pertinant bit are here!)
Option Compare Database
Option Explicit
Public pvarGCGInitials As String
Public pvarGCGName As String
Public pvarGCSRVersion As String
Public MailFooter As String
Public pvarWebDBRecipient As String
Public pvarMyComputerName As String
Public pvarCurrentVersion As String
Public pvarDBVersion As String
Public pvarWebdatabaseSent As Boolean
Public mytestvar As String
Public pvarLastUpdate As String
Public Sub Init() 'Called from the main form OnLoad event
Dim db As Database
Dim rst As Recordset
Dim sqlstr As String
mytestvar = "YesSiree!!"
'Set the public variables
pvarMyComputerName = fGetComputerName()
pvarWebdatabaseSent = True
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * FROM GCContacts"

sqlstr = "[PC_Number] = '" & pvarMyComputerName & "'"
'Match the pc with the users details
With rst
.MoveLast
.FindFirst sqlstr
If .NoMatch Then
pvarGCGInitials = "XX"
Else
pvarGCGInitials = !Initials
pvarGCGName = !GCContact
End If
End With
Application.MenuBar = "GCSR"
'Check to see if the version is the latest
Set rst = db.OpenRecordset("SELECT * FROM CurrentVersion"
'Check to see if we are running the same version as the 'live' version (we run frontend locally)
pvarCurrentVersion = Format(FileDateTime(the database server path here), "dd/mm/yy"

pvarDBVersion = rst!Date
If pvarCurrentVersion > pvarDBVersion Then
MsgBox "A new version on the GCG Database is available for download." & vbCrLf & _
"Instructions" ...
End If
pvarGCSRVersion = pvarDBVersion
'Turn off the stupid menubar animations
With CommandBars
.MenuAnimationStyle = msoMenuAnimationNone
End With
Set rst = Nothing
'Get the E-Mail footer info
Set rst = db.OpenRecordset("SELECT * FROM footertext"

rst.MoveFirst
MailFooter = rst!FooterText
End Sub