B
BBUIE
Guest
Hi, I'm new to the world of access, but I've managed to create and almost complete a database (thanks to the help of this forum). Now I have to ask for help. Here it goes...
I have a database that I use to enter information about equipment (serial#, description, vendor, etc) that I order and install for clients.
I am using a form (frmCSTINFO) with a subform (frmEQUIPMENT). In the Form I select a customer name from a combo box (cboCustomerName)and in the subform I enter all the details as mentioned above. This info is stored as a record in a table (tblCST_INVENTORY). Each piece of equipment entered is a single record. Each record has a field called (CST_ID) which is used throughout the database to identify customers.
Here's the problem....
I'm trying to add a listbox to either the form or the subform that will display all the equipment for that particular customer. Currently I am able to get the listbox to display all equipment for all customers (all records in tblCST_INVENTORY). But I need it to only display records which have a CST_ID field equal to the customer I'm viewing currently in the combo box (cboCustomerName). Column 2 in the combo box contains the CST_ID field that I need to reference.
I'm pretty sure this will require some VB to work properly.
Man I hope this makes sense!!
Thank you in advance

I have a database that I use to enter information about equipment (serial#, description, vendor, etc) that I order and install for clients.
I am using a form (frmCSTINFO) with a subform (frmEQUIPMENT). In the Form I select a customer name from a combo box (cboCustomerName)and in the subform I enter all the details as mentioned above. This info is stored as a record in a table (tblCST_INVENTORY). Each piece of equipment entered is a single record. Each record has a field called (CST_ID) which is used throughout the database to identify customers.
Here's the problem....
I'm trying to add a listbox to either the form or the subform that will display all the equipment for that particular customer. Currently I am able to get the listbox to display all equipment for all customers (all records in tblCST_INVENTORY). But I need it to only display records which have a CST_ID field equal to the customer I'm viewing currently in the combo box (cboCustomerName). Column 2 in the combo box contains the CST_ID field that I need to reference.
I'm pretty sure this will require some VB to work properly.
Man I hope this makes sense!!
Thank you in advance
