rich.barry
Registered User.
- Local time
- Today, 23:01
- Joined
- Aug 19, 2001
- Messages
- 176
Hello
I have a bit of code (below) that writes my QueryDefs to a table so that after any changes to object names, I can search the querydefs to check if there are any places referencing the old object name that I need to update.
I seem however to get a number of querydefs returned that refer to objects that no longer exist as far as I can see.
e.g. ~sq_cswbCreatePack~sq_cListBilletStock
swbCreatePack was a form that existed a long time ago, but is no longer listed amongst the forms.
Can anyone shed any light on why I get these querydefs that shouldn't exist anymore?
Cheers
Richard
I have a bit of code (below) that writes my QueryDefs to a table so that after any changes to object names, I can search the querydefs to check if there are any places referencing the old object name that I need to update.
Code:
For C = 0 To CurrentDb.QueryDefs.Count - 1
With Record
.AddNew
!QueryName = CurrentDb.QueryDefs(C).Name
!Querysql = CurrentDb.QueryDefs(C).SQL
.Update
End With
Next C
I seem however to get a number of querydefs returned that refer to objects that no longer exist as far as I can see.
e.g. ~sq_cswbCreatePack~sq_cListBilletStock
swbCreatePack was a form that existed a long time ago, but is no longer listed amongst the forms.
Can anyone shed any light on why I get these querydefs that shouldn't exist anymore?
Cheers
Richard