Hi I've searched the net and couldn't find the right answer to my question.
I have two tables GCSALLDATA
and GCS-RECONCILED
. They both have the same columns but I only need to focus on two [Control Number]
(Short Text) and [NotInDevTrack]
(yes/no)
I want to search GCSALLDATA
for the Control Number found in GS-RECONCILED
. If it's found Update the record.
From what I read using a DCOUNT
should be able to do this, but wondered how would it cycle through all the records in the table?
Here is my attempt at using to use it
If DCount("[Control Number]", "GCSALLDATA", "Control Number=" & [GCS_Reconcile].[Control Number]) > 0 Then
MsgBox ("Control number already in use")
Else
MsgBox ("Control Number missing add it")
End If