Skip to main content

AccessTr.neT


Rapor Kayıt Kaynağı Değiştirme Vba

Rapor Kayıt Kaynağı Değiştirme Vba

#29
Harikasınız, çalıştı.
Dim SqlStr, SqlStrRpr As String
' formun kayıt kaynağının ayarlanması
DoCmd.OpenForm "FRADYASYONMYN", acDesign
SqlStr = "SELECT TACALISANKAYDI.*, TRADYASYON" & Me.AclRMynSec & ".* FROM TACALISANKAYDI LEFT JOIN TRADYASYON" & Me.AclRMynSec & " ON TACALISANKAYDI.KIMNO = TRADYASYON" & Me.AclRMynSec & ".KIMNO"
Forms!FRADYASYONMYN.RecordSource = SqlStr
SqlStrRpr = SqlStr & " WHERE (((TACALISANKAYDI.KIMNO)=[Formlar]![FRADYASYONMYN]![mtn_KimNo]))"
DoCmd.Close acForm, "FRADYASYONMYN", acSaveYes
DoCmd.OpenForm "FRADYASYONMYN", , , "TACALISANKAYDI.KIMNO=" & Me.LstKayitSorg
DoCmd.Close acForm, Me.Name
' rapor kayıt kaynağı ayarlama kod bloğu
For x = 1 To 3
DoCmd.OpenReport "RAPRADMYNSYF" & x, acViewDesign
Reports("RAPRADMYNSYF" & x).RecordSource = SqlStrRpr
DoCmd.Close acReport, "RAPRADMYNSYF" & x, acSaveYes
Next x
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
Rapor Kayıt Kaynağı Değiştirme Vba - Yazar: mgunes - 04/06/2020, 10:17
RE: Rapor Kayıt Kaynağı Değiştirme Vba - Yazar: mgunes - 07/06/2020, 01:25
Task