I have several fields in several tables that contain a numeric ID representing a contact record in another database (hence not linked) I am in need of creating a method to update this ID in every occurance, I was thinking of
For Each tbl In CurrentDb.TableDefs
For Each fld In tbl.Fields
If fld.description = "ContactID" Then
'replace goes code here
End If
Next
Next
However the description is not available, and there is no tag as on form controls, does anyone have any suggestions??
there are several instances in each table so I cannot set the each field name as contactID, I really do not want to have to write an update query for 40-odd tables, and then every time a new table is added have to write new queries too.
does anyone know of a way of solving this?
For Each tbl In CurrentDb.TableDefs
For Each fld In tbl.Fields
If fld.description = "ContactID" Then
'replace goes code here
End If
Next
Next
However the description is not available, and there is no tag as on form controls, does anyone have any suggestions??
there are several instances in each table so I cannot set the each field name as contactID, I really do not want to have to write an update query for 40-odd tables, and then every time a new table is added have to write new queries too.
does anyone know of a way of solving this?