I'm trying to make an event procedure in VBA that will compare the same field of two records for a conditional statement. Here is some psudocode of what I want:
If myTable.thisField[currRecord] == myTable.thisField[currRecord+1] then
// Run a Query
Does anyone know the VBA code for this? Thanks.