if not indexseek(.t.,.f.,'FileAdmin','lSelected') && No records marked =messagebox('You have to select records for extracting first!',48,'No records marked') return .f. endifHere is the behavior, I observe - if I'm sitting on the record and mark it (no records were marked before), I receive the messagebox about no records marked. The second time I press the button, it works fine. Same if I unmark the record. My process will run the first time and only the second time I get a message.