I have a textbox called patientid and a command button on form1. In the onclick command of the command button I open form2 which also ahas a textbox called patientid. Prior to opening form2 a query is run on the table of which form2 is based to see if there is a record equal to the value of patientid on form1. The query runs great. I then have an if..then statement which causes form2 to open to a new record if the query result is null or to the recor equal to the patientid of form1. How do I get form2 to open to this query result if it isn't null? I tried acgoto, "Queryname" in the gotorecord line without success.
Thanks in advance.
Thanks in advance.