Question : Using a hyperlink in a form to open another form with that record's data

I have Tbl_CampaignInfo with CampaignID as the primary key.  I have a very simplistic form that lists each campaign name and I want to be able to click on the Campaign name (as a hyperlink) and it will open the details form I have built for this table but I want it to bring up the record that I clicked and my code is not quite right.  I have it set Hyperlink to Yes and in the On Click Event I have the following
DoCmd.OpenForm ("frm_CampaignDetail",acNormal,,"CampaignID = " & Me.CampaignID,,acDialog,,)

Any assistance would be appreciated.

THanks!

Answer : Using a hyperlink in a form to open another form with that record's data


DoCmd.OpenForm "frm_CampaignDetail",acNormal,,"CampaignID = " & Me.CampaignID,,acDialog
Random Solutions  
 
programming4us programming4us