/* */

Friday, January 14, 2011

[belajar-access] Re: MS Acess dengan Database Mysql ??? [1 Attachment]

[Attachment(s) from hari yanto included below]

Format date MySql memang berbeda dengan MsAccess. Format MySql: tahun-bulan-tgl (tanda - harus diikutkan). Jadi harus disesuaikan dulu (khusus untuk hari ini bisa menggunakan CURRENT_TIMESTAMP). Contohnya:
 
Dim tgb As Variant
 
tgb = Format(rst.Fields("tglgabung"), "YYYY") _
            & "-" & Format(rst.Fields("tglgabung"), "MM") _
            & "-" & Format(rst.Fields("tglgabung"), "DD") 
 
Setelah itu baru diinjeksikan.
 
Semoga bermanfaat. Dan memberi semangat.
 
(terlampir sudah saya coba perbaiki)...


Attachment(s) from hari yanto

1 of 1 File(s)


__._,_.___


SPAM IS PROHIBITED



Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No comments:

Post a Comment