Sam Summers
Registered User.
- Local time
- Today, 00:16
- Joined
- Sep 17, 2001
- Messages
- 939
Hi Everyone,
I have tried numerous things on this with no result.
I have a main report 'SafetyInformationCard' and on it in the detail section i have unbound textboxes - 'Haz1' through to 'Haz7' and also 'PPE1' through to 'PPE8'
I have a sub report called 'HazardListSubreport' and in the detail section of this i have a textbox called 'HazardName' which displays multiple hazards for example "Manual Handling" ; "Slips, trips and Falls" etc.
Now depending what is displayed in the list i want to display in the 'Haz' textboxes either "N" or "Y" and in the 'PPE' ones either "Yes" or "No"
I have tried this code so far and nothing happens:-
Private Sub Report_Current()
If Me![HazardName].Report.HazardListSubreport = "Manual Handling" Then
' If Reports![SafetyInformationCard].Report.[HazardListSubreport].HazardName = "Manual Handling" Then
' If Me!HazardListSubreport.Report!HazardName.Text = "Manual Handling" Then
' If Reports!SafetyInformationCard!HazardListSubreport.Report!HazardName.Text = "Manual Handling" Then
' If Me.Report!HazardListSubreport.Report!HazardName = "Manual Handling" Then
Me![SafetyInformationCard].Report!Haz1.Text = "N"
Me![SafetyInformationCard].Report!Haz2 = "N"
Me![SafetyInformationCard].Report!Haz3 = "N"
Me![SafetyInformationCard].Report!Haz4 = "N"
Me![SafetyInformationCard].Report!Haz5 = "N"
Me![SafetyInformationCard].Report!Haz6 = "N"
Me![SafetyInformationCard].Report!Haz7 = "N"
Me![SafetyInformationCard].Report!PPE1 = "Yes"
Me![SafetyInformationCard].Report!PPE2 = "Yes"
Me![SafetyInformationCard].Report!PPE3 = "Yes"
Me![SafetyInformationCard].Report!PPE4 = "No"
Me![SafetyInformationCard].Report!PPE5 = "No"
Me![SafetyInformationCard].Report!PPE6 = "No"
Me![SafetyInformationCard].Report!PPE7 = "Yes"
Me![SafetyInformationCard].Report!PPE8 = "Yes"
End If
End Sub
-----------------------------------------------------------------------------------------------------------------------------------
I also tried this in
I have tried numerous things on this with no result.
I have a main report 'SafetyInformationCard' and on it in the detail section i have unbound textboxes - 'Haz1' through to 'Haz7' and also 'PPE1' through to 'PPE8'
I have a sub report called 'HazardListSubreport' and in the detail section of this i have a textbox called 'HazardName' which displays multiple hazards for example "Manual Handling" ; "Slips, trips and Falls" etc.
Now depending what is displayed in the list i want to display in the 'Haz' textboxes either "N" or "Y" and in the 'PPE' ones either "Yes" or "No"
I have tried this code so far and nothing happens:-
Private Sub Report_Current()
If Me![HazardName].Report.HazardListSubreport = "Manual Handling" Then
' If Reports![SafetyInformationCard].Report.[HazardListSubreport].HazardName = "Manual Handling" Then
' If Me!HazardListSubreport.Report!HazardName.Text = "Manual Handling" Then
' If Reports!SafetyInformationCard!HazardListSubreport.Report!HazardName.Text = "Manual Handling" Then
' If Me.Report!HazardListSubreport.Report!HazardName = "Manual Handling" Then
Me![SafetyInformationCard].Report!Haz1.Text = "N"
Me![SafetyInformationCard].Report!Haz2 = "N"
Me![SafetyInformationCard].Report!Haz3 = "N"
Me![SafetyInformationCard].Report!Haz4 = "N"
Me![SafetyInformationCard].Report!Haz5 = "N"
Me![SafetyInformationCard].Report!Haz6 = "N"
Me![SafetyInformationCard].Report!Haz7 = "N"
Me![SafetyInformationCard].Report!PPE1 = "Yes"
Me![SafetyInformationCard].Report!PPE2 = "Yes"
Me![SafetyInformationCard].Report!PPE3 = "Yes"
Me![SafetyInformationCard].Report!PPE4 = "No"
Me![SafetyInformationCard].Report!PPE5 = "No"
Me![SafetyInformationCard].Report!PPE6 = "No"
Me![SafetyInformationCard].Report!PPE7 = "Yes"
Me![SafetyInformationCard].Report!PPE8 = "Yes"
End If
End Sub
-----------------------------------------------------------------------------------------------------------------------------------
I also tried this in