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

    User entered filename for ExportXML?

    When the user clicks a button on a form, I am running the following:



    Code:
      Application.ExportXML _
        ObjectType:=acExportTable, _
        DataSource:="tblXMLExport", _
        DataTarget:="C:\dir\subdir\filename.xml"
    I want to ask the user to define "filename" before I run Application.ExportXML. How would you recommend I do this? Can I concatenate into the DataTarget parameter? Thanks!

  2. #2
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    702
    I usually place a text box on the form and call the standard Windows browse dialog.

    For code that you can easily add to your database see:

    Proximity Functions

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

Similar Threads

  1. ExportXML 800A0400 VBscipt Error
    By gmaczek in forum Import/Export Data
    Replies: 0
    Last Post: 05-10-2010, 08:23 AM
  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: 5
    Last Post: 08-05-2009, 12:13 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