From: TJ89 on
Is there some easy way to save and restore all the data on a form?

What code do I need to find all data fields?

I'm thinking like the following air code...



SaveForm frmPmain
LoadForm frmPmain

********************

Public Sub SaveForm(frm as Object)
Dim AllData as String

For each ???? in frm

AllData=AllData & ????.??? & vbTab

Next

'save to file
End Sub


Public Sub LoadForm(frm as object)
Dim AllData() as string

AllData=split('get data,vbTab)

For each ???? in frm

????.???=AllData(Index)
Index=Index + 1
Next

End Sub
From: TJ89 on
TJ89 wrote:
> Is there some easy way to save and restore all the data on a form?
>

Thanks, I think I found what I'm look for.

http://www.vb-helper.com/howto_save_form_settings.html