Hi all comrades
please , how to update a table2 record based on alter a similar record in table1 with specified Id by a vba or query statment ?
Example in attachment .
Hi all comrades
please , how to update a table2 record based on alter a similar record in table1 with specified Id by a vba or query statment ?
Example in attachment .
It makes no sense to have two tables that are the same.
the sense is (The second table is linked table from a network server ....)
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
thanks you all
solved just now by a close friend with vba code .Code:Private Sub Sv_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Set db = CurrentDb Set rst = db.OpenRecordset("Select * From Table2") rst.FindFirst "ID=" & (Me.ID) If Not rst.NoMatch Then rst.Edit rst!DName = Me.DName rst!Age = Me.Age rst.Update End If rst.Close Set rst = Nothing Set db = Nothing End Sub