M
Martin
Hello,
I have some code that checks if a table exists and if it doesn't then
reattach the linked table. However it doesn't work as it just attaches the
table anyway.
Can anyone help?
If TableList = DCount("[Name]", "MSysObjects", "[Name] = 'tbl Clients'") =
False Then DoCmd.TransferDatabase acLink, "Microsoft Access",
"c:\Temp\JETS2.mdb", acTable, "tbl Clients", "tbl Clients", False
Thanks in advance,
Martin
I have some code that checks if a table exists and if it doesn't then
reattach the linked table. However it doesn't work as it just attaches the
table anyway.
Can anyone help?
If TableList = DCount("[Name]", "MSysObjects", "[Name] = 'tbl Clients'") =
False Then DoCmd.TransferDatabase acLink, "Microsoft Access",
"c:\Temp\JETS2.mdb", acTable, "tbl Clients", "tbl Clients", False
Thanks in advance,
Martin