اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

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

قام بنشر

أخي محسن  :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

جعفر

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

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

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

Important Information