Results 1 to 4 of 4
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    combobox based on folder names

    Hi guys

    sorry if this has been asked before
    i am really strugling with doing the following, what i need to do is this,

    i have a form called "form1" and on this form i have 3 comboboxes "customercbo", "ProcessCBO" and "filescbo"

    i need to ba able to populate the combobox "customerscbo" from the folder names in a directory on our network, in this case i:\data\testsheets\customers

    in each customers folder we have varuois processes for example "process 1", "process 2", "process 3" this is were i need to get the values for the ProcessCBO from

    in each process folder we then have documents held as pdf files, these files i will need to have listed in the combobox called "filescbo"



    finaly when all three combo boxes have the relivent information in i will click a button called "print" that will print the pdf document

    any help would be great as im starting to get really stuck with how to do this

    Steve

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe this will help you:

    DirListBox() function
    http://www.allenbrowne.com/func-02.html

    You (I would) will have to create two more functions (based on the above function) for the "ProcessCBO" and "filescbo" combo boxes.

  4. #4
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi guys

    Many thanks for the pointers, I will have a go at this when I get into the office in the morning and let you know how I get on.

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

Similar Threads

  1. Replies: 7
    Last Post: 08-20-2014, 03:00 AM
  2. count number of file names within a folder containing
    By dumbledown in forum Programming
    Replies: 2
    Last Post: 04-24-2012, 02:55 AM
  3. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  4. Filling a combobox with field names.
    By millerdav99 in forum Access
    Replies: 1
    Last Post: 04-26-2011, 02:09 PM
  5. Replies: 0
    Last Post: 08-24-2010, 06:38 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