created pass through queries to fill list forms. Speed increased exponentially. However one of those forms also acts as a subform on the customer form where the records in the subform map to the customer. Subform is blank now and I got an error message that pass through queries don't work with sub forms. Any suggestions?
Create the local table. In your button, delete the records that are in there with a delete query. Use an append query (INSERT INTO) to pull records from the SQL Server via pass-thru. Now you have the records you need in a local table.
Teeka LeoneOP
@Reply 4 years ago
I think I need a tech help video for this! I've created the local environments table.
What button are you refering to? The customer list Form opens to the selected Customer Form which in turn has the Environment Sub Form on it that loads form the SQL table.
How do I tell the customer sub form to open with the local table; not the SQL Table. Also I don't think I can do an append because the environments table on SQL Server is updated and appended to Weekly from a 3rd party app. Once the users start using this DB the environments table will change all day every day so if they select the record from the local table in the sub form, that's the table that will be updated: not the SQL Table right? Sorry if I'm missing something.
If you have data that's updated once a week on your server and you need READ ONLY access to it locally, just run a query once a week to pull that data down to a local table in the user's database so they're not constantly hitting the server (slow). Then base whatever forms they need off of that local table. If they need to change a specific record, then open a SINGLE form direct to the data on the server.
Teeka LeoneOP
@Reply 4 years ago
Ahhhh I think I got it now. THANKS!!!
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access SQL Server Lessons.