SELECT [company information].[company name], [company information].[company id] FROM [company information];
i also have the following on the after-update;
Me![PO Box] = DLookup("[PO Box]", "Company Information", "[Company Name]=forms![main form].[transmittal subform].[form].[company name]")
Me![Street] = DLookup("[street]", "Company Information", "[Company Name]=forms![main form].[transmittal subform].[form].[company name]")
Me![City] = DLookup("[City]", "Company Information", "[Company Name]=forms![main form].[transmittal subform].[form].[company name]")
Me![Postal Code] = DLookup("[Postal Code]", "Company Information", "[Company Name]=forms![main form].[transmittal subform].[form].[company name]")
Me![Province] = DLookup("[province]", "Company Information", "[Company Name]=forms![main form].[transmittal subform].[form].[company name]")
I think what's happening is that once i select the company name all the Dlookup commands query the first record matching that selection. what i need is for it to look up the company name and the id, but i'm not sure of the code.....
i'm also sure there's a better and more efficient way of doing this, but again, i'm not sure how...
thanks for replying.