NextRecordBtn setFocus
กระทู้เก่าบอร์ด อ.สุภาพ ไชยา

 241   1
URL.หัวข้อ / URL
NextRecordBtn setFocus

ถามไว้ที่ 
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=32555 
 
I am having a problem with a form I created that I'm sure has a simple solution. I  
put a command button in my form to insert a new record or go to the next record  
in my DB. Unfortunately, when the blank record appears the focus stays on  
the "next" button and I want it to go to the first tab stop in the next record of the  
form.  
 
I inserted the following code, but now I am getting a compile time error:  
 
DoCmd.GoToRecord , , acNext  
Forms!frmPtDenials!ACCT#.SetFocus  
 
Thanks for any help you can give. 
 
ได้สร้างปุ่มสำหรับวิ่งไปยังข้อมูลใหม่หรือไปยังข้อมูลถัดไป แต่ถ้าข้อมูลไม่มี มันจะ Set Focus ไว้ที่ปุ่มนี้อยู่ จะให้เคอร์เซอร์ไว้ไปยัง Text Box แรกที่ได้ตั้งค่า Tab Stap ไว้ได้อย่างไร เขาลองโค้ดที่ให้มาแล้วมัน Error 
 
วิธีแก้ 
DoCmd.GoToRecord , , acNext  
DoCmd.GoToRecord "[ACCT#]"
 

1 Reply in this Topic. Dispaly 1 pages and you are on page number 1

1 @R06529
   
@ ประกาศใช้งานเว็บบอร์ดใหม่ => บอร์ดเรียนรู้ Access สำหรับคนไทย
แล้วจะใส่ลิ้งอ้างอิงมาที่โพสต์เก่านี้หรือไม่ก็ตามสะดวกครับ
Time: 0.1231s