D
Daniel M
I have a database where i am trying to split the main table down to 2 tables.
I am not using a bound form so i am not sure how to link the 2 together. I am
doing something like this...
Dim Rs As Recordset
Dim RS2 As Recordset
Set Rs = CurrentDb.OpenRecordset("Assets")
Rs.AddNew
Set RS2 = CurrentDb.OpenRecordset("Return")
RS2.AddNew
Rs![Dateentered] = Dateentered
Rs![EmployeeID] = Employees.Value
Rs![SerialNumber] = SerialNumber
RS2![cCustomerDamage] = chkCustomerdamage.Value
RS2![cNotCalling] = chkCallingCustomer.Value
Rs.Update
RS2.Update
Rs.Close
RS2.Close
Set Rs = Nothing
Set RS2 = Nothing
Both tables contain the field AssetID and they are linked together with a
relationship. I would like to see the AssetID in the Assets table to be the
same as the AssetID in the Return table. Can anyone give me some idea on how
to do this? Thanks.
I am not using a bound form so i am not sure how to link the 2 together. I am
doing something like this...
Dim Rs As Recordset
Dim RS2 As Recordset
Set Rs = CurrentDb.OpenRecordset("Assets")
Rs.AddNew
Set RS2 = CurrentDb.OpenRecordset("Return")
RS2.AddNew
Rs![Dateentered] = Dateentered
Rs![EmployeeID] = Employees.Value
Rs![SerialNumber] = SerialNumber
RS2![cCustomerDamage] = chkCustomerdamage.Value
RS2![cNotCalling] = chkCallingCustomer.Value
Rs.Update
RS2.Update
Rs.Close
RS2.Close
Set Rs = Nothing
Set RS2 = Nothing
Both tables contain the field AssetID and they are linked together with a
relationship. I would like to see the AssetID in the Assets table to be the
same as the AssetID in the Return table. Can anyone give me some idea on how
to do this? Thanks.