I am trying to update the grid on a form from another form. In other words, say form A has a grid. Form A calls form B, then form B updates the grid on form A.
Imaginecorp- Before posting this questions I was already doing exactly what you suggested; in other words, passing form A as a parameter to form B. I was also passing the form A datasession ID as a parameter to form B. The problem I was facing and that is why I posted the question, was because I was having some issues switching between data sessions. However, I appreciate all the suggestions here. My forms use private data sessions.
I wanted to see if there were any other suggestions on handling this situation. I use to code in VB 6 and this was not an issue with VB.
I would think that by creating the cursor in the init event of form B, inserting the values to this cursor within form B, assigning the cursor to the THISFORM.parentform.grid1, and refreshing the grid should work, but it's not displaying the values. I am assuming this is happening because the cursor is lost after form B is closed.
Hello Admdev:
You already have the solution: Yes the cursor is lost, so create it in form A, Now it is accessable in Form B, make your changes and from Form B assign the cursor etc, before closing form B.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.