accesten veri alırken tarih formatı sorunu?

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Katılım
7 Nisan 2007
Mesajlar
124
Excel Vers. ve Dili
office 2003
arkadaşlar
Kod:
 tarihbasla = Sheets("datalar").Range("a2")
 tarihbitir = now()
Set adoCN = CreateObject("ADODB.Connection")
    adoCN.Provider = "Microsoft.Jet.OLEDB.4.0"
    adoCN.ConnectionString = DatabasePath
    adoCN.Open
    NoA = Cells(65536, 1).End(xlUp).Row
    Set RS = CreateObject("ADODB.recordset")
        strSQL = "SELECT * FROM [tablo] " & _
    "WHERE    durum like 2 and tarih>=" & tarihbasla & " AND tarih<=" & tarihbitir & " order by tarih"
    RS.Open strSQL, adoCN, 1, 3
 RS.movefirst
       For i = 2 To RS.RecordCount
           Sheets("sayfa1").Cells(i, 1) = RS("tarih")
RS.MoveNext
        Next
 RS.Close
    adoCN.Close
    Set RS = Nothing
yukarıdaki kodlar ile verilerimi excele almak istiyorum ancak bir sorun var.
accesste bulunan tarih kolonundaki tarihler normal tarih ile yazılmamış.

39398
39396
38931
39753
39753
39753
39753
39753
39756
39762
39763
39763

şu şekilde veriler var.
bunu nasıl tarih formatına dönüştürerek alabilirim.
not:access veritabanında oynama yapamıyorum.
 

Mahmut Kök

Özel Üye
Katılım
14 Temmuz 2006
Mesajlar
878
Excel Vers. ve Dili
Excel 2007 - Türkçe
Verileri hiç mi alamıyorsunuz yoksa alıyorsunuz da tarih formatında mı göremiyorsunuz?
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst