กระทู้เก่าบอร์ด อ.Yeadram
        
           1,420   2		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        criteria between เขียนยังไงครับ      
    
      มี text box 2 text box ใช้เก็บข้อมูลวันที่เริ่มและสิ้นสุด คือ  tx_datestart และ 
tx_dateend ต้องการใช้คำสั่ง dcount ฟิลด์ ID จากตาราง main ในช่วงวันที่ดังกล่าว
เชียนยังไงครับ ช่วยแก้ไขด้วยครับ ( ผมลอง dcount("ID","[main]","date between #tx_datestart# and #tx_dateend#")
    
  tx_dateend ต้องการใช้คำสั่ง dcount ฟิลด์ ID จากตาราง main ในช่วงวันที่ดังกล่าว
เชียนยังไงครับ ช่วยแก้ไขด้วยครับ ( ผมลอง dcount("ID","[main]","date between #tx_datestart# and #tx_dateend#")
				2 Reply in this Topic. Dispaly 1  pages and you are on page number 1 
				
        
    1 @R11796    
        
  
      ก็น่าจะถูกแล้วนะครับ ฟิลด์ชื่อ date ควรเปลี่ยนเป็น [date] ดูครับ    
    
  
        
    2 @R11797    
        
    
      dcount("ID","[main]","date between #" & format(tx_datestart,"yyyy/mm/dd") & "# and #" & format(tx_dateend,"yyyy/mm/dd") & "#")    
    
  
      Time: 0.0608s
    
      
		