I use SQL Select command into cusor A and set grid.recordsource="A". However, since SQL select command gets nothing so there is no data in A. I would like to add MESSAGEBOX() to be shown before it goes to empty grid (there is no data in cursor A) but I have tried empty(),isnull() ...