Hi
I have a strange problem. my program flow is like this..

in a single procedure

step 1 : manualy enter data in fields(text boxes)
step 2 : save the data into to an access table(DAO)
step 3 : using crystal reports 8 fetch that data and print a report.

i have the necessary code in a command button(print button)

what happenes is when i click print, the data is being saved in the table
but nothing gets printed in reports.

there is nothing wrong with my code, as every thing works perfectly
when i trace the program..

but when i run that same program, nothing is being fetched by crystal reports.

my assumption was, even though i insert values in to the table,
crystal report is fetching before the data is actualy is written in the table.

i came to this solution because if i give a msgbox between insertion of data
and fetching by crystal reports, its working fine.

so i wanted to delay the excecution of the fetching code.

i came to a solution like this

------insert-------

for i = 1 to 100000000

'some calculation
temp = temp / 434.435
next i

-----fetch------

my machine was p3 866, 128 megs ram.

the above loop delayed the execution by some 4 seconds.

and i got my desired output. fetching happened properly after insertion.

but when i run the same code in a p4 machine, the loop only takes a fraction
of a second and i am back to same problem again....

any solution for my problem..

Thanks

Easwaran