I'm trying to write a sql statement. What I am trying to do is run a query when a field loses focus on a form. This field is in a subform. In my sql below, PatientSS# is the name of a TextBox.
DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where PatientSS#=" & PatientSS#)
I also want to know how I would assign the results of the query to an array.
DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where PatientSS#=" & PatientSS#)
I also want to know how I would assign the results of the query to an array.