Hi,
I have the following code in the after update event of a combo box
which adds a new record to a table (which is also the form's subform. It works fine, but how would I go about using this code on a new record in the main form. Right now I have to enter the data in the main form and then get off of and then back on the new record and then the code adds a new record to the subform. I've tried to save the record in the code, but that didn't work.
Thanks for your help
Sydney
I have the following code in the after update event of a combo box
Code:
Case "bka"
Set MyDB = CurrentDb
Set MyTable = MyDB.OpenRecordset("tblLoanSteps")
MyTable.AddNew: MyTable("litigationID") = Forms!frmLitigationEntry!txtLitigationID
MyTable("ScheduleDate") = Date: MyTable("Steps") = "1"
MyTable.Update
End Select
Thanks for your help
Sydney