G
Guest
I have a form where I compare two records from two different tables.
If the records match, I need the onEPLSDb checkbox checked off and the
RecordScrubbed checkbox checked off.
If they don't match, I only need the RecordScrubbed checkbox checked off.
My problem is that the check boxes are not getting checked off in either
situation.
Also. I'd like to move to the next record so I can repeat the if statement
through the databse.
My code is below. Any help would be appreciated.
Thanks,
Tina
Private Sub Command70_Click()
Dim RecordScrubbed As Boolean
Dim OnEPLSDb As Boolean
Dim EPLSName As String
Dim ScrubbedSupplierName1 As String
On Error Resume Next
If tblsuppliername.ScrubbedSupplierName1 Like tbleeplsdb.EPLSName Then
RecordScrubbed = 1
OnEPLSDb = 1
Else
RecordScrubbed = 1
OnEPLSDb = 0
End If
End Sub
If the records match, I need the onEPLSDb checkbox checked off and the
RecordScrubbed checkbox checked off.
If they don't match, I only need the RecordScrubbed checkbox checked off.
My problem is that the check boxes are not getting checked off in either
situation.
Also. I'd like to move to the next record so I can repeat the if statement
through the databse.
My code is below. Any help would be appreciated.
Thanks,
Tina
Private Sub Command70_Click()
Dim RecordScrubbed As Boolean
Dim OnEPLSDb As Boolean
Dim EPLSName As String
Dim ScrubbedSupplierName1 As String
On Error Resume Next
If tblsuppliername.ScrubbedSupplierName1 Like tbleeplsdb.EPLSName Then
RecordScrubbed = 1
OnEPLSDb = 1
Else
RecordScrubbed = 1
OnEPLSDb = 0
End If
End Sub