/* */

Tuesday, December 13, 2011

{Disarmed} [belajar-access] Re: no registrasi

 

Coba kl functionnya seperti ini:

Public Function GetNo(pTGL As Date) As String
    Dim strDummy As String
    strDummy = Nz(DMax("right([no],4)", "Tinput", "left([no],8)='" & Format(pTGL, "ddmmyyyy") & "'"))
    If strDummy = "" Then
        GetNo = Format(pTGL, "dd") & Format(pTGL, "mm") & Format(pTGL, "yyyy") & "0001"
    Else
        GetNo = Format(pTGL, "dd") & Format(pTGL, "mm") & Format(pTGL, "yyyy") & Format(Val(strDummy) + 1, "0000")
    End If
End Function

semoga bermanfaat.

Salam hangat,
Coyev.

__._,_.___
Recent Activity:
SPAM IS PROHIBITED
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

if(window.yzq_d==null)window.yzq_d=new Object(); window.yzq_d['aX_FAEoGYm0-']='&U=13cloqr3q%2fN%3daX_FAEoGYm0-%2fC%3d493064.14543979.14562481.13298430%2fD%3dMKP1%2fB%3d6060255%2fV%3d1';
.
Web Bug from http://geo.yahoo.com/serv?s=97359714/grpId=3331658/grpspId=1705115370/msgId=33451/stime=1326160918/nc1=3848627/nc2=3848640/nc3=5522129
__,_._,___

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

No comments:

Post a Comment