اذهب الي المحتوي
أوفيسنا

مطلوب زر لاستعراض المجلد الرئيسي والمجلدات الفرعية


الردود الموصى بها

اخواني

عندي قاعدة بها نمودج ارفاق من عدة قواعد في مجلد واحد

وانا اريد زر استعراض الموجود بالنمودج يستعرض كل القواعد التي هي في الفولدر والفلادر الفرعية الموجدة في نفس الفولدر

10.1.Import_Table_Data.mdb.zip

رابط هذا التعليق
شارك

أخي محسن  :smile:

 

كل اللي كنت محتاج له هو رقم الملف  :smile:

 

الكود السابق كان للمجلد الذي تم اختياره فقط ، غير هذا الكود:


Private Sub cmdfrom_Click()

    'open the Open Folder dialog
    Me.DataBaseFromPath = BrowseFolder("which folder")
    'if the user didn't select any folder, exit
    If Len(Me.DataBaseFromPath & "") = 0 Then Exit Sub
    
    'list the .mdb files from the folder
    Call ListFiles(Me.DataBaseFromPath, "*.mdb", , Me.lst_Files)
    'list the .accdb files from the folder
    Call ListFiles(Me.DataBaseFromPath, "*.accdb", , Me.lst_Files)
    
End Sub

والكود الحالي يشمل جميع المجلدات اللي داخل المجلد الذي تم اختياره ، فغير الكود اعلاه الى:


Private Sub cmdfrom_Click()

    'open the Open Folder dialog
    Me.DataBaseFromPath = BrowseFolder("which folder")
    'if the user didn't select any folder, exit
    If Len(Me.DataBaseFromPath & "") = 0 Then Exit Sub
    
    'list the .mdb files from the folder
    Call ListFiles(Me.DataBaseFromPath, "*.mdb", True, Me.lst_Files)
    'list the .accdb files from the folder
    Call ListFiles(Me.DataBaseFromPath, "*.accdb", True, Me.lst_Files)
    
End Sub

جعفر

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information