G
Gary Dolliver
I have 2 forms and 1 table. form2 is called upon in form1 and opens in a
seperate window, each reference fields in table1. I would like form2 to
capture data and insert into the record initially created on form1 when
closed (form1 will always be open). The below SQL is used on the button
click to close form2, but I am getting syntax errors:
DoCmd.RunSQL "UPDATE Orders " & _
"SET Orders (BillTo_FName) =
(Forms![RECEIVING_MAIN_Billing_Info]![BillTo_FName]) " & _
"WHERE Orders (Order_ID) = (Forms![RECEIVING_MAIN_Check_In]![Order_ID]) "
DoCmd.Close
I am noticing that the actual record does not seem to be populated into the
table until after I close form1 in frustration, which I believe is the reason
I cannot get this to work. However, when trying to use SQL with the INSERT
INTO command, I also do not have any luck. Any thoughts? Thanks!
seperate window, each reference fields in table1. I would like form2 to
capture data and insert into the record initially created on form1 when
closed (form1 will always be open). The below SQL is used on the button
click to close form2, but I am getting syntax errors:
DoCmd.RunSQL "UPDATE Orders " & _
"SET Orders (BillTo_FName) =
(Forms![RECEIVING_MAIN_Billing_Info]![BillTo_FName]) " & _
"WHERE Orders (Order_ID) = (Forms![RECEIVING_MAIN_Check_In]![Order_ID]) "
DoCmd.Close
I am noticing that the actual record does not seem to be populated into the
table until after I close form1 in frustration, which I believe is the reason
I cannot get this to work. However, when trying to use SQL with the INSERT
INTO command, I also do not have any luck. Any thoughts? Thanks!