D
Dave F
I have a query, GetSQL which returns the SQL statements of all queries in my
db, for documentation purposes. Its SQL is:
SELECT msysObjects.Name AS QueryName, GetSQL([NAME]) AS SQLStatement,
msysObjects.DateCreate, msysObjects.DateUpdate
FROM msysObjects
WHERE (((msysObjects.Name) Not Like "~*") AND ((msysObjects.Type)=5));
GetSQL is a UDF with the following code:
Option Compare Database
Function GetSQL(pstrQuery As String) As String
GetSQL = CurrentDb.QueryDefs(pstrQuery).SQL
End Function
When I run this query, long SQL statements get truncated. I assume that
this is because Access is using a text field by default. Is there a way to
get the SQL to be returned as a memo field, which I understand allows more
text characters than a text field?
Hope this is clear, thanks.
Dave
db, for documentation purposes. Its SQL is:
SELECT msysObjects.Name AS QueryName, GetSQL([NAME]) AS SQLStatement,
msysObjects.DateCreate, msysObjects.DateUpdate
FROM msysObjects
WHERE (((msysObjects.Name) Not Like "~*") AND ((msysObjects.Type)=5));
GetSQL is a UDF with the following code:
Option Compare Database
Function GetSQL(pstrQuery As String) As String
GetSQL = CurrentDb.QueryDefs(pstrQuery).SQL
End Function
When I run this query, long SQL statements get truncated. I assume that
this is because Access is using a text field by default. Is there a way to
get the SQL to be returned as a memo field, which I understand allows more
text characters than a text field?
Hope this is clear, thanks.
Dave