Nick,
Make sure that the ListBox either has the RowSource available or is set to "" (empty) when instantiated.
Renoir
>I have a form that contains a listbox and several textbox. When I run my program I keep getting an error saying:
>
>"field" phrase not found".
>
> I can't seem to find the error. Has anyone else run into this problem. It seem to choke right at the .refresh().
>
>
>with thisform
>requery('lv_loc')
>.hldcnt = reccount('lv_loc')
>do case
> case .hldcnt > 0
> .hide_all
> .refresh()
>
>
>hideall method looks like this
>
>with thisform
> .txtkn.visible = .f.
> .txtkn2.visible = .f.
> .txtK_key.visible = .f.
> .txt2K_key.visible = .f.
> .lbl2.visible = .f.
> .lbl3.visible = .f.
> .txtkn.value = ''
> .txtkn2.value = ''
> .cmdedit.enabled = .f.
> .cmdadd.enabled = .t.
> .cmddel.enabled = .f.
>endwith
>
>
>
>thanks
>Nick Patel