terimakasih mas Aksan dan mas Lukito atas respon anda yang luar biasa... sekarang sudah bisa dan sesuai dengan yg saya harapkan, saya tidak menambahkan "Ship" lagi karena sudah pake parameter 0 pada input mask-nya. ilmu ini saya dapatkan dari mas aksan juga.
Regards CW ----- Original Message ----- From: "Aksan Kurdin" <[email protected]> To: [email protected] Date: 21 Juni 2010 04:29 Subject: Re: [belajar-access] Re: Nambah angka otomatis [1 Attachment] > > [Attachment(s) from Aksan Kurdin included below] > > Anda benar untuk penggunaan NZ, tetapi thread awal menyebutkan, control > textbox menggunakan mask : "Ship-"0000;0 > Parameter 0 pada input mask artinya literal "Ship" ikut tersimpan dalam > proses input. Kita tinggal berikan urutan terakhirnya. > > aksan kurdin > > On 6/20/2010 10:22 PM, lukito504 wrote: > > Maaf suhu, > nambahin dikit > > strShipNum = "Ship-" & Format(CInt(Right(Nz(DMax("Shipment_No", > "TblShipment"), "Ship-0000"), 4)) + 1, "0000") > > Ditambah string "Ship-" biar lengkap...kalo nggak cuma 0001,0002 dst yang > tersimpan, kecuali emang tujuannya begitu. > > Ditambah Nz seandainya table masih kosong return value Null di-handle juga. > > Thanks. > LH > > > > ------------------------------------ SPAM IS PROHIBITEDYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/belajar-access/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/belajar-access/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

