Okiguy1955
Programmer
I am new to a VBA and only a little exposure to Access 2010. I’ve been battling a problem for a few days. I have a mainform with 2 subforms. Data in subform 2 is filtered to the record selected in subform1. I have no problems with data between the mainform and subform1. I am using Access 2003 with a SQL Server database.
The particular problem I am having is when I click in subform2 to add/edit data, the last record I touched in subform1 also goes into edit mode. I’ve tried googleing this various ways but it is difficult to describe in a search.
I’ve tried setting access properties between subform1 and subform2 for 'on enter', GotFocus/Lost Focus, On Load/UnLoad, update/insert. Added VBA code setting: setfocus, doevents, and requery, in various places, but nothing seem to work. No matter what I add/change subform1 or subform2 , it goes back to edit mode in both subforms.
I have no one at work who can assist. I really need someone to point me in the right direction.
The particular problem I am having is when I click in subform2 to add/edit data, the last record I touched in subform1 also goes into edit mode. I’ve tried googleing this various ways but it is difficult to describe in a search.
I’ve tried setting access properties between subform1 and subform2 for 'on enter', GotFocus/Lost Focus, On Load/UnLoad, update/insert. Added VBA code setting: setfocus, doevents, and requery, in various places, but nothing seem to work. No matter what I add/change subform1 or subform2 , it goes back to edit mode in both subforms.
I have no one at work who can assist. I really need someone to point me in the right direction.