I have a form within my database which is the data input for an ordering system for an electrical companies housing section. The user is able to choose a site in a combo box which then allows the user to see the relevant houses for that site in a second combobox. The details of the houses are stored in "tblPlotref" within this table there are currently over a thousand unique houses. Each house is a particular type and there are around 200 different house types, these are kept in "tblHouseref". In "tblPlotref" each house has a number in the Houseref column which corresponds with the housetype number in tblHouseref.
Once the House has been chosen in the form, it triggers a number of other actions on the form but the one I'm interested in is a listbox on the form. The data for the listbox is a query which shows the relevant 'kits' for that housetype (each housetype has a '1st Fix Kit' and a '2nd Fix Kit') the user selects which 'kit' is being ordered and that is added to a table called "tblDespatches" in a column called "FixRef", it adds a number which refers to details in a different table.
What I want the form to do is once the user has chosen the house it checks "tblDespatches" to see if that house has already had a 'kit' ordered and prevent it from being ordered again.
I hope that made sense, unfortunatly the db is quite complicated its tricky to give a full explanation of it without writing an essay!
Once the House has been chosen in the form, it triggers a number of other actions on the form but the one I'm interested in is a listbox on the form. The data for the listbox is a query which shows the relevant 'kits' for that housetype (each housetype has a '1st Fix Kit' and a '2nd Fix Kit') the user selects which 'kit' is being ordered and that is added to a table called "tblDespatches" in a column called "FixRef", it adds a number which refers to details in a different table.
What I want the form to do is once the user has chosen the house it checks "tblDespatches" to see if that house has already had a 'kit' ordered and prevent it from being ordered again.
I hope that made sense, unfortunatly the db is quite complicated its tricky to give a full explanation of it without writing an essay!