กระทู้เก่าบอร์ด อ.Yeadram
        
           5,852   22		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        dlookup ตัวเลข      
    
      รบกวนสอบถาม อ.yeadram และผู้รู้ทุกท่านครับ
ผมใช้ คำสั่ง dlookup ฟิล์ดที่เป็น Number แต่ค่าที่ได้กลับกลายเป็น
string แทน ทำไง ถึงจะได้เป็นค่าตัวเลขเหมือนเดิม หรือ มีฟังค์ชั่นอื่น
อีกหรือไม่ครับ
ขอบคุณมากครับ
    
  ผมใช้ คำสั่ง dlookup ฟิล์ดที่เป็น Number แต่ค่าที่ได้กลับกลายเป็น
string แทน ทำไง ถึงจะได้เป็นค่าตัวเลขเหมือนเดิม หรือ มีฟังค์ชั่นอื่น
อีกหรือไม่ครับ
ขอบคุณมากครับ
				22 Reply in this Topic. Dispaly 2  pages and you are on page number 2 
				
        
    22 @R13879    
        
      
	  
      
    
      แก้ Cwhere เป็น C where    
    
  
      Time: 0.0828s
    
      
		
select B.name, B.range, B.score, (select A.result from table1 as A where A.level = B.range and A.score = (select max(C.score) from table1 as Cwhere C.level = B.range and C.score <= B.score)) as Qresult from table2 as B
ปล. ผมยังไม่ได้ทดสอบนะว่าจะผิดตรงไหนหรือไม่ แต่น่าจะใช้ได้ครับ