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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGRID doesn't show the latest info

Status
Not open for further replies.

nhb

Programmer
Jul 8, 2000
6
0
0
MY
I populate a table using<br>DataEnvironment1.rstblTest.Open _<br>&quot;Insert fielda into tblTest Select fielda from tblTest2&quot;<br>thru a button press.<br><br>The dbGrid is at the same form as this button. This dbGrid is pointing to tblTest.<br><br>I have tried to use dbGrid1.refresh but it doesn't work.<br><br>A quick check on tblTest using Access shows that the table is being populated correctly.<br><br>How do you &quot;refresh&quot; the dbGrid with the new<br>populated information?<br><br>Please help.
 
<br><br>nhb, use <i>DataEnvironment1.<b>Requery</b></i> using whaterver sql statement that you choose to fill the data control which will cause that data to display in the grid. <p>Amiel<br><a href=mailto:amielzz@netscape.net>amielzz@netscape.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top