# 我知道如何更改了

Posted by yeong huann on January 22, 1999 at 01:54:53:

In Reply to: 再问更改 TABLE 名称 posted by yeong huann on January 19, 1999 at 13:14:12:

: 请问如何在VB中更改mdb资料库中的TABLE名称

透过ACCESS_VBA来更改

Dim AccessObj As Object
Set AccessObj = CreateObject("Access.Application")
AccessObj.OpenCurrentDatabase App.Path & "\" & Me.Text3.Text & ".mdb"

AccessObj.DoCmd.Rename Me.Text3.Text, actable, Me.Text2.Text
AccessObj.Quit

Follow Ups:

- Re: 我知道如何更改了 尧仔 08:03:53 1/24/99 (0)