selahlynch
Registered User.
- Local time
- Today, 23:44
- Joined
- Jan 3, 2010
- Messages
- 63
I have a form that I view in datasheet view. The record source for this form is a query. When I change the definition of this query, the change is not reflected in my form until I close and reopen the form. I have tried the requery function on my form but it did nothing. Any idea why this is and how I can get my form to show the updated query?
Code:
? forms!testform.recordsource
testquery
CurrentDb().QueryDefs("testquery").SQL = modifiedquery
Forms!testform.Requery
' the form still does not reflect my modified query :(