G
Guest
Hi,
The subject probably expalins what I'm trying to achieve and failing with,
but I'll elaborate a wee bit.
I have a subform on a main form. The subform diplays the contents of a
table. Upon opening the main form, I want the code to add records to the
table and thus be displayed on the subform.
The table (tblImportTextFiles) has 2 fields. ImportfileName (text field)
and Import? (Yes/No field)
When the main form is opened, I want to delete anything that is on the
table, then add records to the table based on filenames in a certain
directory.
I have managed the deleting of old data and can easily collect the names of
the files, it's the adding the records to the table that is causing me
problems.
Can anyone help me out.
Ta.
Neil
The subject probably expalins what I'm trying to achieve and failing with,
but I'll elaborate a wee bit.
I have a subform on a main form. The subform diplays the contents of a
table. Upon opening the main form, I want the code to add records to the
table and thus be displayed on the subform.
The table (tblImportTextFiles) has 2 fields. ImportfileName (text field)
and Import? (Yes/No field)
When the main form is opened, I want to delete anything that is on the
table, then add records to the table based on filenames in a certain
directory.
I have managed the deleting of old data and can easily collect the names of
the files, it's the adding the records to the table that is causing me
problems.
Can anyone help me out.
Ta.
Neil