Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

File and folder manipulation

Discussion in 'Information Technology' started by Dave K, Jul 28, 2006.

  1. Dave K

    Dave K
    Expand Collapse
    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?
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News Profiled US Sikh Throws 'Know Me' Challenge Breaking News Jul 25, 2016
    Hard Talk Sikh Musician Racially Profiled At US Restaurant Hard Talk Jul 6, 2016
    India Patna man files defamation suit against son for inter-caste marriage Breaking News Jan 6, 2014
    USA Federal hate crime indictment filed in 'savage' attack on cab driver Breaking News Apr 4, 2013
    Malaysia Bank Islam Files Police Reports Against Chief Economist Breaking News Jan 23, 2013

  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    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

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "Dave K" <DaveK@discussions.microsoft.com> wrote in message
    news:9ED27837-C8A5-4723-9FEB-9108F9A3058F@microsoft.com...
    > 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?
     
  4. Dave K

    Dave K
    Expand Collapse
    Guest

    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.

    "Douglas J Steele" wrote:

    > 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
    >
    > --
    > Doug Steele, Microsoft Access MVP
    > http://I.Am/DougSteele
    > (no e-mails, please!)
    >
    >
    > "Dave K" <DaveK@discussions.microsoft.com> wrote in message
    > news:9ED27837-C8A5-4723-9FEB-9108F9A3058F@microsoft.com...
    > > 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?

    >
    >
    >
     
  5. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    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?

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)


    "Dave K" <DaveK@discussions.microsoft.com> wrote in message
    news:CEA7E5F5-5C3B-41F5-9E99-69CB8D76DAF2@microsoft.com...
    > 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.
    >
    > "Douglas J Steele" wrote:
    >
    >> 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
    >>
    >> --
    >> Doug Steele, Microsoft Access MVP
    >> http://I.Am/DougSteele
    >> (no e-mails, please!)
    >>
    >>
    >> "Dave K" <DaveK@discussions.microsoft.com> wrote in message
    >> news:9ED27837-C8A5-4723-9FEB-9108F9A3058F@microsoft.com...
    >> > 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?

    >>
    >>
    >>
     

Share This Page