|
 |
|
การเลื่อกข้อมูลผ่านทาง TextBox ออกรายงาน Crystal Report |
|
 |
|
|
 |
 |
|
ก็แค่เปลี่ยนตรงคำสั่ง Select เท่านั้นเองครับ ถ้าเค้าไม่ได้ใส่อะไรมา ก็ไม่ต้อง Where แต่ถ้าเค้าใส่ค่ามาก็กำหนด Where ไปว่ายังไง
เสร็จแล้วก็กำหนด DataSource ให้กับ Crystalreport
|
 |
 |
 |
 |
Date :
2012-07-25 16:36:37 |
By :
Nameless |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช้ Where และใช้ Else if หากไม่มีการป้อนค่าใดๆ
|
 |
 |
 |
 |
Date :
2012-07-25 18:23:47 |
By :
billkyz5 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พอจะมีตัวอย่างบ้างไหมค่ะ ไม่เห็นภาพค่ะ
|
 |
 |
 |
 |
Date :
2012-07-25 20:49:59 |
By :
aa |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอตัวอย่างที่เห็นภาพหน่อยค่ะ
|
 |
 |
 |
 |
Date :
2012-07-25 20:50:36 |
By :
chim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก็ยังไม่เข้าใจค่ะ ว่า ถ้าเราต้องการแบบ ว่า ถ้าไม่ใส่ข้อมูลเข้ามาใน text box แล้กดปุ่ม แสดงรายงานให้หมายความว่า เลือกข้อมูลจากตารางมาทั้งหมด มี code บ้างไหมค่ะ พอได้เห็นภาพค่ะ
|
 |
 |
 |
 |
Date :
2012-07-26 13:43:18 |
By :
aa |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แยกเป็น 2 query อันนึงทีการส่งค่าเข้าไป อีกอันไม่มี น่าจะง่ายขึ้น
อย่างที่คุณวินบอก ต้องทำเป็น dataset ก่อนครับ
แล้วค่อย gen report ออกมาครับ
|
 |
 |
 |
 |
Date :
2012-07-26 15:02:04 |
By :
mixarstudio |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
นึกไม่ออกค่ะ ไม่มีพื้นฐานด้านนี้เลยคะ ขอ code ตัวอย่าง พอจะมีไหมค่ะ
|
 |
 |
 |
 |
Date :
2012-07-26 16:04:08 |
By :
aa |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใส่เงื่อนไขแล้ว if ส่งตัวแปรไปเลยค่ะ เช่นถ้าไม่กรอก
cusfrom คือ 1
custo คือ 9999999 แคนี้ก็มาทุกคนแล้วค่ะ
|
 |
 |
 |
 |
Date :
2012-07-26 16:12:56 |
By :
bangbang111 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่ยากเลยครับลองไปอ่านเรื่อง else if ดูครับ
|
 |
 |
 |
 |
Date :
2012-07-26 16:44:36 |
By :
billkyz5 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2012-07-26 21:23:30 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|