bisa gunakan even gotfocus dari control setelah textbox date_inp :
 
Private Sub Setelah_date_inp_GotFocus()
If Trim(date_inp) = "" Or IsNull(date_inp) Then
   pesan = MsgBox("Date INP kosong", vbCritical, "Kosong")
   date_inp.SetFocus
 End If
End Sub


Salam,

Edi Rosadi
http://edirosadie.blogspot.com
http://cilegonmap.blogspot.com
http://cilegonan.wordpress.com
 facebook 
 
 
 
komersilkan blog atau website anda dengan bergabung di sini atau di sini
 




--- On Mon, 24/5/10, Cecep W <[email protected]> wrote:


From: Cecep W <[email protected]>
Subject: [belajar-access] Re: VBA tidak bereaksi
To: [email protected]
Date: Monday, 24 May, 2010, 1:13 PM


dibuka di access 2003 ga bisa mas.

regards


----- Original Message -----
From: "Aksan Kurdin" <[email protected]>
To: [email protected]
Date: 24 Mei 2010 12:15
Subject: VBA tidak bereaksi

>
> tetap saja satu text box.
> kalau sedang dapat focus, gunakan property text, kalau tidak di fokus,
> gunakan property value.
>
> daripada ngasih code di setiap control, lebih baik di cek saat mau di
> save saja (form before update), nanti bisa di cancel saving changes dari
> situ.
>
> dalam contoh, saya kasih trik untuk satu kode mengecek seluruh control
> textbox. gunakan tag 'e' di setiap control textbox yang mau dicek.
>
> aksan kurdin
> - Perlihatkan kutipan teks -
> > ------------------------------------
> >
> > SPAM IS PROHIBITEDYahoo! Groups Links
> >
> >
> >
> >
> >
>
> 
>
>
>
> Database3.zip
> 46K Pindai lalu download
>


------------------------------------

SPAM IS PROHIBITEDYahoo! Groups Links





Kirim email ke