G
Gal Zilberman
Hi
I need to change the height in the detail section for some records, I've
managed to do that but then when the next page comes up the height is still
changes and it refuses to go back to the original size.
For some reason the code stops working once the height has been changed
once.
Any ideas?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
' Vars
Dim Count As Integer
Dim strMeName As String
' Reset Detial Section formating
For Count = 1 To 6 Step 1
strMeName = "Answer_" & Trim(Str(Count)) ' Fields Name
Me(strMeName).Height = 255 ' Normal Height
Next
' Resize font
If Me.Resize Then ' Flag to check if resizing is allowed for this line
For Count = 1 To 6 Step 1
strMeName = "Answer_" & Trim(Str(Count)) ' Fields Name
If Len(Me(strMeName)) > 20 Then
Me(strMeName).Height = 510 ' Double Height
End If
Next
End If
End Sub
thanks
Gal
I need to change the height in the detail section for some records, I've
managed to do that but then when the next page comes up the height is still
changes and it refuses to go back to the original size.
For some reason the code stops working once the height has been changed
once.
Any ideas?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
' Vars
Dim Count As Integer
Dim strMeName As String
' Reset Detial Section formating
For Count = 1 To 6 Step 1
strMeName = "Answer_" & Trim(Str(Count)) ' Fields Name
Me(strMeName).Height = 255 ' Normal Height
Next
' Resize font
If Me.Resize Then ' Flag to check if resizing is allowed for this line
For Count = 1 To 6 Step 1
strMeName = "Answer_" & Trim(Str(Count)) ' Fields Name
If Len(Me(strMeName)) > 20 Then
Me(strMeName).Height = 510 ' Double Height
End If
Next
End If
End Sub
thanks
Gal