donaldmaloney
Programmer
Help.
I open a form and from a combo box select a vendor table.
Once selected I unlink the vendor table and link to the selected vendor table.
Then I open a subform and query the file to display the fields.
When I go back to the first form and select another vendor. The program (DoCmd) unlinks the current vendor table and links to the new vendor.
The subform again through query displays the first vendor's data.
While the forms are still open I go to the TABLES and click on the table that shows a link to the new vendor table and the new vendor data is displayed BUT the subform query is getting data from the first unlinked table.
If I close the forms and restart the correct data displays.
IS there a way to really release the links while the form/sibform is active?
I have used Refresh and requery and Doevents but the data in the tables which are not liked display.
Does the form, when opened, LOCK the currently linked tables so that even if you delete the links and relink to anothrer table the original links remain?
I open a form and from a combo box select a vendor table.
Once selected I unlink the vendor table and link to the selected vendor table.
Then I open a subform and query the file to display the fields.
When I go back to the first form and select another vendor. The program (DoCmd) unlinks the current vendor table and links to the new vendor.
The subform again through query displays the first vendor's data.
While the forms are still open I go to the TABLES and click on the table that shows a link to the new vendor table and the new vendor data is displayed BUT the subform query is getting data from the first unlinked table.
If I close the forms and restart the correct data displays.
IS there a way to really release the links while the form/sibform is active?
I have used Refresh and requery and Doevents but the data in the tables which are not liked display.
Does the form, when opened, LOCK the currently linked tables so that even if you delete the links and relink to anothrer table the original links remain?