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

Refresh my connection

Status
Not open for further replies.

laprog

Programmer
Aug 6, 2003
10
CA
Hi,
Application (Access project) - Database (SQL Server)

I execute a procedure that drops a table completely.
CurrentProject.Connection.Execute ("drop table dbo.logbookDbase")

Now if i look at my list of SQL-Server tables through my access table list, the table still show even though i
dropped it. I want it to disappear.

I need to press on F5, in order to make it disapear.
Is there a way, by code, i can make this table disappear by
refreshing my connection?

Please let me know, we've been looking and are not able to find a solution.

Thank you!

laprog
 
Hi everyone

Do not bother instead of dropping my table by executing my instruction on the SQL side, i dropped it using VBA which then resulted in making my table disappear right away.

Here is the code i used:
DoCmd.DeleteObject acTable, "logbookDbase"
insead of
CurrentProject.Connection.Execute ("drop table dbo.logbookDbase")

Thanks anyway! Have a nice weekend!laprog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top