I have a form in my data base with the below code. I am getting an Compile error "variable not defined" on line Forms!Homepage.Search Liberi = Me.[Person ID]. I am not sure why.
Thank-you CheecoCode:Option Compare Database Option Explicit Private Sub AddChildsRecord_Click() DoCmd.RunCommand acCmdSaveRecord DoCmd.OpenForm "Homepage" Forms!Homepage.Search Liberi = Me.[Person ID] DoCmd.OpenForm "ChildRecord" DoCmd.Close acForm, "AddChild" DoCmd.Close acForm, "Homepage" End Sub