473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Automatically adjust fonts in the zoom box on DoCmd.RunCommand acCmdZoomBox

Hi All,

I am still using Access 2003. Some of the users of the database I creat are quite old. Have difficulty reading small fonts.

I use DoCmd.RunCommand acCmdZoomBox on double click events of text and memo fields for a zoom box to pop up.

My question is how I make the fonts bigger and bolder automatically instead of the standard size 8. The users have to click on the Fonts button and change to their requirements and they are annoyed!

Thanks in advance

Raghu from Melbourne
Feb 28 '13 #1

✓ answered by zmbd

I'm so sorry,
That's what I get for reading and running... I thought you had a custom "zoom"

This works for Access 2010
The major thing is that reference to the utility library or you get an error 2040
Expand|Select|Wrap|Line Numbers
  1. Private Sub z_ctrl_txtbx_filelocation_DblClick(Cancel As Integer)
  2. On Error goto z_error_trap:
  3.     'You must have the: {tools}\{References}: [x]utility
  4.     utility.zoom_iFontSize = 24
  5.     utility.BuilderZoom Application.Screen.ActiveForm.Name, Application.Screen.ActiveControl.Name, _
  6.     Nz(Application.Screen.ActiveControl.value, "")
  7. z_resume_from_error:
  8. exit sub
  9. z_error_trap:
  10. If Err.Number = 2040 Then
  11.         MsgBox "Sorry, the automatic zoom isn't available right now. Please Press [F2] and adjust the font size by hand.", , "Missing Utility Reference"
  12.     Else
  13.         MsgBox "Error Number: " & Err.Number & vbCrLf & "Error Text: " & vbCrLf & Err.Description, vbCritical + vbOKOnly, "Terminal Error"
  14. End Sub
- I have no idea where that library refernence is now that we've moved to Windows 7... I'll have to find the path.

6 6187
zmbd
5,501 Expert Mod 4TB
For each control of interest in the double click you can set
Me.YourControlNameHere.FontSize = 15
On lost focus event set the font size back to 10 or 8 etc...
Feb 28 '13 #2
ADezii
8,834 Expert 8TB
To the best of my knowledge, there is no way to programmatically adjust the Size of the Font within the Zoom Box. This is complicated by the fact that this is a Dialog Box. What you can do, however, is create your own Custom Zoom Box (Form with minimal Controls) which will accomplish what you have requested. You can even capture the SHIFT+F2 Keystrokes that by Default Open the Zoom Box, and Open your Custom Form.
Feb 28 '13 #3
zmbd
5,501 Expert Mod 4TB
I'm so sorry,
That's what I get for reading and running... I thought you had a custom "zoom"

This works for Access 2010
The major thing is that reference to the utility library or you get an error 2040
Expand|Select|Wrap|Line Numbers
  1. Private Sub z_ctrl_txtbx_filelocation_DblClick(Cancel As Integer)
  2. On Error goto z_error_trap:
  3.     'You must have the: {tools}\{References}: [x]utility
  4.     utility.zoom_iFontSize = 24
  5.     utility.BuilderZoom Application.Screen.ActiveForm.Name, Application.Screen.ActiveControl.Name, _
  6.     Nz(Application.Screen.ActiveControl.value, "")
  7. z_resume_from_error:
  8. exit sub
  9. z_error_trap:
  10. If Err.Number = 2040 Then
  11.         MsgBox "Sorry, the automatic zoom isn't available right now. Please Press [F2] and adjust the font size by hand.", , "Missing Utility Reference"
  12.     Else
  13.         MsgBox "Error Number: " & Err.Number & vbCrLf & "Error Text: " & vbCrLf & Err.Description, vbCritical + vbOKOnly, "Terminal Error"
  14. End Sub
- I have no idea where that library refernence is now that we've moved to Windows 7... I'll have to find the path.
Feb 28 '13 #4
Thanks zmbd and ADezii will try and what I can do.
Mar 1 '13 #5
TheSmileyCoder
2,322 Expert Mod 2GB
I once created a form which would popup with a big textbox, in which the font was chosen (and saved) per user. The intention was not exactly old people, but more to be used in meetings where the screen might be hard to see for some. If interested I can try to find for you during teh weekend.
Mar 1 '13 #6
Thanks very much. It would be much appreciated.
Mar 1 '13 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Salad | last post by:
A97. I have a command button to save and exit. I had the code If Me.Dirty Then Docmd.RunCommand acCmdSaveRecord ...more code endif I was getting an error because a value was not getting...
0
by: Mike MacSween | last post by:
The user did this, she said. Changed a value in a drop down list (which will have changed an integer value in a field in the main table which is a FK), and edited some text in a text box. Then...
6
by: Squirrel | last post by:
I have a command button on a subform to delete a record. The only statement in the subroutine is: DoCmd.RunCommand acCmdDeleteRecord The subform's recordsource is "select * from tblVisit order...
2
by: deko | last post by:
I'm trying to expand a popup form and make additional controls available by making the form footer visible and resizing the form. This works: Me.FormFooter.Visible = Me!tglAdvanced.Value...
0
by: MLH | last post by:
Running the following procedure, Access 97 is giving me a 2465 error in line #250. Anyone know why? MySQL is a global var in the app. This is running in frmVehicleChooserForm. Private Sub...
2
by: Coolboy55 | last post by:
Hi, I'm using the Form_Dirty event to run DoCmd.RunCommand acCmdSaveRecord, but it does not appear to be working, although the event does trigger. I want the record on the main form to be saved...
1
Mague
by: Mague | last post by:
Hello, First of all thanks for trying to help. My problem is in vb.net 2008 (it's pritty much the same as 2005) when a vb program is maximized it just makes the background bigger and everything...
5
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
Is there a way to know if this is set to true on the Windows Time Zone tab?
2
by: Wayne | last post by:
I've noticed a behaviour in A2007 that doesn't appear in A2003. The problem is appearing in a native A2007 database and an A2003 database running in A2007. If I press a command button to delete a...
2
iBasho
by: iBasho | last post by:
Hi, I am trying to set up a notification email that would come to my email everytime users click on a command button in a form. I am using the DoCmd.SendObject command without actually sending any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.