J
James
In Access2002 I declare a tabledef variable and use it as
follows:
Dim tdf As dao.TableDef
Set tdf = CurrentDB.TableDefs("tbl1") '--tbl1 exists
Debug.Print tdf.Name
This code bombs out at Debug.Print tdf.Name
The error message say "Object invalid or no longer set"
Could someone explain why I am getting this error? Is
there a workaround?
Thanks,
James
follows:
Dim tdf As dao.TableDef
Set tdf = CurrentDB.TableDefs("tbl1") '--tbl1 exists
Debug.Print tdf.Name
This code bombs out at Debug.Print tdf.Name
The error message say "Object invalid or no longer set"
Could someone explain why I am getting this error? Is
there a workaround?
Thanks,
James