Hi
i'm trying to work out the syntax to open a form with a filter
I have 2 tables that are linked with a 1 to many relationship.
STAFF
STAFFID is autonumber (Primary Key)
NameOfStaff is Text
UserID is Text
STATS
STATID is autonumber (Primary Key)
StaffID is a foreign key to the primary key in table STAFF
i want to use docmd.openform to open a form with just 1 persons stats.
For example somthing like
docmd.openform ("STATS",,***WHERE userID = "APERSON")
but i can't get the syntax right. All i can do is filter on fields that are not linked to another table. which is easy.
i'm trying to work out the syntax to open a form with a filter
I have 2 tables that are linked with a 1 to many relationship.
STAFF
STAFFID is autonumber (Primary Key)
NameOfStaff is Text
UserID is Text
STATS
STATID is autonumber (Primary Key)
StaffID is a foreign key to the primary key in table STAFF
i want to use docmd.openform to open a form with just 1 persons stats.
For example somthing like
docmd.openform ("STATS",,***WHERE userID = "APERSON")
but i can't get the syntax right. All i can do is filter on fields that are not linked to another table. which is easy.