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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Requery subform does not recognize last changed record

Status
Not open for further replies.

jdttek

Technical User
May 8, 2002
112
US
I have a standard subform that has a checkbox for each record. A date field on the subform is changed (SQL Update)only for records with checkboxes selected when I run the SQL UPDATE Code. HOWEVER, the last checkbox is not recognized whenever I run the code, even when I have the code save and requery the subform and underlying table.

1. Works fine when subform is opened as standalone form, (ie, not as subform)
2. Works fine if I save the subform manually first, and then run the update.

3. Does NOT work if I save and requrey subform with code. Last checkbox is still not recognized. I have even tried closing and reopening the subform with code to forcec a record save. Still does not recognize last checkbox. Any ideas why this is happening?

JDTTEK
 
I've had this problem befor...

The way i solved this for my client is that when you goto do what ever you want to after making your changes... use code to select the first record in the subform... (I would make two moves to be safe)...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top