AccessTr.neT
Kod İle Raporda Grup Üst Bilgisi Ayarlama - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: Kod İle Raporda Grup Üst Bilgisi Ayarlama (/konu-kod-ile-raporda-grup-ust-bilgisi-ayarlama.html)

Sayfalar: 1 2


Cvp: Kod İle Raporda Grup Üst Bilgisi Ayarlama - accessman - 08/01/2020

şöyle bir kod buldum

Private Sub Report_Open(Cancel As Integer)
'*** This line here ***
Me.GroupLevel(1).ControlSource = PlanningReportSortField
'*** Yes, that one ***

Me.Caption = PlanningReportTitle
lblReportTitle.Caption = PlanningReportTitle
lblCriteria.Caption = PlanningReportCriteria

'This bit sets the data binding on the first of four text boxes on the detail section - works OK
txtField1.ControlSource = PlanningReportField1
Select Case PlanningReportField1
Case "iipLOCDate": lblField1.Caption = "LOC Date"
Case "iipLastReviewDate": lblField1.Caption = "Last Review"
Case "orgNoSiteEmployees": lblField1.Caption = "No Emps"
End Select



Private Sub Report_Open(Cancel As Integer)
    Me.GroupLevel(0).ControlSource  = Forms!SortForm!txtPromptYou
End Sub


Cvp: Kod İle Raporda Grup Üst Bilgisi Ayarlama - berduş - 08/01/2020

benim dediğim yöntemde rapor açıldıktan sonra çalışıp değişiklik yapması gerekiyordu
çalışmadı mı?
burada rapor açılırken gruplamayı formdan alıyor


Cvp: Kod İle Raporda Grup Üst Bilgisi Ayarlama - berduş - 08/01/2020

isterseniz rapora etiket ekleyip etiket tıklama olayına da ekleyebilirsiniz


Cvp: Kod İle Raporda Grup Üst Bilgisi Ayarlama - accessman - 08/01/2020

teşekkürler 
https://accesstr.net/konu-customize-a-report-s-grouping-and-sorting-at-runtime.html
vaktim olsa ve de yapabilecek bilgim olsa bunu program haline getirmek isterdim