Results 1 to 2 of 2
  1. #1
    shay is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    3

    Variuse FileName When Export

    Hi,
    I'm using the DoCmd.TransferText action, but i'd like that the file name will be a variuse from a table,
    something like:


    AString = "[SingleOrdNumber]![OrdNum]"
    DoCmd.TransferText acExportDelim, "ExportStyle", "OrdExportTable", "c:\hash\" & AString & ".ord"
    The "AString" value is a value that is in a field called "OrdNum" within a table called"SingleOrdNumber".

    Does not working.

    Any Idea ?
    Thanks

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    have you opened a recordset of SingleOrdNumber? I dont think you can do that unless you've opened the rs. Try using Dlookup instead.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. User entered filename for ExportXML?
    By nhabegger in forum Import/Export Data
    Replies: 1
    Last Post: 10-08-2010, 08:54 PM
  2. Date and time in filename
    By frankesjoberg in forum Import/Export Data
    Replies: 1
    Last Post: 03-02-2010, 12:35 PM
  3. Filename displaying with image
    By Rob Parker in forum Forms
    Replies: 2
    Last Post: 01-13-2010, 05:05 PM
  4. Prompt for filename for import/export??
    By stephenaa5 in forum Import/Export Data
    Replies: 23
    Last Post: 10-23-2009, 03:43 PM
  5. Replies: 0
    Last Post: 06-11-2009, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums