I have two forms
First form is built from a query built of 5 tables to get data needed
Form 1 uses an unbounded combo box to traverse the records in the query
I have a second form that is opened up by a button click. It calls one of the tables used in the query so that the user can edit the data if needed. When I close this second form and return to the first form, all the fields show the #Name error in the txt boxes. If I use the combo box to change records, no change in the errors and I must close the box and reopen to get functionality back.
I have tried several code changes. Here is my last
Any help or suggestions would be greatly appreciated.
Thanks
TC
First form is built from a query built of 5 tables to get data needed
Form 1 uses an unbounded combo box to traverse the records in the query
I have a second form that is opened up by a button click. It calls one of the tables used in the query so that the user can edit the data if needed. When I close this second form and return to the first form, all the fields show the #Name error in the txt boxes. If I use the combo box to change records, no change in the errors and I must close the box and reopen to get functionality back.
I have tried several code changes. Here is my last
Code:
Private Sub CloseBtn_Click()
Dim povalue As String
povalue = Me.PrintOrder 'PrintOrder was used in the First form to modify the sql statement in the record source
DoCmd.Close
Forms![Open Print Orders Form].POCombo.Value = povalue 'Tried to set the print order back to the original value
Forms![Open Print Orders Form].Refresh
End Sub
Any help or suggestions would be greatly appreciated.
Thanks
TC