Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Requery and Caching problem

Status
Not open for further replies.

TimK01

Technical User
Jan 4, 2002
94
I have a form Form1, with a subform Form1sub. On the subform I have a listbox which is populated by some sql based on fields on form 1

I have abutton on the subform that opens a new window (modal) and allows the user to select a new type of record to add. This new record should appear in the listbox. I have code in the end of the modal windows code that requerys theform expecting the newly added data to appear.

Id doesnt, so I addd buttons to the subform to requery the subform and the parent form, still the data doesnt appear.

I scroll forward then back on the main form and the data still doesnt appear

I close the rorm and reopen it at the correct record and the data does appear

My guess is that the new record is cached somewhere. can anyone confirm this and or offer a solution that will get the datd to appear when it is added.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top