Mas, seharusnya pake StrToDate untuk tanggal "15/05/2007"
-----Original Message----- From: "Frangky" <[EMAIL PROTECTED]> To: <[email protected]> Date: Sat, 10 May 2008 10:05:57 +0800 Subject: [***Probably SPAM***] [Programmer-VB] Tanya tentang Tanggal > Pakar VB yang terhormat! > > Saya membuat kode seperti dibawah ini: > > If Date >= "15/05/2007" Then > MsgBox "diatas tanggal 15 Mei 2007" > Else > MsgBox "Dibawah tanggal 15 Mei 2007" > End If > > > Yang mau saya tanyakan: > > Kenapa kalau saya ubah tanggal di komputer menjadi tanggal 20 Mei > 2002,lalu saya jalankan program muncul MsgBox "diatas tanggal 15 Mei > 2007". Harusnya msgbox yang muncul adalah: MsgBox "Dibawah tanggal 15 > Mei 2007". Begitupun kalau saya ubah tanggal di komputer menjadi > Tanggal 10 Mei 2008, Muncul msgbox "Dibawah tanggal 15 Mei 2007". > Harusnya muncul msgbox "diatas tanggal 15 Mei 2007" PRIVATE & CONFIDENTIAL This email message and attachments contain information that is confidential to IALF. If you are not the intended recipient you are not permitted to use, copy or distribute the message and attachments in any manner. If you have received this email in error, please inform the sender by return email immediately and delete all copies of the message and its attachments. IALF is not responsible for any unauthorised changes made to this email or its attachments. This notice should not be removed.
