doulostheou
Registered User.
- Local time
- Today, 03:02
- Joined
- Feb 8, 2002
- Messages
- 314
I have what I hope is an interesting problem. I have an unbound form that houses two subforms, which are linked to each other. The first (we'll call SubA) is a continuous form, showing the set of data that my users need quick access to. The second (SubB) is a single form, which shows details on the selected record from SubA. I have everything in place so that when you navigate to a new record in SubA it pulls up the appropriate record in SubB.
The way I accomplish this is through the link properties in SubB. The child field is set to ClaimsKey (the unique ID) and the Master field is set to SubA!ClaimsKey. I also added an event that fires on the Current event for SubA, which requiries SubB, thus bringing up the correct record whenever the user selects a new record.
Everything works great until you try to filter or sort SubA. At this point, the application breaks down and SubB stays stuck on the first record. I cannot figure out exactly why this is occurring, but I am suspecting it has something to do with the change in the data set that is occurring in SubA is not being mirrored in SubB and for some reason the inconsistency breaks the code.
My initial solution was to mirror the change in SortOrder and/or Filtering in SubB. However, I cannot find a form event that fires when the SortOrder or Filter options change in SubA. Any thoughts?
The way I accomplish this is through the link properties in SubB. The child field is set to ClaimsKey (the unique ID) and the Master field is set to SubA!ClaimsKey. I also added an event that fires on the Current event for SubA, which requiries SubB, thus bringing up the correct record whenever the user selects a new record.
Everything works great until you try to filter or sort SubA. At this point, the application breaks down and SubB stays stuck on the first record. I cannot figure out exactly why this is occurring, but I am suspecting it has something to do with the change in the data set that is occurring in SubA is not being mirrored in SubB and for some reason the inconsistency breaks the code.
My initial solution was to mirror the change in SortOrder and/or Filtering in SubB. However, I cannot find a form event that fires when the SortOrder or Filter options change in SubA. Any thoughts?