Structure:
Table: tblAssets
Fields: ID, UID, ModelID, NetName
I'm trying to populate a query which I'll then use for the source of a Combo Box in a form.
The query will return two fields from three fields in tblAssets: ID (which each asset entry has) and Name, which defaults to NetName (for workstations and printers) and to ModelID (for furniture and non-networked assets) if NetName is empty.
Can this be done in a single query or do I need to use two queries, one which pulls all the NetNames and one which pulls all the ModelIDs where NetName = "" and then INNER JOIN?
Table: tblAssets
Fields: ID, UID, ModelID, NetName
I'm trying to populate a query which I'll then use for the source of a Combo Box in a form.
The query will return two fields from three fields in tblAssets: ID (which each asset entry has) and Name, which defaults to NetName (for workstations and printers) and to ModelID (for furniture and non-networked assets) if NetName is empty.
Can this be done in a single query or do I need to use two queries, one which pulls all the NetNames and one which pulls all the ModelIDs where NetName = "" and then INNER JOIN?
Comment