Hello,
I have a database form that currently adds a new revision into a table for a unique part number and serial number combination, like this:
What I need the ability to do is add records for the revision for *all* of that part number, any serial number. But at this point, I don't know what serial numbers to add; the part/serial combinations are stored in a different table.
Does anyone know of an easy way I could accomplish this, preferably all in VBA, without making any changes to the current database structure?
Thanks in advance!
I have a database form that currently adds a new revision into a table for a unique part number and serial number combination, like this:
Code:
Private Sub cmd_Click()
Dim rec as Recordset
Set rec = CurrentDb.OpenRecordset("tblPartRevisionHistory", dbOpenDynaset)
rec.AddNew
rec("RevisionNumber") = Me![RevisionNumber]
rec("Part") = Me![Part]
rec("SerialNumber") = Me![SerialNumber]
rec.Update
Set rec = Nothing
End Sub
What I need the ability to do is add records for the revision for *all* of that part number, any serial number. But at this point, I don't know what serial numbers to add; the part/serial combinations are stored in a different table.
Does anyone know of an easy way I could accomplish this, preferably all in VBA, without making any changes to the current database structure?
Thanks in advance!