开发者

How to add/modify the 'Description' property value for LinkTable in VBA?

开发者 https://www.devze.com 2023-04-07 20:34 出处:网络
I have a LinkTable which points to an existing table of S开发者_运维知识库QL server in my Access database.

I have a LinkTable which points to an existing table of S开发者_运维知识库QL server in my Access database. I need to change the 'Description' property value for that table link.

I had tried many ways but failed to do that.

Can any any one help me in this regard ?


Some notes.

Dim db As DAO.Database
Dim tdf As TableDef

Set db = CurrentDb
Set tdf = db.TableDefs("Table1")

On Error Resume Next
tdf.Properties("Description") = "Link"

If Err.Number = 3270 Then 'property not found
    Set prp = tdf.CreateProperty("Description", dbText, "Link")
    tdf.Properties.Append prp
End If
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号