Results 1 to 3 of 3
  1. #1
    Jill is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    1

    Form-Combo Box-Saving value to table

    Hello,



    I have an issue I've been researching for hours!

    I need to provide a list of values from a table (physicians) in a Datasheet form where it displays the default for the record but includes a combo box drop down with the available physician names (all good here). When the physician name is changed, it changes my physician table instead of the patient record (the issue).

    Tables:
    Physician (Fields: PhyID, PhyLastname)
    Patient (Fields, ..., PhyID).

    In order to display the default in the form, I have Physician.PhyLastname as the Control souce (although this is not what I want to be updated but has been the only way to display the value in the form with existing data).

    Row Type source = Table/Query
    I have the Row Source as a query to the Physician table pulling out both PhyID and PhyLastname (drop down works beautifully).

    When I'm in the form and select a new physician name from my beautiful drop down , it changes the physician table instead of inserting the physician ID (PhyID) into the Patient table.

    Any help would be so much appreciated.

    Thanks, Jill

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It sounds like the form should be bound only to the patients table (sounds like you're using a query with both tables). The control source of the combo should be the appropriate field in that table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    JoelBR is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2012
    Posts
    12

    Save value from unbound combo box to table

    Hi, I have been looking an example how can I save unbound combo box value to the corresponding table without luck. I am using unbound combo box because I want to control the saving with a button.

    Can Anyone help me with this issue or give me the correct direction?

    I already have the form to get data from table, but I have some problems to save data to tables from the combo boxes and text box.
    Attached Thumbnails Attached Thumbnails Torque combo box.PNG   Torque Relationship.PNG  
    Last edited by JoelBR; 12-07-2012 at 10:11 AM.

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

Similar Threads

  1. Saving unbound fields on form to table
    By lexygirl in forum Forms
    Replies: 4
    Last Post: 07-25-2011, 10:10 AM
  2. Replies: 1
    Last Post: 07-22-2011, 02:48 PM
  3. Combo Box not saving to table
    By dgriffin in forum Forms
    Replies: 11
    Last Post: 06-08-2011, 03:04 PM
  4. Replies: 1
    Last Post: 04-19-2011, 01:55 PM
  5. Calculations in Form not saving to table
    By ld8732 in forum Forms
    Replies: 1
    Last Post: 01-24-2011, 07:31 PM

Tags for this Thread

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