MarkGibson
Programmer
I receive this error message "Records in table MasterListCodes would have no records on the 'one' side" at an odd time in my Access 97 database: I have just changed the numeric code for the industry of a particular company and in the AfterUpdate Event of the combo box I do a lookup:
Me![lblIndustry] = DLookup("Description", "IndustryMaster", "Number='" & [cboIndustry] & "'"
...in order to put the matching Industry description into a label. The result is an error in the seemingly unrelated table MasterListCodes! Similar lookups in AfterUpdate Events for other numeric codes in other tables (SectorMaster, AnalystMaster, ClassMaster) all provoke the same error. It also happens if I use the Dlookup in a BeforeUpdate, but a similar Dlookup (in the Data field of the label in question) works fine when the form opens and when I change records.
There is no relationship between the tables in question. Any suggestions? Thanks a lot!
Me![lblIndustry] = DLookup("Description", "IndustryMaster", "Number='" & [cboIndustry] & "'"
...in order to put the matching Industry description into a label. The result is an error in the seemingly unrelated table MasterListCodes! Similar lookups in AfterUpdate Events for other numeric codes in other tables (SectorMaster, AnalystMaster, ClassMaster) all provoke the same error. It also happens if I use the Dlookup in a BeforeUpdate, but a similar Dlookup (in the Data field of the label in question) works fine when the form opens and when I change records.
There is no relationship between the tables in question. Any suggestions? Thanks a lot!