Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2010, 03:20 PM
Registered User
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SOLVED Combo Box Synchronizing issues

SOLVED!!! Figured it out


Here is my layout.
Table Personnel
ID | FULL_NAME | Ops Init | TEAM

Table Team
ID | TEAM |

SIM
ID | INSTRUCTOR | TEAM | TRAINEE | DATE

Form Add
Combo box: Instructor, tmbox, Combo50
Text Box: Date, Start Time, End Time

tmbox and Combo50 are already synchronized. When I enter all the data into the form and save, the Team ID is placed into the TEAM column. I want the TEAM name added not the ID.

When I change the the bound column of my tmbox, now my combo boxes aren't synchronized, but I get the correct data saved to the SIM table.

Any help would greatly be appreciated.

Here is the code to my tmbox

Code:
Private Sub tmbox_AfterUpdate()
    Me.Combo50.RowSource = "SELECT FULL_NAME & ' (' & [Ops Init] & ')' " & _
                            " FROM Team INNER JOIN Personnel ON Team.TEAM = Personnel.TEAM " & _
                            " WHERE Team.ID = tmbox " & _
                            " ORDER BY Personnel.FULL_NAME"
    Me.Combo50 = Me.Combo50.ItemData(0)
 
End Sub

Last edited by usafmeinweg; May 21st, 2010 at 03:42 PM.. Reason: Figured it out





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
Combo box to display items from parent combo box Gini Visual Studio 2008 0 June 18th, 2008 12:30 AM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.