Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload grid source (view)?

Status
Not open for further replies.

tonedef

Programmer
May 24, 1999
64
US
I have a form which contains a pageframe. Each page of the frame has a grid to display a different 1 to many relationship with the table that is on the main form (outside the pageframe). I am not allowing any editing of the grids. When the user double clicks the grid another form opens to edit that data. After editing the data and closing the form I would like the grids on the original form to display the correct data. The source of both grids is an alias from the forms dataenvironment. One is based on a table the other a local view. The one based on the table works exactly as I would like. However the one based on the view does not update until I close the form and come back in. Is there a way to get the view to requery so that the data is updated in the grid?

Thanks,
tone
 
Are you saying the REQUERY statement doesn't work?

Dave S.
 
there is no requery for a grid or a cursor in the dataenvironment.

tone
 
No, but there is a REQUERY() function call for views. You should be able to call it in a refresh or activate event.

Dave S.
 
Thanks Dave,

As a note to anyone else who is reading this thread. For the requery to work your view can not be read only.

tone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top