Detect when query fails to find a record

Larsporsenna

Registered User.
Local time
Today, 01:06
Joined
Aug 20, 2013
Messages
17
I have ASSET_TYPE, MANUFACTURER and MODEL tables.
I have a Table ASSET_COMBO that links to the above tables.
I have a form to create amend an ASSETS table. The form uses combo fields to filter the options available to the user. I.E the User Picks Manufacturer then selects from list of Asset Types provided by that Manufacturer, then selects from list of Models.
I want to create a form to allow create and amend records on the ASSET_COMBO Table.
The problem I have is that I want to ensure that there are no duplicates on ASSET_COMBO Table. I know that I can Select Multiple keys from the table with no duplicates allowed. But from what I have read this can cause problems. Is there a simple way that I can detect that a query on the ASSET_COMBO Table has returned a valid record or has not found a record.
 
One way would be with a DCount() function.
 
Sorry for not replying earlier. Thanks for the advice.
 
No problem, I hope it worked for you.
 

Users who are viewing this thread

Back
Top Bottom