G
Guest
I have a combo box on one form which pulls the company name and masterID # (autonumber) from the master table for choices in the combo box. The masterID # is then stored on a work table. Then I have a query for the Master table to match up the masterid # in the work table with the information in the master table. I do this by querying the master table and placing a DLookup for the work table masterID # in the MasterID field of the Master table.
This works just fine and I'm able to pull up the next form, which is my ad sales form. The ad sales form only has the company name and master ID # on the top section, with a subform below for the multiple sales
All the existing sales that are assigned to that company are listed. The linking field (MasterID) is working just fine for that. However, when I try to enter new data in the subform, the MasterID # doesn't hold. The error message is "The Object doesn't contain the automation object "Master"
I'm suspecting it has something to do with the fact that I'm doing the DLookup on the autonumber? I've checked and everything appears to link okay as far as viewing, but it's somehow within the editing process
I had this system in another database, however, I had the DLookup on the Company name, not the MasterID autonumber. It caused problems in this database as in this database some companies are listed more than once and if I link it in the combo box by company name - it will only pull up the first record for that company name in the second form. I solved that problem by having it link in the combo box by the master ID #, but now I have this problem about editing
Any suggestions would be extremely appreciated!!!
This works just fine and I'm able to pull up the next form, which is my ad sales form. The ad sales form only has the company name and master ID # on the top section, with a subform below for the multiple sales
All the existing sales that are assigned to that company are listed. The linking field (MasterID) is working just fine for that. However, when I try to enter new data in the subform, the MasterID # doesn't hold. The error message is "The Object doesn't contain the automation object "Master"
I'm suspecting it has something to do with the fact that I'm doing the DLookup on the autonumber? I've checked and everything appears to link okay as far as viewing, but it's somehow within the editing process
I had this system in another database, however, I had the DLookup on the Company name, not the MasterID autonumber. It caused problems in this database as in this database some companies are listed more than once and if I link it in the combo box by company name - it will only pull up the first record for that company name in the second form. I solved that problem by having it link in the combo box by the master ID #, but now I have this problem about editing
Any suggestions would be extremely appreciated!!!