ThisForm.aTables[1] = Sys(2015) && add 1st table to arrayAnd then whenever you want to add another:
Dimension ThisForm.aTables[Alen(ThisForm.aTables,1) + 1] && increment table array by 1 ThisForm.aTables[Alen(aTables,1)] = Sys(2015) && create a table name in last array row Create Table (ThisForm.aTables[Alen(aTables,1)]) (Field1 C(10), Field2 ... etc)Or you could add them in a For Loop.
Use (ThisForm.aTables[3]) in 0 alias Table3 && or whatever alias you likeThen just refer to the alias Table3 the same as you would any other.
For lnCount = 1 to Alen(ThisForm.aTables,1) If used (ThisForm.aTables[lnCount]) use in (ThisForm.aTables[lnCount]) Endif EndForAlan