Diane,

 

To do this I think both of your forms will have to be MDI forms - that is,
when you want to call it you do:

 

EDIT USING FORM2 MDI AS aliasname

 

(The FORM1 form will have been likewise started with the 'MDI AS .')

 

Now, in your add record eep after the insert and the PROPERTY TABLE SUBTABLE
'REFRESH', try inserting PROPERTY  form1aliasname|dbgridcomponentid REFRESH
'TRUE'.

 

I'm not certain that I have the syntax for that last property command
correct, but if you have Razzak's examples of MDI forms, you can find the
proper syntax there.

 

Emmitt Dove

Manager, Converting Applications Development

Evergreen Packaging, Inc.

[email protected]

(203) 214-5683 m

(203) 643-8022 o

(203) 643-8086 f

[email protected]

 

From: [email protected] [mailto:[email protected]] On Behalf Of
[email protected]
Sent: Friday, January 23, 2009 3:53 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Displaying New Rows in Form1 that are Added in Form2

 

Hi, all,

 

I have a subtable called "SUBTABLE" on FORM1 that is displayed as a dbGrid.

 

I have a button next to the dbGrid that, when clicked, pops up another form,
FORM2.  FORM2 lets the user enter one row of data into SUBTABLE through
variable edit fields (which are error-checked and processed in other ways
that I can't do in a dbGrid).

 

After one row of data is entered on FORM2, the user clicks a button "ADD
RECORD." In the "ADD RECORD" On Click EEP, the data in the variable edit
fields are then inserted into table "SUBTABLE" on FORM1.  If the user wants
to add another row on FORM2, the variable fields are cleared so that the
next record can be added on FORM2.

 

What I want to do is to have each row that is added through FORM2 into table
SUBTABLE be displayed on FORM1 right after it is inserted into the table,
through FORM2's On Click EEP for the ADD RECORD button.  

 

In other words, if a person enters more than one record on FORM2, I want
each new record to be displayed in the FORM1 dbGrid right after it has been
entered and saved in FORM2 without having to close FORM2.

 

In FORM2's "ADD RECORD" On Click EEP, I've tried setting the focus to FORM1
and then refreshing table SUBTABLE using PROPERTY TABLE SUBTABLE 'REFRESH';
but that doesn't seem to work.  Does anyone know how to do this?  I think I
am overlooking something simple.

 

Diane DeMers

Sugarloaf Software

 

  _____  

A Good Credit Score is 700 or Above. See
<http://pr.atwola.com/promoclk/100000075x1215855013x1201028747/aol?redir=htt
p://www.freecreditreport.com/pm/default.aspx?sc=668072%26hmpgID=62%26bcd=Dec
emailfooterNO62>  yours in just 2 easy steps!

Reply via email to