تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تعديل مثال العملاء الغير مسددين القسط
#1
السلام عليكم

مرفق مثال ارجو التعديل او شرح كيف  يتم هذا الاستعلام

اريد عرض العملاء الغير مسددين لشهر او تاريخ ما

مرفق مثال ارجو التعديل


الملفات المرفقة
.zip   test1.zip (الحجم : 94.37 ك ب / التحميلات : 60)
الرد }}}
تم الشكر بواسطة:
#2
وعليكم السلام ،،

بالنسبة للغير مسددين كالتالي :

كود :
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers
               where  tbl_customers.cust_code not in (
               select cust_code from tbl_paymint)", con)
       con.Open()
       tb_table2.Load(cmd.ExecuteReader)
           dvg1.DataSource = tb_table2
           con.Close()

وللمسددين احذف not من جملة الاستعلام .

هذا لجميع السجلات ،، ضيف عليهم شرط بالتاريخ المحدد .
يا رحمن الدنيا والآخرة ورحيمهما
الرد }}}
تم الشكر بواسطة: new_programer
#3
شكرا استاذ  حريف برمجة

الكود شغال تمام لكن عند وضع شرط لم يعمل يظهر خطاء

دة الكود بعد التعديل  عفوا خبرتى قليلة

كود :
  tb_table2.Clear()
       Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where  tbl_customers.cust_code not in ( select cust_code from tbl_paymint)where tbl_paymint.mmonth= @mmonth", con)
       cmd.Parameters.Add("@mmonth", OleDbType.VarChar).Value = txt_month.Text
       con.Open()
      tb_table2.Load(cmd.ExecuteReader)
          dvg1.DataSource = tb_table2
          con.Close()

Syntax error (missing operator) in query expression 'tbl_customers.cust_code not in ( select cust_code from tbl_paymint)where tbl_paymint.mmonth= @mmonth'.

دة الخطاء
الرد }}}
تم الشكر بواسطة:
#4
كود :
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where  tbl_customers.cust_code not in ( select cust_code from tbl_paymint where tbl_paymint.mmonth= @mmonth)", con)
الرد }}}
تم الشكر بواسطة: new_programer
#5
(27-12-18, 04:11 AM)asemshahen5 كتب :
كود :
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where  tbl_customers.cust_code not in ( select cust_code from tbl_paymint where tbl_paymint.mmonth= @mmonth)", con)


شكرا جدا جارة التجربة
الرد }}}
تم الشكر بواسطة: asemshahen5
#6
(27-12-18, 04:11 AM)asemshahen5 كتب :
كود :
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where  tbl_customers.cust_code not in ( select cust_code from tbl_paymint where tbl_paymint.mmonth= @mmonth)", con)

شكرا جدا استاذى  asemshahen5

بارك الله فيك وجعلة فى ميزان حساناتك

الكود شغال تمام
الرد }}}
تم الشكر بواسطة: asemshahen5
#7
(27-12-18, 09:22 PM)new_programer كتب :
(27-12-18, 04:11 AM)asemshahen5 كتب :
كود :
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where  tbl_customers.cust_code not in ( select cust_code from tbl_paymint where tbl_paymint.mmonth= @mmonth)", con)

شكرا جدا استاذى  asemshahen5

بارك الله فيك وجعلة فى ميزان حساناتك

الكود شغال تمام

الكود دا هيشغل معاك اول شهر لكن مع الشهر التانى مش هيظهر لان البحث هيشوف بالعموم ان كود العميل موجود ولا لاء بغض النظر عن الشهر 


انا مازلت ابحث فى الموضوع ولم اجد حل 
راجع موضوعى دا
http://vb4arb.com/vb/showthread.php?tid=26482
الرد }}}
تم الشكر بواسطة: new_programer
#8
اخي احمد
هل تريد مساعده فى الكود
وضح ايه المطلوب وسوف ارسل لك الكود
لو تريد عرض العملاء الغير مسددين لشهر
الكود يعمل بنجاح
لو عايز مساعد قولى المطلوب وان شاء الله اساعدك
الرد }}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  اريد اضافة حفظ PDF فى مسار على الهارد- مثال الاستاذ عبدالله الدوسري new_programer 0 43 13-04-24, 12:59 PM
آخر رد: new_programer
  تعديل على فاتورة مبيعات خالد كامل1 4 122 26-03-24, 10:49 PM
آخر رد: خالد كامل1
  تعديل كود ارسال صورة الى الواتس new_programer 2 167 21-03-24, 10:07 PM
آخر رد: new_programer
  تعديل صب المجموع الكلي والمعدل والتقدير مصمم هاوي 3 172 19-03-24, 01:33 AM
آخر رد: مصمم هاوي
  تعديل طول حقل معين في جميع جداول القاعدة atefkhalf2004 1 106 09-03-24, 03:17 AM
آخر رد: atefkhalf2004
  تعديل بيانات عمود DataGridView دفعة واحدة مصمم هاوي 2 194 05-03-24, 08:27 PM
آخر رد: مصمم هاوي
  ممكن تعديل في كود التفقيط للارقام melad2002 2 365 01-01-24, 08:47 PM
آخر رد: melad2002
  [VB.NET] اريد تعديل في الكود عند طباعة DGV abu_hisham7 1 439 03-12-23, 02:40 AM
آخر رد: abu_hisham7
  تنصيب البرنامج على اجهزة العملاء um_noor20 2 329 30-10-23, 04:17 PM
آخر رد: Taha Okla
  [VB.NET] محتاج مساعدة تعديل على كود ZEEN4ZEEN 4 432 08-10-23, 09:11 PM
آخر رد: ZEEN4ZEEN

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم