T
teddysnips
I posted earlier about a database that I couldn't add to SourceSafe.
For the moment, I don't really need the source code control elements,
but I need to examine all the objects in the database because I'm
going to rename some of the queries, columns etc. and need to know
where they're referenced in the front end.
I'm using some code that I found in this group that loops through all
the database objects and use the application.SaveAsText to write them
to a file: this bit goes through the querydefs:
For i = 0 To db.QueryDefs.Count - 1
app.SaveAsText acQuery, db.QueryDefs(i).Name, _
sExportLocation & "Query_" & db.QueryDefs(i).Name & ".txt"
Next i
However, it's barfing because it can't open a file that it's trying to
name with the
"Query_" & db.QueryDefs(i).Name & ".txt"
concatenation. The value of QueryDefs(i).Name at that point is:
~sq_cfrmQuestionnaire~sq_cVisited website before?
Huh? I've looked in the list of queries and there are no queries that
look ANYTHING like this. Is the .Name property of the QueryDef object
different somehow from the name that appears in the Queries pane?
Thnks
Edward
For the moment, I don't really need the source code control elements,
but I need to examine all the objects in the database because I'm
going to rename some of the queries, columns etc. and need to know
where they're referenced in the front end.
I'm using some code that I found in this group that loops through all
the database objects and use the application.SaveAsText to write them
to a file: this bit goes through the querydefs:
For i = 0 To db.QueryDefs.Count - 1
app.SaveAsText acQuery, db.QueryDefs(i).Name, _
sExportLocation & "Query_" & db.QueryDefs(i).Name & ".txt"
Next i
However, it's barfing because it can't open a file that it's trying to
name with the
"Query_" & db.QueryDefs(i).Name & ".txt"
concatenation. The value of QueryDefs(i).Name at that point is:
~sq_cfrmQuestionnaire~sq_cVisited website before?
Huh? I've looked in the list of queries and there are no queries that
look ANYTHING like this. Is the .Name property of the QueryDef object
different somehow from the name that appears in the Queries pane?
Thnks
Edward