- Local time
- Today, 02:36
- Joined
- Sep 28, 2010
- Messages
- 83
Forgive me, for I have sinned.
It has been some time since my last post and an almost equal amount of time since my last piece of access development.
(Enough of that melodrama, let's cut to the chase)....
I'm building a form on which I want the end users to select a site reference from a combobox (easy part, that's sorted). Selecting the site reference will then populate a listbox (although this could be subject to change) with data delivered by the following vba element..
Private Sub Site_Select_1_Change()
List8.RowSource = "SELECT Hardware.Type, Hardware.Supplier, Hardware.Manufacturer, Hardware.Model, Hardware.Serial_Number, Hardware.Installation_Date, Hardware.Comments FROM Site_Data INNER JOIN Hardware ON Site_Data.ID = Hardware.Site_Reference WHERE (((Hardware.Status) = 1) And ((Site_Data.Site_Reference) = """ & Site_Select_1.Value & """)) GROUP BY Hardware.Type, Hardware.Supplier, Hardware.Manufacturer, Hardware.Model, Hardware.Serial_Number, Hardware.Installation_Date, Hardware.Comments; "
End Sub
Now the intelligent amongst the audience will have spotted my problem immediately and drawn the conclusion that the record ID will be returned from each table, and not the actual data that I'm wishing to display to the end user..
Congratulations to you, you've earned a trip to the coffee machine!
Now, once you've refilled your fuel tanks, can you give me some guidance around how the hell I'm going to get this form to display what I want? I know I'm probably missing something silly, but I'm blaming my time away from the grind stone..
Off to say some hail marys!
It has been some time since my last post and an almost equal amount of time since my last piece of access development.
(Enough of that melodrama, let's cut to the chase)....
I'm building a form on which I want the end users to select a site reference from a combobox (easy part, that's sorted). Selecting the site reference will then populate a listbox (although this could be subject to change) with data delivered by the following vba element..
Private Sub Site_Select_1_Change()
List8.RowSource = "SELECT Hardware.Type, Hardware.Supplier, Hardware.Manufacturer, Hardware.Model, Hardware.Serial_Number, Hardware.Installation_Date, Hardware.Comments FROM Site_Data INNER JOIN Hardware ON Site_Data.ID = Hardware.Site_Reference WHERE (((Hardware.Status) = 1) And ((Site_Data.Site_Reference) = """ & Site_Select_1.Value & """)) GROUP BY Hardware.Type, Hardware.Supplier, Hardware.Manufacturer, Hardware.Model, Hardware.Serial_Number, Hardware.Installation_Date, Hardware.Comments; "
End Sub
Now the intelligent amongst the audience will have spotted my problem immediately and drawn the conclusion that the record ID will be returned from each table, and not the actual data that I'm wishing to display to the end user..
Congratulations to you, you've earned a trip to the coffee machine!
Now, once you've refilled your fuel tanks, can you give me some guidance around how the hell I'm going to get this form to display what I want? I know I'm probably missing something silly, but I'm blaming my time away from the grind stone..
Off to say some hail marys!