Dim rs As DAO.Recordset
Dim vartemp As Variant
Hi, I need help making the 2nd part of my if statement to loop. I'm getting the results I wanted but used the goto next record to check the next one however I need to check all records. How would I create a loop to do this. Thanks.
vartemp = DLookup("[category]", "table1", "[category]=forms![form1]![category]"
If Me.Obtained = True Then
MsgBox ("made it past obtained is true"
vartemp = Forms!form1!category
DoCmd.GoToRecord , , acNext
If category = vartemp Then
MsgBox ("made it past vartemp"
Obtained = True
MsgBox ("made it past obtained=true"
End If
End If
Dim vartemp As Variant
Hi, I need help making the 2nd part of my if statement to loop. I'm getting the results I wanted but used the goto next record to check the next one however I need to check all records. How would I create a loop to do this. Thanks.
vartemp = DLookup("[category]", "table1", "[category]=forms![form1]![category]"
If Me.Obtained = True Then
MsgBox ("made it past obtained is true"
vartemp = Forms!form1!category
DoCmd.GoToRecord , , acNext
If category = vartemp Then
MsgBox ("made it past vartemp"
Obtained = True
MsgBox ("made it past obtained=true"
End If
End If