Public Sub exportForm(sFormName As String, sExportLocation As String)
'' usage:
''
'' exportForm "yourFormName", "d:\folder\"
''
Dim c As Container
Dim d As Document
Set c = db.Containers("Forms")
For Each d In c.Documents
If d.Name = sFormName Then _
Application.SaveAsText acForm, d.Name, sExportLocation & "Form_" & d.Name & ".txt"
Next d
End Sub
Public Sub importForm(sFormName As String, sImportLocation As String)
'' usage:
''
'' importForm "yourFormName", "d:\folder\"
''
'' if the form already exists, rename it first.
''
Application.LoadFromText acForm, sFormName, sImportLocation & "Form_" & sFormName & ".txt"
End Sub