I set my table on server and front end with table link on user machine with vba log in code. However someone still can make blank database and import my table from server and table link from front end.
I user this code to hide table on server, and it's work (cannot see through Tool>Show hidden object. But for table link on front end, I dn't know how to write code.
Private Sub Command2_Click()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
Set tdf = db.TableDefs("AcctCode")
tdf.Attributes = tdf.Attributes Or dbHiddenObject
Set tdf = db.TableDefs("CHART OF ACC_28102010")
tdf.Attributes = tdf.Attributes Or dbHiddenObject
End Sub
Are there any VBA code to hide or disable import of those table link.
Best Rgds
Veerachai
I user this code to hide table on server, and it's work (cannot see through Tool>Show hidden object. But for table link on front end, I dn't know how to write code.
Private Sub Command2_Click()
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
Set tdf = db.TableDefs("AcctCode")
tdf.Attributes = tdf.Attributes Or dbHiddenObject
Set tdf = db.TableDefs("CHART OF ACC_28102010")
tdf.Attributes = tdf.Attributes Or dbHiddenObject
End Sub
Are there any VBA code to hide or disable import of those table link.
Best Rgds
Veerachai