tabs in a form

  • Thread starter Dimitris Nikolakakis
  • Start date
D

Dimitris Nikolakakis

I have a form FOrders and a TABctrl with two subforms in two tab pages.

The two subforms take data from same table (orderstx)

In the first subform I input some records. When I click on the second tab
page I do not see the new records that I have created. I must close and
reopen the form.

I have tried the requery or refresh data but no result

Thanks in advance
Dimitris
 
R

Rick Brandt

Dimitris said:
I have a form FOrders and a TABctrl with two subforms in two tab
pages.

The two subforms take data from same table (orderstx)

In the first subform I input some records. When I click on the second
tab page I do not see the new records that I have created. I must
close and reopen the form.

I have tried the requery or refresh data but no result

Normally having two forms both opened and bound to the same table will lead
to editing conflicts. Also it is completely normal that when you first open
a form it will only have access to the records that existed at the time it
was opened. If additional records are added after the form is opened it
must be requeried for those records to appear in the form. To that end you
could issue a Requery command in the Change event of the TabControl.

I'm curious though why you even have two subforms if they are both bound to
the same table.
 

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

Similar Threads

Refresh Subform query 2
requery in subform 1
Expression is typed...... 2
Requery subform 1
Adding Multiple Subforms 3
Tab stops 3
tab order skipping some fields 1
Continuous Form or Datasheet Subform Setvalue 1

Top