futbolista
IS-IT--Management
I have a form that contains contacts. On that form is a combo box that displays companies, that is populated with a lookup from the company table. The bound column is the primary key for the company table. When a user selects a company, the bound column value is saved to the foreign key in the contacts table, thus creating a one-to-many relationship. (One company has many employees) In order for a new company to appear in the combo box after it is added to the company table, a requery must be done of the contact form. This event sets the form back to the first record, thus losing the users "place" (the new record that was being added). Microsoft suggest a long, painful pair of procedures using DAO; I tried to set a global variable to a the ID field of the current record(Me![ID]), then use it in the LinkCriteria, but this approach proceeded to generate a variety of errors. Any suggestions?