Results 1 to 6 of 6
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Form properties

    I am building a form with the following properties:



    Name
    BackColor
    Caption
    Height
    ScaleMode
    Width
    The VBA code was originally written in an early version of MS Access. I am using MS Access 2010. These are all form properties and I have a couple of questions.

    Are all of these properties in the MS Access 2010 version?

    When I put in Width a 8250 it responds that number is too large; likewise when I put in Height at 6015. What is wrong?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Scalemode is not and never has been a form property (it is a property for certain report controls). Nor for that matter is backcolor or height. These relate to a form section (header/footer/detail), not the form.

    how are you putting in a width? in properties you use cm or inches depending on your setting. in vba you use twips (1440 twips=1 inch)

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    The link for the program is here:

    http://www.informit.com/articles/art...30837&seqNum=6

    That should answer the questions. I just started on and took it as form properties.
    It sure looks that way. The title says:

    "set the form's properties to the values listed here:"

    I understand that height and width can be in cm or inches, but twips?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    you link is for vb, not vba

    this will tell you all you need to know about twips

    https://support.microsoft.com/en-us/...tch--and-twips

  5. #5
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I did not know that there was that much of a difference between VBA and VB. I mean they are both Microsoft products.

    This says for properties, that is unmistakable for MS Access VBA. Is it not?

    Respectfully,

    Lou Reed

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    why to you think that? The title of the link is clearly

    Programming Card Games with Visual Basic

    VB and VBA are similar, but not the same. Often you can use code snippets from one in the other or at least translate them to work in a different environment. VB uses (or can use) winforms (not access forms) and is usually developed in visual studio.

    The fact they are both Microsoft products is immaterial. Ford makes cars, van and trucks - would you expect their maintenance to be the same?

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

Similar Threads

  1. Replies: 11
    Last Post: 07-10-2016, 10:25 PM
  2. Replies: 6
    Last Post: 12-03-2013, 02:59 AM
  3. Default form properties
    By LukeJ Innov in forum Forms
    Replies: 3
    Last Post: 05-08-2013, 05:58 AM
  4. Form Properties
    By Desstro in forum Access
    Replies: 3
    Last Post: 04-10-2011, 05:54 PM
  5. Form Properties
    By mwabbe in forum Forms
    Replies: 3
    Last Post: 09-23-2010, 10:14 AM

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