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

انشاء مجلد


goldposition

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

اخي الكريم

تمت الاجابة عن سؤالك في موضوع سابق

فهل توجد مشكلة في الكود

            Dim fs, cf, strFolder
            strFolder = CurrentProject.Path & "\" & Me.ID.Value
            Set fs = CreateObject("Scripting.FileSystemObject")
            If fs.FolderExists(strFolder) = False Then
            Set cf = fs.CreateFolder(strFolder)
            If fs.FolderExists(strFolder) = True Then
            Else
               MsgBox "تحذير لم يتم انشاء مجلد المرفقات ", vbExclamation
            End If
            End If

تحياتي

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

7 ساعات مضت, goldposition said:

لا المقصود عمل فولدر باسم الاي دي وبداخله فولدر اخر باسم خليه اخرى لاكن دي عمل فولدر واحد

ما اسم الخلية ؟

تحياتي

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

59 دقائق مضت, goldposition said:

حقل ال name

اخي الكريمدعنا نتفق اولاً على تغيير اسم الحقل name الى اي اسم اخرمثلاً txtname

واليك كود انشاء مجلد داخل مجلد

            Dim fs, cf, strFolder, strFolder1
            strFolder = CurrentProject.Path & "\" & Me.id.Value
            strFolder1 = CurrentProject.Path & "\" & Me.id.Value & "\" & Me.txtname.Value
            
            Set fs = CreateObject("Scripting.FileSystemObject")
            
            If fs.FolderExists(strFolder) = False Then
            Set cf = fs.CreateFolder(strFolder)
            End If
            
            If fs.FolderExists(strFolder1) = False Then
            Set cf = fs.CreateFolder(strFolder1)
            End If

تحياتي

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

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