This one looks simple enough, but I've been struggling with it all day and just can't get it ...
I have a form in which the user can select a record from an underlying table, by using combo box with the wizard's "Find a record on my form based on the value ...". It generates the SearchForRecord macro and locates the required record OK. So far so good.
Now all I want to do is set the value of a Yes/No field in that record to Yes. I have a command button (but have tried toggle button and text box controls) which should set the field then close the form and open a report. The close form and open report work OK, but how to set the field value?
Peter
I have a form in which the user can select a record from an underlying table, by using combo box with the wizard's "Find a record on my form based on the value ...". It generates the SearchForRecord macro and locates the required record OK. So far so good.
Now all I want to do is set the value of a Yes/No field in that record to Yes. I have a command button (but have tried toggle button and text box controls) which should set the field then close the form and open a report. The close form and open report work OK, but how to set the field value?
Peter
Comment