Results 1 to 6 of 6
  1. #1
    lld812 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    3

    Use a combo box to input data (from a different table) into forms below and save to a diff table.

    Basically I set up a simple database to keep track of my customers and I would like to set up another table to schedule rides (I run a transit). I would like for there to be a drop down box on the ride scheduler page where I can select the customers already stored name, have the information I want (such as name, address phone number) inputted into some forms below (which will be labeled name, address, phone number) so all I have to add is the ride time, destination, and route name. Then I would save this to a different table. So I would have two tables, one for customer info and one for ride information.Click image for larger version. 

Name:	abcdefgaaaaa.JPG 
Views:	13 
Size:	85.1 KB 
ID:	22892

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    The customer info would not be saved into the Rides table, only the customer ID. You can display the customer info on the Rides data input form but do not allow edit of the customer info on this form.

    The customer combobox can have multiple columns that contain all the customer info. Then expressions in textboxes can reference the columns of the combobox if you want to display this info outside the combobox.

    If you need to add a new customer while entering ride info, review https://www.accessforums.net/access/...ate-55139.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    lld812 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    3
    Ok I kind of understand but I will try to rephrase the questions.

    I would like to have a form called Rider Data and have basically all the same forms as the Customer Information form. I would like to have a combo box at the top where I can select the customers information. This would then input the data in the fields from the Customer Information Form fields to the Rider Data form fields. I would then add additional fields in the Rider Data form such as rider date and destination. I would then like to save all of this information to the Ridership Data table. Is this possible?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    It is possible but why would you duplicate the customer info in the Ridership table?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    lld812 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    3

    Reply

    Quote Originally Posted by June7 View Post
    It is possible but why would you duplicate the customer info in the Ridership table?
    What I'm trying to do is create a form where I can use a combobox to select a riders data when they call to schedule a ride and then enter a couple new data entry fields such as time of call, pickup location , pickup time , and route name so it saves in a separate table where I can keep track of rides scheduled.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    I am confused. Select customer from combobox. This saves the CustomerID into ride record. Enter other ride info. What else is necessary?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 11-04-2014, 12:07 PM
  2. Replies: 8
    Last Post: 02-03-2014, 07:01 PM
  3. Replies: 5
    Last Post: 12-12-2013, 10:13 PM
  4. Save value from combo box to table
    By JoelBR in forum Access
    Replies: 9
    Last Post: 12-10-2012, 06:58 PM
  5. Replies: 11
    Last Post: 07-24-2012, 07:50 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