wh0wants2know
IS-IT--Management
I have an access project with several linked tables from a sql server. The tables are linked through a file dsn and i can view the data in them. I also have a query in access that runs on the linked tables and some of the local tables simultaneously. When I run that query by double-clicking it, it works just fine. when I try to run that SAME QUERY from an event procedure, it hangs. i noticed that when I run the query by double-clicking, it asks me for a username and password to connect to the sql database and I have to change it from my windows logon to my sql server account, but when I try to run this as an event procedure, it doesn't prompt me for anything, and I think that this is likely the cause. Is there any way to make this thing work from my code? the code is:
dbDb.QueryDefs!PO_Mawb_Xref_View.Execute
and PO_Mawb_Xref_View is a query that I have created in the access project.
dbDb.QueryDefs!PO_Mawb_Xref_View.Execute
and PO_Mawb_Xref_View is a query that I have created in the access project.