Hello all,
I have been trying to set up an Access DB as a front end to query an Oracle DB. I have been able to create pass through queries through code and, if the query already has a description, I have been able to retrieve the description through code using the following:
For some reason though, when I try to do add a description to a query that doesn't have one I get a "Property not found error."
If anyone can tell me any way to add a description to a query without right clicking on the query and then clicking "properties", I would be greatly appriciate it.
Thanks,
Tim
I have been trying to set up an Access DB as a front end to query an Oracle DB. I have been able to create pass through queries through code and, if the query already has a description, I have been able to retrieve the description through code using the following:
Code:
Dim db As DAO.Database
Dim strQueryDescription As String
Set db = CurrentDb()
db.QueryDefs.Refresh
strQueryDescription = db.QueryDefs_
(lstQryName.Column(0)).Properties("Description")
lblDescription.Caption = strQueryDescription
For some reason though, when I try to do add a description to a query that doesn't have one I get a "Property not found error."
If anyone can tell me any way to add a description to a query without right clicking on the query and then clicking "properties", I would be greatly appriciate it.
Thanks,
Tim