Results 1 to 6 of 6
  1. #1
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68

    Displaying a Field Value From Another Form

    Hi

    I am trying to display a field value from a different form but keep getting a name error?

    Essentially, I have the original value in SubformSOFA_DATA_ENTRY form, in a field entitled U_Vol_Inc, but I want to display that value in another field in another form.

    I created the text box in the new form and put the following argument in..

    =[Forms]![SubformSOFA_DATA_ENTRY]![U_Vol_Inc]

    As the original form where the value is held is a subform, do I need to increase the path to incorporate the parent form as well?

    If anyone can let me know why I get the name error that would be great

    thanks


    Lupson2011

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Try this:
    Code:
     
    =Forms!SubformSOFA_DATA_ENTRY.Controls!U_Vol_Inc
    Let us know if it works!

  3. #3
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68
    Hi

    thanks for your reply. I managed to sort it thanks, sorry I forgot to press resolved.

    Many thanks for code though, sounds like a good alternative

    Lupson2011

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    How did you solve it?
    Someone might find your solution useful one day.

  5. #5
    Lupson2011 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    68
    Well,just used this code, which is very similiar to what you suggested..

    =[Forms]![VolIncomeNotesMainForm]![U_Vol_Inc]

    I realised that both the parent forms were working from the same table so could hook on the the value from there. If that makes sense. it works so am not complaining.

    Have you seen my other thread in general access questions about extra records. if you have a solution for that, would be really grateful as it is confounding me at the moment lol

    Lupson2011

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I DID see that but have never seen it myself so I didn't want to guess!!

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

Similar Threads

  1. Replies: 1
    Last Post: 05-10-2011, 12:06 PM
  2. Displaying image in calculated field
    By ceci123 in forum Access
    Replies: 2
    Last Post: 01-25-2011, 11:51 AM
  3. Displaying all the entries in one field
    By canfish in forum Reports
    Replies: 5
    Last Post: 07-29-2010, 02:19 PM
  4. Replies: 1
    Last Post: 10-26-2007, 07:29 AM
  5. Form field not displaying in query
    By Valeda in forum Queries
    Replies: 2
    Last Post: 05-05-2006, 10:08 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