|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by marc_butler in Access Coding/Macros, Microsoft ADP, SQL Query Syntax
Hi,
I'm currently starting to look at migrating our database to an Access Data Project (adp) from it's current form as an mdb but one of the first stumbling blocks I've come across is that the following code doesn't work in the adp.
Set qd = CurrentDb.QueryDefs("FLTra
nsportInst
ructions")
qd.sql = sql & " WHERE (([CLAIM.Ref])=" & Ref & ");"
qd.Close
I use it to get the sql statement from an existing query and then alter it to filter for the one reference, mainly when producing letters or reports but at the moment it's just dropping out on the first line.
I've recreated my query in my adp project using a view but I need a way to get the sql statement from the view so I can add the ref and then use the ALTER VIEW syntax.
Any help or better ideas to this problem would be appreciated.
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625