กระทู้เก่าบอร์ด อ.Yeadram
        
           1,374   2		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        ให้ textbox เก็บ วันที่ล่าสุด      
    
      มีตารางชื่อ sell_product ขายสินค้า
ประกอบด้วยฟิลด์ id_sell_product(Autonumber), id_customer(comboBox), id_employee(comboBox), date_sell(วันที่ขาย)
มีตารางชื่อ customer ตารางลูกค้า
ประกอบด้วย id_customer(Autonumber), name_customer(text), telephone(text), date_member(date)วันที่เป็นสมาชิก, record(date)วันที่ซื้อสินค้าล่าสุด
ต้องการให้ date_sell(วันที่ขาย) ในตาราง sell_product ซึ่งเป็นวันที่ขายสินค้าล่าสุด บันทึกลงใน ฟิลด์ record(date)วันที่ซื้อสินค้าล่าสุด
โดยได้ทำการ เขียนใน Property ตรง control source ว่า =Form![sell_product subform].Form!date_sell ในหน้า Form sell แต่ปัญหาก็คือ วันที่ที่ได้ เป็นวันที่แรกของข้อมูลไม่ใช่วันที่สุดท้ายของข้อมูล
    
  ประกอบด้วยฟิลด์ id_sell_product(Autonumber), id_customer(comboBox), id_employee(comboBox), date_sell(วันที่ขาย)
มีตารางชื่อ customer ตารางลูกค้า
ประกอบด้วย id_customer(Autonumber), name_customer(text), telephone(text), date_member(date)วันที่เป็นสมาชิก, record(date)วันที่ซื้อสินค้าล่าสุด
ต้องการให้ date_sell(วันที่ขาย) ในตาราง sell_product ซึ่งเป็นวันที่ขายสินค้าล่าสุด บันทึกลงใน ฟิลด์ record(date)วันที่ซื้อสินค้าล่าสุด
โดยได้ทำการ เขียนใน Property ตรง control source ว่า =Form![sell_product subform].Form!date_sell ในหน้า Form sell แต่ปัญหาก็คือ วันที่ที่ได้ เป็นวันที่แรกของข้อมูลไม่ใช่วันที่สุดท้ายของข้อมูล
				2 Reply in this Topic. Dispaly 1  pages and you are on page number 1 
				
        
    1 @R04104    
        
  
      =dlast("date_sell","sell_product","[id_customer] = " & [id_customer])
    
  
        
    2 @R04110    
        
    
      ขอบคุณมากเลยครับ ได้แล้วครับคุณyeadram    
    
  
      Time: 0.0602s
    
      
		