G
Guest
I have a dialog box that needs to import data from an excel or csv file, run
an append query to another table based on it, then remove that data.
However, in order for it to be truly useful to other people besides me, it
needs to let them select the file to import from at runtime so they don't
accidentally run the append query twice with the same data. However, even
though both the TransferSpreadsheet and TransferText methods say that File
Name is an optional argument, the code will not run unless the file name is
specified in the DoCmd line. I know when I use the OutputTo method, leaving
the filename blank brings up the file open dialog and lets you specify the
file at runtime. Is there an equivalent command to do the same thing when
importing?
an append query to another table based on it, then remove that data.
However, in order for it to be truly useful to other people besides me, it
needs to let them select the file to import from at runtime so they don't
accidentally run the append query twice with the same data. However, even
though both the TransferSpreadsheet and TransferText methods say that File
Name is an optional argument, the code will not run unless the file name is
specified in the DoCmd line. I know when I use the OutputTo method, leaving
the filename blank brings up the file open dialog and lets you specify the
file at runtime. Is there an equivalent command to do the same thing when
importing?