Link to home
Start Free TrialLog in
Avatar of PTuffill
PTuffill

asked on

Refresh buffers?

Hi, I am an experienced programmer but new to VB.
This is my first major project done on a learn as you go basis! But I have
got stuck.
The project comprises a VB6 front end to a ACCESS97 (Jet) databse.
I need to create a report from the result of a user query. I couldn't
figure how to get SQL parameters to work within the VB report writer so I have done it in two parts.
1. Get user input to build SQL to first empty then insert required records into a table(special table for the purpose)
2. Envoke report to read table and print.

> Ha ha does it work!!?? NO The data reported is always that which was
present at program start time and will not refresh during runtime, despite
trying resync and refresh in various places.  The only progress I have made is by forcing Data Environment close in the report terminate proc, I then get the new data after TWO attemps of running the report.  This is consistant!(always two times)  The report is a databound report using a DE. The SQL that creates the new data is code in a proc.
 
 Any suggestions ?? Many thanks...... Phil
 
ASKER CERTIFIED SOLUTION
Avatar of sudhi022299
sudhi022299

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PTuffill
PTuffill

ASKER

Helpful response but I am still having difficulties but I think they may involve the installation itself!  I upgraded to SP3 & have had trouble ever since.
Thanks for a great service.
I will be back!
Helpful response but I am still having difficulties but I think they may involve the installation itself!  I upgraded to SP3 & have had trouble ever since.
Thanks for a great service.
I will be back!