MrMajik
IS-IT--Management
- Apr 2, 2002
- 267
I have two forms and will call them formA and formB. formA has a button that, when clicked, closes formA and opens formB:
DoCmd.Close acForm, "formA"
DoCmd.OpenForm "formB"
formB is to enter data for a new primary field. When formB is done and the user clicks a "Create" button a table is opened and the data is entered into it. Then the table is closed, formB is closed and formA is opened.
DoCmd.OpenForm "formA"
DoCmd.Close acForm, "formB"
Now the problem: formA does not display the data just added to the table. However, when doing a record count the recordcount value is incremented by one so it sees it but does not display it. It displays empty fields for the last record.
If I close formA and re-open it the record data appears.
Any ideas what is causing the record count to be accurate but not displaying the record data?
Thank you.
DoCmd.Close acForm, "formA"
DoCmd.OpenForm "formB"
formB is to enter data for a new primary field. When formB is done and the user clicks a "Create" button a table is opened and the data is entered into it. Then the table is closed, formB is closed and formA is opened.
DoCmd.OpenForm "formA"
DoCmd.Close acForm, "formB"
Now the problem: formA does not display the data just added to the table. However, when doing a record count the recordcount value is incremented by one so it sees it but does not display it. It displays empty fields for the last record.
If I close formA and re-open it the record data appears.
Any ideas what is causing the record count to be accurate but not displaying the record data?
Thank you.