Results 1 to 2 of 2
  1. #1
    waqas is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    117

    Question Show name on form but esave id in third tabl

    dear all



    i have two tables one tables filed are gid and gname second pid and pname. on form i want to show in combo boxes values only gname and pname but in third table i want to save only gid and pid.

    how can i do any one guide me

    i have upload combo box with query "select * from group;"

  2. #2
    goodguy is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Location
    Zanzibar, Tanzania
    Posts
    228
    1. SELECT * is bad practice, learn to write SELECT with fieldnames.
    2. GROUP is a reserved word in Access and SQL, DO NOT use it to name tables or fields.
    3. User the LOOKUP WIZARD in design view of TABLE3.GID to bind to TABLE1.GID while displaying TABLE1.GNAME
    4. Same for PNAME and PID.

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

Similar Threads

  1. Show/Hide Form
    By sparlaman in forum Forms
    Replies: 5
    Last Post: 05-16-2011, 11:48 AM
  2. Show related data on a form
    By Accessgrasshopper in forum Forms
    Replies: 4
    Last Post: 03-17-2011, 07:53 PM
  3. New Field Will Not Show Up in Form
    By batowl in forum Forms
    Replies: 9
    Last Post: 12-16-2010, 11:34 PM
  4. Replies: 9
    Last Post: 03-24-2009, 09:19 PM
  5. Show a new image per record in a form
    By Bert Colourama in forum Forms
    Replies: 0
    Last Post: 09-25-2008, 05:22 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