I have a main form whose recordsource is a table that holds transaction data.
the pk to filter is taken from another open form and i want to filter on the group that was selected with the group number being a fk in the ftran table as a number.
the open event has the following code:
Dim GroupID As Integer
GroupID = Forms![group main screen form]!GroupID
Me.Filter = "group-DSN = 'GroupID'"
Me.FilterOn = True
it insists on asking for parameters for group and then asks for DSN
group-dsn is the field in the ftran table.
help would be much appreciated
regards
the pk to filter is taken from another open form and i want to filter on the group that was selected with the group number being a fk in the ftran table as a number.
the open event has the following code:
Dim GroupID As Integer
GroupID = Forms![group main screen form]!GroupID
Me.Filter = "group-DSN = 'GroupID'"
Me.FilterOn = True
it insists on asking for parameters for group and then asks for DSN
group-dsn is the field in the ftran table.
help would be much appreciated
regards