Results 1 to 2 of 2
  1. #1
    saleemMSMS is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    2

    Question please help me to design this form..

    well, this is what i want to do.. i have 2 tables
    Books (bookID, title, authorID, price)
    Authors (AuthorID, AuthorName)
    when i generate 2 forms using the form wizard, 2 forms will be generated.. but in the books form, there will be a text box to enter the authorID. what i need is to have a reference to that point so that the data entry operator will not get confused.
    so i thought of placing a combo box in front of the authorID text box in the Books Form. this combo box will have all the author names in it. whenever the used selects an author name, the Author ID text box should get filled with the respective author ID of the selected author name.
    so i built a query saying select AuthorID form Authors where AuthorName=<a parameter>
    but i'm unable to link this query with the combo box's onChange event. this is what made me to ask this question.

    so PLEASE can u guys tell me is my approach wrong ? if it is not wrong, what am i missing here??
    if its wrong, PLEASE explain me the correct way...

    THANK YOU VERY MUCH FOR DEVOTING TIME ON THIS QUESTION
    sorry again for being rude in previous occasions

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    In your combo box have two columns Author Name and Author id set the author id as the bound field but only show the author name. Then on the after update event of the combo set the textbox that displays the author id to

    Me.TxtAuthID = Me.CboAuthors

    David

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

Similar Threads

  1. Design form for restaurant
    By chanlongs in forum Forms
    Replies: 1
    Last Post: 08-20-2009, 07:35 AM
  2. Database Design
    By mzrihe1x in forum Database Design
    Replies: 1
    Last Post: 06-17-2009, 09:09 PM
  3. Replies: 0
    Last Post: 03-11-2009, 12:39 PM
  4. newbie needs design help
    By ashiers in forum Database Design
    Replies: 0
    Last Post: 09-13-2008, 07:05 PM
  5. Design help
    By marix in forum Database Design
    Replies: 1
    Last Post: 04-18-2007, 07:54 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