Link to home
Start Free TrialLog in
Avatar of Johnni I
Johnni I

asked on

Need to filter query and have subform updatable

Hello All

I am having issues with a subform add-on that I have been working on.  

A few years ago I built a Presenter/Speaker processing database that tracks conference presenters and presentations. On the main form, you select the presenter and all their sessions will be listed giving times, room, and date as well as other things.

On the subform (frmRank), I have  a list of all presenters in the same session based on the Combo_ID (cascading Combos). I am using theDBGuys sort code  to sort the presenters in the order they will present during their session. Selecting the drop down number in the combo box moves the record to the desired position.  This is working well. I have also added Allan Brown's ConcatRelated() code where in the event that 2 presenters are co-presenting the same presentation, they can both be listed in the same field. The check box will assign the current presenter to the one selected in the presenter list .

 I have tried to SELECT DISTINCT in qryRank and combinations of other queries but produces an un-updatable subform and consequently a sort order that no longer works although I can still add records that get updated by the main form.  

I am so close, but not sure of my next approach to produce a form that groups and is updatable . Here is the sql from the query

SELECT tblPresentationMain.Combo_ID, tblTitle.SortOrder, tblTitle.ID, [Last Name] & ", " & [First Name] AS FullName, ConcatRelated("FullName","qryRank","tblTitle.ID = " & [tblTitle.ID]) AS FullName_CC
FROM tblTitle INNER JOIN (tblSPK INNER JOIN tblPresentationMain ON tblSPK.ID = tblPresentationMain.SPK_ID) ON tblTitle.ID = tblPresentationMain.Title_ID
ORDER BY tblPresentationMain.Combo_ID, tblTitle.SortOrder;

Open in new window


Cheers
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Johnni I
Johnni I

ASKER

I have resolved this issue by having a continuous form with ranking and grouping individual records to share same Title_ID.  These groups then share the same sort order that can be assigned to new sort order positions.  Each subform record  has a button to allocate the current main form record to subform record that will become a co-presenter. The button can also revert grouped records to single entry with a new sort order following the last Max().

Now   I can manipulate the data entry and organize data to what ever configuration (namely order in which presenters (Speakers) will present in a session, and whether the presentation has a co-presenter/s.  I can concatenate the names when sharing the same presentation title in a presentation form.