Results 1 to 5 of 5
  1. #1
    TonyM is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    3

    Coding for users with different screen sizes


    This question relates to an Excel VBA project but is general enough hopefully to apply to Access as well. I need to make the project available to different users who have different computer screen sizes : everything from a tablet to a full size laptop. The project has several forms. I will probably make the project available through One Drive or perhaps DropBox. How can I assure that the forms will adjust to the various screen sizes much like what seems to automatically happen with web pages displayed on different screens? Thanks in advance for any replies.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    If isladogs sees this, he will likely point you to his resizing utility. I looked but could not find it. You could try his contact form there too.

    http://www.mendipdatasystems.co.uk/site-map/4594457984
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,016
    Here's the link @Micron mentioned:

    https://www.access-programmers.co.uk...d.php?t=304090

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Hi
    I've just seen this thread. Many thanks to @Micron and @missinglinq for alerting me.
    Rather than use the AWF link, I suggest you go directly to my three part website article on Automatic Form Resizing (AFR): http://www.mendipdatasystems.co.uk/a...g-1/4594554784.
    The article includes a demo app and all code required to use AFR
    Although the code involved is fairly complex, as a developer you just need to import a module modResizeForm and add one line of code ResizeForm Me to the Form_Load event of each form you want to be resized. You can use it without understanding it fully. For the end user, all resize/reposition changes occur automatically.

    The only other real issue to consider is that the 'base resolution' used for form design should be no higher than the lowest resolution of your end users.
    That is because the code works very well when 'scaling up' but less well if you try to 'scale down'

    EDIT:
    1. As a side note, when you referred to making the project available via OneDrive/Dropbox, I hope you were just talking about distribution methods.
    Whilst that is a perfectly good approach for distribution, neither of those are suitable for users to run Access databases from.
    Trying to do so risks database corruption whenever there is a network interruption ...which WILL happen.

    2. Re-reading your post. you started by mentioning Excel before moving on to Access.
    My code is for Access. Whilst it will probably work in Excel, I've never tried it,
    In any case, Excel has a built-in zoom capability which makes AFR fairly superfluous I think
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    TonyM is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    3
    Quote Originally Posted by Missinglinq View Post
    Here's the link @Micron mentioned:

    https://www.access-programmers.co.uk...d.php?t=304090

    Linq ;0)>

    Thank you. Will check it out.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Find Users screen resolution in twips
    By jsunnb in forum Programming
    Replies: 10
    Last Post: 03-20-2024, 05:44 PM
  2. Best screen resultion for most common screen sizes
    By sjs94704 in forum Database Design
    Replies: 3
    Last Post: 05-26-2015, 06:12 AM
  3. Lost Help screen for VBA coding
    By dmgg in forum Programming
    Replies: 4
    Last Post: 12-31-2014, 02:50 PM
  4. Login screen coding
    By thinkkwise in forum Access
    Replies: 1
    Last Post: 08-05-2013, 05:08 PM
  5. Different Screen sizes
    By KevinH in forum Access
    Replies: 0
    Last Post: 07-23-2009, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums