Hi,

I'm having a problem in VFP9. I set a relation between two tables so that
the child should always be tied to the current row in the parent.

I have two grids on a form. One for the parent table and one for the child.

The problem is that when I move to a different record in the parent grid
the child grid doesn't change. The relation doesn't appear to be working.

I know my SET RELATION is correct b/c I can BROWSE the two tables and see
that the relation is working.

What do I have to do to make the relation work on the form?

Thanks, Frank

SV: How to "force" SET RELATION? by Anders

Anders
Mon Jul 04 12:39:31 CDT 2005

Try Childgrid.Refresh()

-Anders


Den 05-07-04 16.57, i artikeln
Xns96896F85B2854adfslur0mdoaur03jadl@207.115.63.158, skrev "Frank Dreyfus"
<fdreyfus@nyw.com>:

> Hi,
>
> I'm having a problem in VFP9. I set a relation between two tables so that
> the child should always be tied to the current row in the parent.
>
> I have two grids on a form. One for the parent table and one for the child.
>
> The problem is that when I move to a different record in the parent grid
> the child grid doesn't change. The relation doesn't appear to be working.
>
> I know my SET RELATION is correct b/c I can BROWSE the two tables and see
> that the relation is working.
>
> What do I have to do to make the relation work on the form?
>
> Thanks, Frank
>
>
>


Re: SV: How to "force" SET RELATION? by man-wai

man-wai
Wed Jul 06 09:09:51 CDT 2005

Anders wrote:
> Try Childgrid.Refresh()

How about this way:

select parent_dbf_alias
go recno()

--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.4.30
^ ^ 10:09pm up 54 days 10:19 load average: 0.61 1.17 1.38

Re: How to "force" SET RELATION? by Ben

Ben
Thu Jul 07 02:25:54 CDT 2005

I would go for a Thisform.Refresh() or a Childgrid.Refresh()