Results 1 to 3 of 3
  1. #1
    giaosu is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    2

    Retrieve two values from one table into two fields

    Hi, I'm new to Access, now I'm stuck with this step, please help me out.

    I have to design a form to enter data for relationship of two groups. The form will have:


    - Group1, Group2
    - Fixed characteristics of each group no matter what relationship they are with.
    - Variable characteristics when the pair of groups changes.

    I have a table name tblGROUPs that has information about a single groups with their fixed characteristics.
    There are approximately 4000 groups, so I'll have millions of combinations. Then I create a combo box for Group1, Group2 to choose the suitble group from tblGROUPs. I want to save some time that whatever fixed characteristics of a new group entered into the form, it will go to tblGROUPs, and later, when I enter a group that already have fixed characteristics in tblGROUPs, the characteristics will automatically appear in the form.

    I used Dlookup but it can only retrieve the information for the 1st Group I enter, and copy that to the 2nd Group while the 2nd Group is different.

    Hope that clear enough. Thank you so much for your help!

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    No too clear, no.

    A picture of your table(s) might help.

    Dale

  3. #3
    giaosu is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    2
    Hi, attached is the form, it has more fields than that, I just create the simple one.

    My database has 3tables:
    - tblDATA: has GROUP1, GROUP2, LEFT1, LEFT2, RIGHT1, RIGHT2, FINSUPPORT, MATSUPPORT, data from frmDATA will be stored in this table.
    - tblGROUP: has GROUPs, LEFT, RIGHT
    - tblVARIABLES: has value for combo box of LEFT, RIGHT, FINSUPPORT, MATSUPPORT.

    Again, I want when I enter LEFT1, LEFT2, RIGHT1, RIGHT2 of GROUP1 and GROUP2 in frmDATA, the value will go to tblGROUP, and for the later record, if there is a group that already has LEFT/RIGHT information, that information will be pulled out automatically.

    That's I want to do, I am not sure that I'm in the right track right now.

    Thank you.Click image for larger version. 

Name:	Untitled.jpg 
Views:	6 
Size:	64.3 KB 
ID:	12534

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

Similar Threads

  1. Replies: 1
    Last Post: 11-08-2012, 02:37 PM
  2. Replies: 5
    Last Post: 03-23-2011, 02:28 PM
  3. Look up values in multiple table fields
    By nmcentire in forum Programming
    Replies: 2
    Last Post: 11-12-2010, 02:02 PM
  4. Replies: 0
    Last Post: 06-03-2009, 10:25 PM
  5. Replies: 1
    Last Post: 06-20-2007, 07:26 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