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!

Clearing an Access table from Visual Basic

Status
Not open for further replies.

JasonV

MIS
Jun 9, 1999
10
0
0
US
Hi,<br>
I'm writing data from a flexgrid to a table in Access 97.<br>
What is the command to clear the table before it is written to?<br>
<br>
Thanks,<br>
Jason
 
g_sql = &quot;DELETE FROM Table &quot;<br>
g_sql = g_sql & &quot;WHERE ADVNR = &quot; & CStr(advnr)<br>
g_sql = g_sql & &quot; AND VOLGNR = &quot; & CStr(volgnr)<br>
g_db.Execute g_sql<br>
<br>
g_db is the location of the database<br>
<br>
Eric<br>
<br>
<p>Eric De Decker<br><a href=mailto:vbg.be@vbgroup.nl>vbg.be@vbgroup.nl</a><br><a href= Basic Center</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top