Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I have that code in the after update event of the combo:



    http://www.baldyweb.com/FirstVBA.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    GregWatling is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    12
    I have tired so many things that I have got it all messed up now & it's getting late here in the UK. I have been working on this for about 8 hours today, I will go back to an earlier version tomorrow & go through this topic, hopefully getting things right and get a successful result.

    Thanks for your help so far guys, I will let you knwo how I get on.

    Why cant things be easy?

  3. #18
    GregWatling is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    12
    Just a thought, would this be easier if I made fields in the table and pulled the data in from the second table & stored them rather than trying to just show them in a virtual kind of way?

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I wouldn't. It would typically violate normalization rules to store duplicate data, and this situation doesn't appear to qualify for an exception.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    GregWatling is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    12
    EUREKA!

    Thanks Guys, after a nights sleep & coming back at this from the start, I have managed to do it & it is very simple.

    I have added two text boxes next to my selection drop down with the Control Source as

    =[SectorL2a].[Column](2)
    =[SectorL2a].[Column](3)

    they now fill in correctly and all is good.

    thanks for all of your help
    Attached Thumbnails Attached Thumbnails Eureka.jpg  

  6. #21
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Glad you got it sorted out.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 01-10-2013, 06:23 PM
  2. Replies: 10
    Last Post: 07-18-2012, 03:42 PM
  3. Replies: 1
    Last Post: 07-16-2012, 02:10 PM
  4. Show related data on a form
    By Accessgrasshopper in forum Forms
    Replies: 4
    Last Post: 03-17-2011, 07:53 PM
  5. Replies: 4
    Last Post: 12-21-2010, 11:32 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