G
Guest
I have a form from the CBOE.
The form is used to give responses by students, but has limited space.
This worked in Acces 2.0 and Access 97, now it is no longer working!
I count the total number of characters on a page. If the count is in
certain ranges then I set the font accordingly.
Current Code
Dim rprt as Report
Set rprt = Me
With rprt
If Me!TextA > 1400 then
.fontsize = 13
End If
If Me!TextA > 2100 then
.fontsize = 12
End If
If Me!TextA > 2800 then
.fontsize = 11
End If
If Me!TextA > 3500 then
.fontsize = 10
End If
If Me!TextA > 4200 then
.fontsize = 9
End If
If Me!TextA > 4900 then
.fontsize = 8
End If
If Me!TextA > 5600 then
.fontsize = 7
End If
If Me!TextA > 6300 then
.fontsize = 6
End If
If Me!TextA > 7200 then
.fontsize = 5
End If
End With
After 10 years this code has stopped working on my Access 2004 and the
Access that came with Vista.
The code worked fine until I went to remove 3 lines of the above script.
The Font Value on the properties of the Text field is 7. I know the
documentation claims the smallest font is 8, but that is incorrect. We even
have a report that prints in Font Size 4.
Does anyone know why the above code will not override the default font?
Thanks in advance
John
The form is used to give responses by students, but has limited space.
This worked in Acces 2.0 and Access 97, now it is no longer working!
I count the total number of characters on a page. If the count is in
certain ranges then I set the font accordingly.
Current Code
Dim rprt as Report
Set rprt = Me
With rprt
If Me!TextA > 1400 then
.fontsize = 13
End If
If Me!TextA > 2100 then
.fontsize = 12
End If
If Me!TextA > 2800 then
.fontsize = 11
End If
If Me!TextA > 3500 then
.fontsize = 10
End If
If Me!TextA > 4200 then
.fontsize = 9
End If
If Me!TextA > 4900 then
.fontsize = 8
End If
If Me!TextA > 5600 then
.fontsize = 7
End If
If Me!TextA > 6300 then
.fontsize = 6
End If
If Me!TextA > 7200 then
.fontsize = 5
End If
End With
After 10 years this code has stopped working on my Access 2004 and the
Access that came with Vista.
The code worked fine until I went to remove 3 lines of the above script.
The Font Value on the properties of the Text field is 7. I know the
documentation claims the smallest font is 8, but that is incorrect. We even
have a report that prints in Font Size 4.
Does anyone know why the above code will not override the default font?
Thanks in advance
John