Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Location
    Spokane, WA
    Posts
    81

    Post Unanswered: Command To Paste Path

    I have attached a database for ya'll to see what I'm talking about.

    Would really like to a user to be able to choose a file and have it paste into the text box.

    Any suggestions?
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2004
    Location
    outside the rim
    Posts
    1,011
    To allow the user to select a file (including path) so that you can then reference that file to display it in the image control, use the Open/Save Dialog. This allws the uses of the familiar Windows file access dialog boxes without a lot of coding.

    You can use the Common Dialog Control (in which there is a bounty of on-line help for) but I have found the Common Dialog Controls to be unreliable (especially when multiple users, PC and environments come into play). If still interested, make sure you have Common Dialog Boxes referenced and checkout MSDN for help on using it.

    For a better way offered by our good friend Ken of Maverick Software Design, check out http://www.dbforums.com/t993480.html

    Have fun

  3. #3
    Join Date
    Sep 2003
    Location
    Spokane, WA
    Posts
    81
    I was having problems getting the whole situation to work getting an error message saying that the OLE server was not registered. But found the problem.

    It was the COMDLG32.OCX that was missing.

    I installed and registered it and everything works wonderfully.

    Thank you so very much!


  4. #4
    Join Date
    Apr 2004
    Location
    outside the rim
    Posts
    1,011
    Yep, one of several problems with using the common dialog control.

    If you are still interested, there is code in the other thread I listed that utilizes the built in dialog boxes in Access, avoiding the need (and potential for problems) with using the outside OCX controls.

    Ken has it setup so that it's as simple as using a function to get your filename back.

    Have fun

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •