Results 1 to 5 of 5
  1. #1
    2410Davie is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2016
    Posts
    14

    Showing a Value on a Modal

    Hi everyone, I am getting on well with my new database and have built the login Modal which all works and now I have a Menu Modal that then opens my Properties form on a Modal but none of the values in the table show in the text boxes? I have the control source selected as the table value to show but nothing shows?

    Davie

  2. #2
    2410Davie is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2016
    Posts
    14
    Sorry i mean when i click the button on the menu Modal it opens a PopUp form for Properties but no values show.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Would need to see your dB. Care to post it?

  4. #4
    2410Davie is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2016
    Posts
    14
    is there not a simple way of showing a value from a table in a text box on a Modal/Popup?

    I have the standard in control source = =[Properties]![Hook Number]

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You cannot refer directly to a field in a table. (=[Properties]![Hook Number])

    - You can "Pull" a value from one form to another (=Forms!FormName.ControlName)
    - You can "Push" a value from one form to another
    - You can use "OpenArgs" with code to get a value from one form to another
    - You can write a UDF to get a value from a table.
    - You could use the "DLookup()" function


    FYI, "Properties" is a reserved word in Access and shouldn't be used as object names.

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

Similar Threads

  1. Minimizing Modal forms
    By Lukael in forum Programming
    Replies: 4
    Last Post: 11-11-2015, 01:14 PM
  2. Using a modal form
    By crowegreg in forum Forms
    Replies: 7
    Last Post: 10-21-2013, 01:29 PM
  3. Modal Form Operator
    By mm07nkb in forum Forms
    Replies: 5
    Last Post: 09-01-2011, 10:53 AM
  4. modal property not working
    By rivereridanus in forum Forms
    Replies: 3
    Last Post: 07-06-2011, 02:54 PM
  5. Replies: 1
    Last Post: 03-29-2011, 11:05 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