redraw a list box on another form

  • Thread starter Thread starter Peter Morris
  • Start date Start date
P

Peter Morris

Here's the situation.

I have a form MAIN_FORM which displays a list box LST_MYLIST.
The box displays data from table MY_TABLE.

If I click on a button I display another form FRM_NEW_ENTRY. On this
form I can enter data. When I click the "save" button on my form I
want to run code that does the following:

1) Writes the new data to MY_TABLE
2) redraws/ refreshes LST_MYLIST so it shows the new row
3) closes FRM_NEW_ENTRY

No 1 & 3 I can do, but what is the syntax for redrawing the list box?

TIA
 
Peter said:
Here's the situation.

I have a form MAIN_FORM which displays a list box LST_MYLIST.
The box displays data from table MY_TABLE.

If I click on a button I display another form FRM_NEW_ENTRY. On this
form I can enter data. When I click the "save" button on my form I
want to run code that does the following:

1) Writes the new data to MY_TABLE
2) redraws/ refreshes LST_MYLIST so it shows the new row
3) closes FRM_NEW_ENTRY

No 1 & 3 I can do, but what is the syntax for redrawing the list box?


Forms!MAIN_FORM.LST_MYLIST.Requery
 
Peter Morris said:
Here's the situation.

I have a form MAIN_FORM which displays a list box LST_MYLIST.
The box displays data from table MY_TABLE.

If I click on a button I display another form FRM_NEW_ENTRY. On this
form I can enter data. When I click the "save" button on my form I
want to run code that does the following:

1) Writes the new data to MY_TABLE
2) redraws/ refreshes LST_MYLIST so it shows the new row
3) closes FRM_NEW_ENTRY

No 1 & 3 I can do, but what is the syntax for redrawing the list box?

TIA

Thanks for your help on this.

Another one, same as above except this time its not a list box but
a subform that I wish to update. Call it SUB_MYSUBFORM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top