link a search form to data entry form with specific record

lovedieer

Registered User.
Local time
Yesterday, 21:46
Joined
Nov 4, 2009
Messages
28
I have a search form (continue) contain basic information which allow people to filter to a specific record. I have another data entry form (single form) has all the detailed information. These two forms have the same data source. the PK for the table is ParticipantID

I add a macro (I do not much VBA codes) to participantID for the search form and hopefully it can open the data entry form for that participant if I click the ParticipantID.

the macro are: open form and I use where condition :
Forms![FrmSearch]![ParticipantID] = forms![FrmDataEntry]![ParticipantID]. however, it open a new record in the data entry form?

Can somebody tell me what's wrong with it?
Or write an code for me?
Thanks.
 
Is the data entry form's Data Entry property set to Yes? If so, you may want to change that or see if setting the datamode argument of your macro to Edit will override it.
 
Data entry property is set to "No" for the data entry form
The data mode for the macro is Edit.
 
It works perfect now!.

I add your website as my favorite.

Thanks.
 
Excellent, glad we got it sorted out. Hopefully my site proves useful to you.
 

Users who are viewing this thread

Back
Top Bottom