Larft
Technical User
- Dec 9, 2002
- 55
In my Access 2002-2003 database that I use to keep track of lab projects I would like to add a second table that records testing data, the first table stores information about the project itself, description, due date etc. I could skip all of this by just adding the fields to my existing table but I would prefer to separate the data in a second table. The problem is that the common link "LWR#" needs to be present in second table and it's pretty silly to have to enter it manually in the second table. Data is added to table #1 through an "Add" form and edited using a second "Edit" form; both are based on the same query that references both tables as well as a customer table.
How can I store the value entered into the "LWR#" text box in the "Add" form in both tables at the same, or nearly so, time? I have looked around and found some references to similar issues one that looked like it would do it was in "thread702-664580" but I get an error trying to run the edited code, I'm not much at VB coding. Is there a way to write to two control sources in different tables at the same time or is this best done as an "after insert" event in the "Add" form?
Thanks in advance!
How can I store the value entered into the "LWR#" text box in the "Add" form in both tables at the same, or nearly so, time? I have looked around and found some references to similar issues one that looked like it would do it was in "thread702-664580" but I get an error trying to run the edited code, I'm not much at VB coding. Is there a way to write to two control sources in different tables at the same time or is this best done as an "after insert" event in the "Add" form?
Thanks in advance!