File and folder manipulation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can folders be created from access, and can files be copied from one folder
to a new folder based on a search result in Access 2000?
I have a table with lot numbers, and material ID fields that I would like to
search, and based on the results I would like to copy files from one folder
to a new one.
Is it possible to search for more than one lot number at a time, and is it
possible to copy files from multiple locations and paste them to one at the
same time?

Can this be done?
What is the best way to achieve this?
 
There's a MkDir statement in VBA that will let you create directories.

To copy files, you can use the FileCopy statement (to move, you can use the
Name statement)

Not sure what you have in mind by "search for more than one lot number at a
time".

AFAIK, it's not possible to copy files from multiple locations in a single
instruction
 
Sorry, I meant to ask if I could search for multiple items from the same
field in a table, or am I limited to one item. I would like to enter multiple
lot number in a form and get the results back from just those lot numbers.

Can information be output to the creation of a batch file to perform file
manipulation.
 
You can have multiple search conditions ORed together:

WHERE Field1 = "ABC" OR Field1 = "XYZ" OR Field1 LIKE "B*"

You can use the Open method to create a text file (which can have an
extension of .BAT), and the Print statement to write to it, so yes, it's
possible to programmatically create a batch file. But why would you want to?
 
Back
Top