FOR p_count = 1 TO 12 sMonth= LTRIM(STR(p_count)) SELECT * FROM weights WHERE MONTH(date1) = &sMonth INTO TABLE "d:\ahsan"+m.sMonth NEXT CLOSE ALL