Find record

Danny

Registered User.
Local time
Today, 13:00
Joined
Jul 31, 2002
Messages
157
1. I tried to use a Find Record button to search for a specific field, e.g. LastName, FirstName etc. I have a form (frmHouseHold) and a subform (sfrmApplicants) and I placed the Find Record button in the main form., searching a field in the main form works fine, but not for the subform. I even tried creating a separate find record button inside the subform, but wasn’t successful.

2. And how do I get to print a specific record (current record only) into a report.

Any help will be greatly appreciated,

DD
 
Danny,

1) Need more info on how your form and subform are linked.
Is it Master-Child, or a query?

2) DoCmd.OpenReport "YourReport",,,"[RecordID] = " & Me.RecordID

That will do it if the table's key field is [RecordID] and
the form's control name is RecordID (and it is numeric).

Or, if it is a string:

DoCmd.OpenReport "YourReport",,,"[RecordID] = '" & Me.RecordID & "'"

Wayne
 
find record

Greetings,

1. By looking at the property of the subform:
Link Child Fields = AppID
Link Master Fields = HholdID
I assume that they are linked as a master-child.

Thanks,
DD
 

Users who are viewing this thread

Back
Top Bottom