>Ok thanks Vladimir - I must have made it sound like the combo was in a grid column but it's not - it is just on the form... the grid and combo are also on a pageframe which adds a little to the problem - I am not sure it's refreshing correctly ever though I have tried thisform.pageframe.page3.cmbCompanies.refresh(), thisform.pageframe.refresh(), and thisform.refresh()
>
>I have done this also... thisform.pageframe.page3.cmbCompanies.value = alltrim(v_companynames.co_name) and still I have nothing showing in the combo...
>Thanks again - any other advice gratefully received!
Suppose, your grid has View1 as RecordSource. View1.CompanyName is the control source for one column in the grid (I would assume CompanyID in the table and not the whole Company Name, though).
So, your combobox.ControlSource = View1.CompanyName and in Grid.AfterRowColChange you should refresh your combo (if navigating rows, not columns).
If you actually have CompanyID in your view, change combo.ControlSource to View1.CompanyID
If it's not broken, fix it until it is.
My Blog