Private Sub Form_Timer()
' do a periodic backup of records
Dim stFile As String
Dim rs As DAO.Recordset2
Dim fld As DAO.Field2
Dim stData As String
' show status
[Link] = True
DoEvents
' open the file name - latest data always available
stFile = [Link] & “\[Link]”
Open stFile For Output As #1
' get the data
Set rs = CurrentDb().OpenRecordset(“Customers”)
While (Not [Link])
' loop through fields and build the data string
For Each fld In [Link]
If (Not [Link]) Then
stData = stData & [Link] & “|”
End If
Next
' print
Print #1, Left(stData, Len(stData) - 1)
[Link]
DoEvents
Wend
' cleanup
[Link]
Set rs = Nothing
Set fld = Nothing
Close #1
' hide status
[Link] = False
End Sub