S
SherryScrapDog
Hi, I know the answer must be here somewhere but I have not been successful
with what I have tried so far. I have 3 Tables:
Master: [Id], [Last], [First]
Detail: [Id], [MasterId], [BookId] (multiple records per Master & Book)
Book: [Id]
I have a form with a command button where I can enter the last name and find
all of the records with the matching last name. This works fine.
I would also like to be able to have a command button where I can enter the
last name and the first name and find only those records. There is only one
Master record with the same Last Name and First name, then multiple Detail
records.
Here is my latest attempt and I get a compile error:
stLinkCriteria = "[Last]= " & Chr(34) & Me![EnterLast] & Chr(34) & " AND
"[First]= " Chr(34) & Me![EnerFirst] & Chr(34) &"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Any help would be so appreciated!! Thanks, Sherry
with what I have tried so far. I have 3 Tables:
Master: [Id], [Last], [First]
Detail: [Id], [MasterId], [BookId] (multiple records per Master & Book)
Book: [Id]
I have a form with a command button where I can enter the last name and find
all of the records with the matching last name. This works fine.
I would also like to be able to have a command button where I can enter the
last name and the first name and find only those records. There is only one
Master record with the same Last Name and First name, then multiple Detail
records.
Here is my latest attempt and I get a compile error:
stLinkCriteria = "[Last]= " & Chr(34) & Me![EnterLast] & Chr(34) & " AND
"[First]= " Chr(34) & Me![EnerFirst] & Chr(34) &"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Any help would be so appreciated!! Thanks, Sherry