[FORM] öğrenci harçlık dağıtım çizelgesi
#1
Ekde vermiş olduğum harçlık programını access de nasıl yapabilirim.


Eklenti Dosyaları
.rar   2017 OCAK.rar (Boyut: 96,9 KB / İndirilme: 197)



  Alıntı
Bu mesajı beğenenler:
#2
(01-01-2017, 16:05)sefersanli demiş ki: Ekde vermiş olduğum harçlık programını access de nasıl yapabilirim.
Excelden Veri Alma konusunda ki VT raporlama yontemini gosterilmistir.



  Alıntı
Bu mesajı beğenenler:
#3
Private Sub SilAl_Click()
Dim Cvp As Variant, SQLa As String, SrgYap As QueryDef, Frm As String
Frm = Me.Name
If Len(Dir(Me.strPath, vbNormal)) = 0 Then Cvp = MsgBox("Excel Dosyasi yok.", vbCritical + vbYesNo, "EXCEL DOSYASI"): Exit Sub
Cvp = MsgBox("Tum kayitlar SILINECEKTIR. Kabul mu?", vbCritical + vbYesNo, "OGRENCI TABLO KAYITLARI")
If Cvp <> 6 Then Exit Sub
Me.Caption = "Ogrenci Tablosu SILINIYOR"
CurrentDb.Execute "Delete ogrenci.* from ogrenci"
Me.Caption = "Ogrenci Excel dosyasini BAGLANIYOR."

DoCmd.TransferSpreadsheet acLink, IIf(SysCmd(acSysCmdAccessVer) = "15.0", acSpreadsheetTypeExcel12, IIf(SysCmd(acSysCmdAccessVer) = "12.0", acSpreadsheetTypeExcel9, acSpreadsheetTypeExcel8)), "ExcelOgrenci", Me.strPath, True

SQLa = "INSERT INTO ogrenci ( Sınıf, Ad_Soyad, Kimlik, Okul ) " & _
"SELECT ExcelOgrenci.Sınıf AS Expr1, ExcelOgrenci.Ad_Soyad AS Expr2, CLng(DCount(@*@,@ExcelOgrenci@,@format(Mid([Sınıf],1,Len([Sınıf])-2),'00') & Ad_Soyad<='@ & Format(Mid([Sınıf],1,Len([Sınıf])-2),@00@) & [Ad_Soyad] & @'@)) AS Kim, " & Me.kurum_adi.Column(0) & " As Okl " & _
" FROM ExcelOgrenci ORDER BY Format(Mid([Sınıf],1,Len([Sınıf])-2),@00@) & [Ad_Soyad]"
Me.Caption = "Gecici sorgusu OLUSTURULUYOR."
Set SrgYap = CurrentDb.CreateQueryDef("Gecici", Replace(SQLa, "@", Chr(34)))
DoCmd.SetWarnings False
Me.Caption = "Ogrenci Tablosuna VERI YUKENIYOR."
DoCmd.OpenQuery "Gecici", acViewNormal, acEdit
DoCmd.SetWarnings True
Me.Caption = "Gecici NESNELER SILINIYOR."
DoCmd.DeleteObject acQuery, "Gecici"
DoCmd.DeleteObject acTable, "ExcelOgrenci"
Me.Caption = "Ogrenci Sayisi Isleniyor."
Me.Toplam_ogrnc_say = DCount("*", "ogrenci")
CurrentDb.Execute "UPDATE ogrenci SET ogrenci.Harclik = " & Replace(Round(CDbl(Me.ogrencı_payı), 2), ",", ".")
Me.Caption = "ISLEM TAMAM"
End Sub
Kodda hata mesajıyla karşılaşıyorum. Her şey normal görünüyor lakin..


Eklenti Dosyaları
.rar   HARCLIK.rar (Boyut: 364,63 KB / İndirilme: 98)
.jpg   hata.jpg (Boyut: 185,38 KB / İndirilme: 87)



  Alıntı
Bu mesajı beğenenler:
#4
Visual Basic
  1. Private Sub strPath_DblClick(Cancel As Integer)
  2. On Error GoTo hata
  3. Dim dialog As FileDialog, SeciliNesne As Variant
  4. Set dialog = Application.FileDialog(msoFileDialogFilePicker)
  5. With dialog
  6. .AllowMultiSelect = False
  7. .Show
  8. For Each SeciliNesne In .SelectedItems
  9. Me.strPath = SeciliNesne
  10. Next SeciliNesne
  11. End With
  12. Me.SilAl.SetFocus
  13. Exit Sub
  14. hata:
  15. Cancel = True
  16. End Sub



Excelden veri al butonu prosedurunu degistirin.



  Alıntı
Bu mesajı beğenenler:
#5
Elinize sağlık. Gerek görülürse paylaşabilirim. Programı



  Alıntı
Bu mesajı beğenenler:


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  öğrenci Takip (sadece Tablo) accessbonkörü 1 280 05-01-2026, 20:40
Son Mesaj: dsezgin
access-sql-9 Vardiya çizelgesi biLecikLi 1 310 27-11-2024, 00:33
Son Mesaj: dsezgin
access-sql-14 Öğrenci Takip Programı genco051 20 23.270 14-10-2024, 11:13
Son Mesaj: mesuty@gmail.com
  [SORGU] Sınıfa Kayıtlı Aktif öğrenci Sayısını Bulmak Dcount Fonksiyonu by_hayalci 2 487 24-08-2023, 08:38
Son Mesaj: by_hayalci
access-sql-5 Personel Devam Çizelgesi by_hayalci 59 44.620 17-06-2022, 09:56
Son Mesaj: onur_can
  öğrenci Burs Da Birkaç Eksikler Var 17mart 4 647 02-09-2021, 16:13
Son Mesaj: 17mart
  [SORGU] öğrenci Burs 17mart 3 493 07-08-2021, 19:28
Son Mesaj: dsezgin
  öğrenci Burs Acemice örneğe Destek 17mart 3 566 30-07-2021, 10:05
Son Mesaj: onur_can

Foruma Git:


Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi