hi guys i have a problem with my crystal reports selection formula, i have two forms form1 and form 2. in form 1 i have combobox where you can select the values to appear in form2 crystal report viewer but when i run form1 and select an item from dropdownlist visual studio throws an error can any one help please

this my selection formula

"{StaffInformation.Specialty} LIKE '" & Form1.combobox1.text & "'"

sorry the code is

me.crystalreportviewer1.selectionformula="{StaffInformation.Specialty} LIKE '" & Form1.combobox1.text & "'"
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.