I have some code on the after update event of a combo, the combo gets a pk value of a group.
Code:
Forms![ftran query subform].RowSource = "SELECT FTRAN.FtranID, FTRAN.[AGENT-DSN], FTRAN.[GROUP-DSN], FTRAN.Date, FTRAN.Amount, FTRAN.[F Type], FTRAN.Cat From FTRAN WHERE (((FTRAN.[GROUP-DSN])=" & Me.CbGrpGroup.Value & "));"
Me.FTRAN_Query_subform.Requery
How do i successfully update the rowsource of the subform from the cb update event so that it only shows records that relate to the pk selected in the combo?. [group-dsn] in the table is the group id.
many regards in advance.
Peter
Code:
Forms![ftran query subform].RowSource = "SELECT FTRAN.FtranID, FTRAN.[AGENT-DSN], FTRAN.[GROUP-DSN], FTRAN.Date, FTRAN.Amount, FTRAN.[F Type], FTRAN.Cat From FTRAN WHERE (((FTRAN.[GROUP-DSN])=" & Me.CbGrpGroup.Value & "));"
Me.FTRAN_Query_subform.Requery
How do i successfully update the rowsource of the subform from the cb update event so that it only shows records that relate to the pk selected in the combo?. [group-dsn] in the table is the group id.
many regards in advance.
Peter