Need to hide previous Form entries

S

SeanH77

Once the form is completed and they click or move to a new entry, I need to
hide the previous entry. The form is set to Data Entry: Yes, but that only
hides records from a previous session, we don't want to have to close the
Form and re-open it after each record entry. Any/all help is appreciated!
Sean
 
A

Allen Browne

What happens if you requery the form in its AfterInsert event?

1. Set the form's AfterInsert property to:
[Event Procedure]

2. Click the Build button (...) beside this.
Access opens the code window.

3. Between the "Private Sub..." and "End Sub" lines, enter:
Me.Requery

Haven't tested, but would expect that to work.
 
S

SeanH77

That worked!
Thanks Allen!

Allen Browne said:
What happens if you requery the form in its AfterInsert event?

1. Set the form's AfterInsert property to:
[Event Procedure]

2. Click the Build button (...) beside this.
Access opens the code window.

3. Between the "Private Sub..." and "End Sub" lines, enter:
Me.Requery

Haven't tested, but would expect that to work.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

SeanH77 said:
Once the form is completed and they click or move to a new entry, I need
to
hide the previous entry. The form is set to Data Entry: Yes, but that
only
hides records from a previous session, we don't want to have to close the
Form and re-open it after each record entry. Any/all help is appreciated!
Sean
 

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

Top