Look "ahead" in a record set

bknight
BronzeLounger
Posts: 1400
Joined: 08 Jul 2016, 18:53

Re: Look "ahead" in a record set

Post by bknight »

It is pertinent because the last operation has to be calculated, otherwise I could do it manually, but that defeats the purpose of the code.

bknight
BronzeLounger
Posts: 1400
Joined: 08 Jul 2016, 18:53

Re: Look "ahead" in a record set

Post by bknight »

The solution is logic/code error. The line in question s/b

Code: Select all

ElseIf recData(8, I - 2) = "Exit" And recData(8, I - 3) = "Entry" And (recData(3, I - 3) + recData(3, I - 2) + recData(3, I - 1)) = 0 Then

The recData(3, I) check for a rec that is outside the four possible solutions and s/b recData(, I - 1).
Thanks for everyone's input.
Last edited by HansV on 26 Feb 2024, 19:15, edited 1 time in total.
Reason: to correct code tags