Skip to main content

AccessTr.neT


formdan tex oluşturma

formdan tex oluşturma

#2
Tarih formatindaki ayraçların "." şeklinde olması için windows tarih-saat ayarlarınızı düzeltmeni gerekiyor. Dosya ismi içindeki tarih için ise butonun tıkladığındaki kodu aşağıdaki ile değiştiriniz..

Private Sub Komut0_Click()
On Error Resume Next
Dim db As Database
Dim rs As Recordset
Dim tbl As String
Set db = CurrentDb
   
    Dim yol As String
    yol = CurrentProject.Path
   
tbl = "koha"
DoCmd.Hourglass True
Open yol & "/" & tbl & "-" & Format(Date, "ddmmyy") & ".txt" For Append As #1
  Set rs = db.OpenRecordset("tbl_personelsorgu", dbOpenDynaset)
Do Until rs.EOF
Print #1, Nz(rs!tc, 0) & "," & Nz(rs!ad, ""); "," & Nz(rs!soyad, ""); "," & Nz(rs!gorevi, "")
  rs.MoveNext
  Loop
Close #1
DoCmd.Hourglass False
 
End Sub

Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
formdan tex oluşturma - Yazar: edacan19 - 12/03/2015, 09:55
Cvp: formdan tex oluşturma - Yazar: SCavusoglu - 12/03/2015, 10:16
Cvp: formdan tex oluşturma - Yazar: edacan19 - 12/03/2015, 10:37
Cvp: formdan tex oluşturma - Yazar: SCavusoglu - 12/03/2015, 11:23
Cvp: formdan tex oluşturma - Yazar: edacan19 - 12/03/2015, 11:33
Cvp: formdan tex oluşturma - Yazar: atoz112 - 12/03/2015, 13:35
Cvp: formdan tex oluşturma - Yazar: edacan19 - 12/03/2015, 14:31