
Originally Posted by
mcguires99
hi wasable to open your example but didnt undestand it. As I said very new to access. Now taking a new tact.
tblTripNumbers contains various fields including trip number (Text Field), delivery times (in number of days), FromTo (place names), Contracted days (Number of days), etc.
tblFromTo (used for my combo box) contains 3 columns.
C1 is ID, C2 is FromTo (which are place names), C3 is Contracted days (in number of days).
When combo box used in "frmTripnumberdurations" a destination is chosen from the place names shown in the drop down. Currently this puts the place name in a field on the same form titled "Contracted Days".
I don't think the changes were necessary, but they should work. Does this last sentence mean that you are getting the correct row, but not the info which you desire??? If so, you may not have specified the number of columns and bound column correctly in your combo box.
I require when a specific destination is chosen that the number of contracted days is shown in this "Contracted Days " field on the form and that when the record is saved the results populate all the fields in tblTripNumbers
Take it one step at a time. Display your selection results by using a msgbox or debug.print. When you know you have correctly selected the appropriate record, then we can focus on transferring the result to the record.
Thanking you for your patience thus far