Dear All,
Good Morning first.
I have code in DAO Method such as
How to write the function above in ADODB Method?
thanks
Good Morning first.
I have code in DAO Method such as
Code:
Function delete_tb(name_of_table) Dim rs1 As Recordset Dim db As DAO.Database Set rs1 = CurrentDb.OpenRecordset("SELECT MSysObjects.Name" _ & " FROM MSysObjects WHERE MSysObjects.Type= 1 And MSysObjects.Flags=0" _ & " and MSysObjects.Name='" & name_of_table & "'") If Not rs1.EOF Then Set db = CurrentDb db.TableDefs.Delete name_of_table db.Close Set db = Nothing End If rs1.Close Set rs1 = Nothing End Function
thanks
Comment