G
Gary Dolliver
Hi again,
Ok, unfortunately, the below (which originally worked for me) is now no
longer working - the problem appears to be that the initial record in the
table was not created yet, and therefore when the billing information was put
into form2, it inserts 2 records into table1 - one for the shipping info on
form1 and one for the billing info on form2. However, if I go into the
record AFTER it has been entered and then click on form2, I can get it to
update the current record.
Is there a way I can have, upon creation of a new record, form1 and form2
update table1 to the same record without having to go back into the record
after creation?
Thanks!
Ok, unfortunately, the below (which originally worked for me) is now no
longer working - the problem appears to be that the initial record in the
table was not created yet, and therefore when the billing information was put
into form2, it inserts 2 records into table1 - one for the shipping info on
form1 and one for the billing info on form2. However, if I go into the
record AFTER it has been entered and then click on form2, I can get it to
update the current record.
Is there a way I can have, upon creation of a new record, form1 and form2
update table1 to the same record without having to go back into the record
after creation?
Thanks!
You can always put another tab on Form1 and put the billing fields in there.
If you want to use two forms, your two forms should have the same datasource
(table1 ). The Shipping info fields are in Form1, the Billing fields in
Form2. A button on Form1 is used to open form 2. The code in the button
should be something like this:
Dim strCriteria As String
strCriteria = "[Order_ID] = " & Me.Order_ID
DoCmd.OpenForm "form2 ", , , strCriteria, , acDialog
You do not need an update query.
Good luck!
Gary Dolliver said:Hello, thanks for the reply, here are the answers below:
Yes, I have one table (holding both billing and shipping info) being updated
by 2 forms. Record locks are off
I do have both billing and shipping info in one table. I cannot use a tab
control as it is already set up on form1 - unless there is a way to put a tab
control within a tab control?
Am I asking for the impossible? Thanks!
-gary