I looked through 250 threads on Listboxes at 26,800 baud before posting this. Perhaps the question is inane!
I have a form to re-sequence the order of rooms. In it is a listbox of the rooms based on a query that returns all the fields of the underlying table but only displays field 4 with the Room Name.
There is another field on the same record, whose value I need to obtain when the user selects a record. It is the primary key index value.
I am unsure how to go about this and my feeble attempt returned a type miss match.
Forms![frmPrioritize_Rooms]![txtHouse_Room_ID] = lstSelected_Rooms!House_Room_ID
Perhaps a more general question is "Can any field of a listbox underlying query be accessed for its value when the current record and how is this done?"
Does anyone have suggestions for me? Any advice is appreciated.
I have a form to re-sequence the order of rooms. In it is a listbox of the rooms based on a query that returns all the fields of the underlying table but only displays field 4 with the Room Name.
There is another field on the same record, whose value I need to obtain when the user selects a record. It is the primary key index value.
I am unsure how to go about this and my feeble attempt returned a type miss match.
Forms![frmPrioritize_Rooms]![txtHouse_Room_ID] = lstSelected_Rooms!House_Room_ID
Perhaps a more general question is "Can any field of a listbox underlying query be accessed for its value when the current record and how is this done?"
Does anyone have suggestions for me? Any advice is appreciated.