I have a form that is used to load data from Excel files to Access.
To keep track of what was last loaded I assign the file and path to a label.
The label had been preserved, that is you could load a file; the name of the
file would be assined to a label caption; the form could be closed and
whne you opened it the last caption assigned would still be there. All of a
sudden it now comes up blank when it is closed and the opened.
Any Ideas??
Thx
Kevin
When you close the form, try this:
Docmd.Close acForm, Me.Name, acSaveYes

Signature
Dave Hargis, Microsoft Access MVP
> I have a form that is used to load data from Excel files to Access.
> To keep track of what was last loaded I assign the file and path to a label.
[quoted text clipped - 7 lines]
> Thx
> Kevin
KC-Mass - 30 May 2008 19:41 GMT
It reports that the form, "frmLoad" is not open. It is. ???
Docmd.Save acform, Me!frmLoad also reports "form not open". Again it is and
that is its name.
thx
> When you close the form, try this:
>
[quoted text clipped - 14 lines]
>> Thx
>> Kevin
>>I have a form that is used to load data from Excel files to Access.
How does this work?

Signature
KARL DEWEY
Build a little - Test a little
> I have a form that is used to load data from Excel files to Access.
> To keep track of what was last loaded I assign the file and path to a label.
[quoted text clipped - 7 lines]
> Thx
> Kevin
KC-Mass - 30 May 2008 19:30 GMT
It uses a TransferSpreadheet to load the data into the first Access table.
From there an access query filters the data and moves it to a standard
table. That works fine. Just the labels are a problem.
Thx
>>>I have a form that is used to load data from Excel files to Access.
> How does this work?
[quoted text clipped - 13 lines]
>> Thx
>> Kevin