I have my tables structured in the manner displayed below. I am having difficulty in created the second sql query for the 2nd combo box to display data which is dependant on what the user selects from the 1st combo box. Please see below.
************************
tblLUPAssetClass
ClassID
Class PK
tblAssetType
AssetTypeID PK
ClassID
AssetTypeCode
AssetTypeDesc
tblAssetTypeLocation
AssetTypeLocationID
AssetTypeID PK
StructureLocationID PK
tblStructuredLocations
StructureLocationID
StructureLocationBase PK
StructureLocationDetail PK
******************
tblStructuredLocations – Contains the 3 types of locations we have.
e.g. Factory, Depot, Warehouse
tblAssetType – e.g. Floor Boards, Skirting, Coving
tblAssetTypeLocations – this table identifies where all assets are kept, the items have multiple locations
e.g. Floor Boards could be at all three Locations- Factory, Depot, Warehouse
e.g. Skirting only at Warehouse.
*******************
In combo Box One – I have the StructureLocations Table in the Row Source = tblStructuredLocations.
In Combo box two – I can’t seem to get the sql query right where by when a user selects say Warehouse, only the relevant relating fields would appear.
Your help is much appreciated.
Many Thanks
Shreekant
************************
tblLUPAssetClass
ClassID
Class PK
tblAssetType
AssetTypeID PK
ClassID
AssetTypeCode
AssetTypeDesc
tblAssetTypeLocation
AssetTypeLocationID
AssetTypeID PK
StructureLocationID PK
tblStructuredLocations
StructureLocationID
StructureLocationBase PK
StructureLocationDetail PK
******************
tblStructuredLocations – Contains the 3 types of locations we have.
e.g. Factory, Depot, Warehouse
tblAssetType – e.g. Floor Boards, Skirting, Coving
tblAssetTypeLocations – this table identifies where all assets are kept, the items have multiple locations
e.g. Floor Boards could be at all three Locations- Factory, Depot, Warehouse
e.g. Skirting only at Warehouse.
*******************
In combo Box One – I have the StructureLocations Table in the Row Source = tblStructuredLocations.
In Combo box two – I can’t seem to get the sql query right where by when a user selects say Warehouse, only the relevant relating fields would appear.
Your help is much appreciated.
Many Thanks
Shreekant