T
tkosel
Sorry about the length of this question.
I am building a Pass Through Query to retrieve data from Linked SQL Database
Tables.
V_QueryString = "SELECT dbo.PRODUCT.PROD_ID, dbo.PRODUCT.PROD_NAME, . . . "
(I didn't include the entire String, but the string works fine. There are
some parameters being passed to the string based on user criteria.)
I then modify the Currently existing pass through query using:
CurrentDb.QueryDefs("RawDataPassThrough").SQL = V_QueryString
This query yields the results desired.
I am worried however, because I don't think good things will happen
when multiple users are using my shared application. (Bad when the query
is being used and someone else tries to also use it applying different
criteria
I could install a seperate front end on each client, but don't want
the update/maintenance problems.
I could build just the query on a local client machine and use it, but don't
know
how to do that. I know how to create a DB on the client machine;
Set dbNew = DBEngine.Workspaces(0).CreateDatabase(strDBName, dbLangGeneral)
And I know how to copy the object from current database to client;
DoCmd.CopyObject "C:\temp\file.mdb", "MasterRawDataPassThrough", acQuery,
"RawDataPassThrough"
But I don't know how to modify the "RawDataPassThrough" query on the client.
CurrentDb.QueryDefs("RawDataPassThrough").SQL = V_QueryString won't work,
but perhaps there is something else? I could then link local client query to
the master shared application and run the query from there once it is built.
Any ideas/suggestions?
I am building a Pass Through Query to retrieve data from Linked SQL Database
Tables.
V_QueryString = "SELECT dbo.PRODUCT.PROD_ID, dbo.PRODUCT.PROD_NAME, . . . "
(I didn't include the entire String, but the string works fine. There are
some parameters being passed to the string based on user criteria.)
I then modify the Currently existing pass through query using:
CurrentDb.QueryDefs("RawDataPassThrough").SQL = V_QueryString
This query yields the results desired.
I am worried however, because I don't think good things will happen
when multiple users are using my shared application. (Bad when the query
is being used and someone else tries to also use it applying different
criteria
I could install a seperate front end on each client, but don't want
the update/maintenance problems.
I could build just the query on a local client machine and use it, but don't
know
how to do that. I know how to create a DB on the client machine;
Set dbNew = DBEngine.Workspaces(0).CreateDatabase(strDBName, dbLangGeneral)
And I know how to copy the object from current database to client;
DoCmd.CopyObject "C:\temp\file.mdb", "MasterRawDataPassThrough", acQuery,
"RawDataPassThrough"
But I don't know how to modify the "RawDataPassThrough" query on the client.
CurrentDb.QueryDefs("RawDataPassThrough").SQL = V_QueryString won't work,
but perhaps there is something else? I could then link local client query to
the master shared application and run the query from there once it is built.
Any ideas/suggestions?