I am trying to both capture values and edit the values of a record in VBA.
I have a query that counts all records where field1="Y" and field2="X". I have a button on the form that allows me to "Sell" on of the iems from the above query.
What I don't know how to do is code, Find the first of these records, copy each field value to a variable (for use elsewhere) then change the value of field1 from "Y" to "N" so that it will not be counted the next time the query runs and thus cannot be oversold.
Again, I want to do all of this in code not with any form values.
Thanks,
Craig
I have a query that counts all records where field1="Y" and field2="X". I have a button on the form that allows me to "Sell" on of the iems from the above query.
What I don't know how to do is code, Find the first of these records, copy each field value to a variable (for use elsewhere) then change the value of field1 from "Y" to "N" so that it will not be counted the next time the query runs and thus cannot be oversold.
Again, I want to do all of this in code not with any form values.
Thanks,
Craig