I have a form with a combobox that is linked to a box number I want to select a box value and then have that record displayed. I cant get the gotorecord on the after update working on that combobox it that the rightway to go about this?
Here's a sample that shows how I do this. The form opens empty. You choose a value from the combo and the form is requeried to show the selected record. It takes one line of code and a query with a where clause.
In either case the Str function shouldn't be necessary. The Replace function is added to escape single quotes. If you don't have that and there is a single quote in the combobox value you will get syntax errors.