gleads
asked on
Refreshing data
at the moment, I have a screen that then moves to one of two forms. The problem I have is that when I view the form, go out and select another record and go back in, the displayed data is still the data from the previous record.
I need somehow to refresh the data without clearing the SQL or the query because that looses all the SQL which specifies the records to find.
I need somehow to refresh the data without clearing the SQL or the query because that looses all the SQL which specifies the records to find.
query1.requestlive := true;
ASKER
requestlive what is this?
No sorry.. I meant query1.AutoRefresh := true;
It's a property in the Object Inspector
From delphi help:
"When AutoRefresh is true, field values are automatically refreshed without an explicit call to the Refresh method."
I hope it helps
Gummi St.
It's a property in the Object Inspector
From delphi help:
"When AutoRefresh is true, field values are automatically refreshed without an explicit call to the Refresh method."
I hope it helps
Gummi St.
ASKER
I am using an ADO connection will this still work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it says insufficient base table information
in delphi (properties mastersource,masterfield of the dataset).
otherwise you have to relocate the form2-data
in the afterscroll-event of the dataset on form1
meikl ;-)