.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

gen id Options · View
pang
Posted: Monday, June 30, 2008 9:42:57 AM
Rank: มือสมัครเล่น
Groups: Member

Joined: 6/19/2008
Posts: 12
อาจารย์ พี่ๆค่ะ
 
อยาก ทำปุ่ม gen ขึ้นมา แบบว่า
 
CODE+YYMMDD+NUMBER
 
CODE=ฟิลที่ดึงจากฐานข้อมูล  YYMMDD =วันที่ปัจจุบัน  NUMBER = ระบบgenขึ้นมา
 ตัวอย่าง
CD1 080525 0001
CD1 080526 0002
CD2 080527 0003
 
CD1 080627 0001           มีเงื่อนไขว่า  ถ้าเดือนเปลี่ยน NUMBER ต้องเริ่มต้นรัน1 ใหม่
CD1 080628 0002
CD1 080701 0001
 
ต้องทำยังไงค่ะ ขอบคุณค่ะช่วยแนะนำหน่อยค่ะ
ball
Posted: Monday, June 30, 2008 11:40:48 AM

Rank: อาจารย์
Groups: Administration

Joined: 12/1/2007
Posts: 473
Location: Bangkok

ไปอ่านวิธีทำได้ที่นี่ครับ

CodeToday: Auto-Generate Document ID



Imagination is more Important than Knowledge... /A.Einstein
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by