Group Blog
 
 
กันยายน 2553
 1234
567891011
12131415161718
19202122232425
2627282930 
 
24 กันยายน 2553
 
All Blogs
 
การเปิดตารางฐานข้อมูลใช้ใน VBA โดยใช้ ADODB.Recordset กับ SQL statement

Dim rsKaizen As ADODB.Recordset
Dim cmdKaizen As ADODB.Command

'Query up open kaizen request
strCmd = "SELECT WO.WRNO, WO.REMARK, WO.WOACTION, WO.WRDATE, WO.ACT_DATE " & vbCrLf & _
"FROM WO "

Set rsKaizen = New ADODB.Recordset
rsKaizen.ActiveConnection = CurrentProject.Connection
rsKaizen.CursorType = adOpenStatic
rsKaizen.LockType = adLockReadOnly
rsKaizen strCmd

rsKaizen.Filter = "WRNO like 'KR*' AND ACT_DATE = '0'"


Create Date : 24 กันยายน 2553
Last Update : 24 กันยายน 2553 10:11:35 น. 0 comments
Counter : 873 Pageviews.

ชื่อ : * blog นี้ comment ได้เฉพาะสมาชิก
Comment :
  *ส่วน comment ไม่สามารถใช้ javascript และ style sheet
 

anchan42
Location :


[ดู Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed

ผู้ติดตามบล็อก : 1 คน [?]




Friends' blogs
[Add anchan42's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.