Mark,
Hi, I'm getting the fields from the actual table the users will use; the funny thing is that yesterday it was working fine. But today it decided to quit working, and i don't really feel like going to my report and change all my fields data source names just like that. I still want to use the cursor to deploy the data on the report instead of creating another table and include it in the database as a temporary table, which will guarantee field length.
>
>When you are running this at Runtime, are you getting your AFIELDS() data from a different table than your design time one? Maybe the runtime table structure is different.
>
>Also, rather that using AFIELDS, you could
>SELECT * FROM tablename INTO CURSOR cursorname NOFILTER
>to get a copy of your original table for reporting.
For every bug fixed, there is a bigger bug not yet discovered.