U3F1ZWV6ZTIyMDQ4MjY4MjEyMjA5X0ZyZWUxMzkwOTk1NDEyMDg5MQ==

مهارة التعامل مع CurrentDB لمعرفة محتويات قاعدة البيانات و انشاء وفتح وحذف استعلام ب CurrentDb.CreateQueryDef


مهارة التعامل  مع CurrentDB      لمعرفة محتويات قاعدة البيانات
  و انشاء وفتح وحذف  استعلام  ب CurrentDb.CreateQueryDef 








مهارات فى اكسيس
مسلسلاسم الملفلينكالمدة ب الدقيقة
1 معرفة عدد الاحرف او الكلمات الموجودة في احد الحقول في اكسيس Dcounthttps://youtu.be/WE0_of3cU0g12
2كيفية اخفاء شاشة الاكسس واظهار شاشة البرنامج مباشرةhttps://youtu.be/ePZKCngCXhI3
3برنامج أدخل تاريخ ميلادك يعطيك عمرك بالسنة و الشهر و اليوم MS Access Skillshttps://youtu.be/kuocx5KbRbk5
4مهارة تنسيق التاريخ فى اكسيس من خلال الدالة و formathttps://youtu.be/ma1CJv2YFZQ10
5مهارة تقسيم الإسماء دفعة واحدة فى اكسيس MS Access VBA ج1https://youtu.be/mBUP70LnOdk10
6مهارة تقسيم الإسماء دفعة واحدة فى اكسيس MS Access VBA ج2https://youtu.be/_GZzAtDjTe017
7مهارة تقسيم الإسماء دفعة واحدة فى اكسيس MS Access VBA ج3https://youtu.be/v_hXCFXO0gc17
8مهارة تقسيم الإسماء دفعة واحدة فى اكسيس MS Access VBA ج4https://youtu.be/kD-bFyi3dVA10
9مهارة تقسيم الإسماء دفعة واحدة فى اكسيس MS Access VBA ج5https://youtu.be/EPwSiIxkjvw9
10شرح بعض أوامر Docmd ج1https://youtu.be/UTL2MZc-u6Y13
11شرح بعض أوامر Docmd ج3https://youtu.be/SqwFND-10rI10
12شرح الامر DoCmd OutputTo لتصدير الملفات من اكسيس الى صيغ مختلفة acFormatPDFhttps://youtu.be/zRHXr4UbZ-010
13شرح بعض أوامر Docmd DoCmd RunSQLhttps://youtu.be/1Gu57sq2wQQ0
14شرح بعض أوامر Docmd جزء اخيرhttps://youtu.be/aypOAX7h4CE0
15كود استعاده اعدادت الاكسس هام جدااااا للمبرمج CurrentProjecthttps://youtu.be/R_xi0JePnBo10
16مهارة التعامل مع CurrentDB لمعرفة محتويات قاعدة البيانات و انشاء وفتح وحذف استعلام ب CurrentDb.CreateQueryDefhttps://youtu.be/k3no0IfZZA012
1000 قائمة ملفات الكورس الاول -- تعلم اكسيس وقواعد بيانات MS Accesshttps://www.youtube.com/playlist?list=PLMmy9Ec9B98wxI2RWVrjjtyV2knTFoR1t0
2000 Programming Access VBA قائمة ملفات الكورس الثانى-- البرمجة فى اكسيس https://www.youtube.com/playlist?list=PLMmy9Ec9B98ymtXXOLw2FeolA904Z-OsH0









\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Private Sub btnContainers_Click()
    Stop
    Dim i As Integer
    Dim j As Integer
    For i = 0 To CurrentDb.Containers.Count - 1
        Debug.Print CurrentDb.Containers(i).NAME
        For j = 0 To CurrentDb.Containers(i).Documents.Count - 1
          Debug.Print "==" & CurrentDb.Containers(i).Documents(j).NAME
        Next j
    Next i
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    Stop
    CurrentDb.CreateQueryDef "xx", "SELECT * FROM COURSE"
    DoCmd.OpenQuery "xx"
    '''''''''''''''''' another
    Dim strsql As String
    strsql = "SELECT * FROM COURSE"

Set qdf = CurrentDb.CreateQueryDef("NewQuery", strsql)
DoCmd.OpenQuery qdf.NAME
    
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    Stop
    Dim tdef As TableDef
    Set tdef = CurrentDb.CreateTableDef("tbl1Books")
    tdef.Fields.Append tdef.CreateField("ID", dbLong)
    tdef.Fields.Append tdef.CreateField("BookName", dbText, 100)
    tdef.Fields.Append tdef.CreateField("Author", dbText, 100)
    tdef.Fields("ID").Attributes = dbAutoIncrField
    CurrentDb.TableDefs.Append tdef
    CurrentDb.TableDefs.Refresh
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    Stop
    CurrentDb.QueryDefs.Delete "xx"
    Dim qdef As New QueryDef
    qdef.SQL = "SELECT *  FROM COURSE"
    qdef.NAME = "COURSE1"
    CurrentDb.QueryDefs.Append qdef
    DoCmd.OpenQuery "COURSE1"
    CurrentDb.QueryDefs.Delete "COURSE1"
    CurrentDb.QueryDefs.Delete "NewQuery"
    
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Private Sub btnRecordsAffected_Click()
    Stop
    Dim db As Database
    Set db = CurrentDb
    db.Execute "UPDATE tbl1Employees SET tbl1Employees.testfield = 'Added'"
   ' db.Execute "UPDATE tbl1Employees SET tbl1Employees.testfield = 'Edited'"
    Debug.Print "Affected Records: " & db.RecordsAffected
End Sub
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

strSQL="SELECT * FROM tblT WHERE ID =" & Forms!Form1!txtID

Set qdf=CurrentDB.CreateQueryDef("NewQuery",strSQL)
DoCmd.OpenQuery qdf.Name


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Dim strSql As String 'as already in example
Dim qdf As QueryDef 'as already in example

strSql = "SELECT * FROM tblT WHERE ID =" & Forms!Form1!txtID 'as already in example

On Error Resume Next
'Delete the query if it already exists
DoCmd.DeleteObject acQuery, "NewQuery"

Set qdf = CurrentDb.CreateQueryDef("NewQuery", strSql) 'as already in example
DoCmd.OpenQuery qdf.Name 'as already in example

'release memory
qdf.Close 'i changed qdef to qdf here and below
Set qdf = Nothing

ليست هناك تعليقات
إرسال تعليق

إرسال تعليق

الاسمبريد إلكترونيرسالة