Form leaves table recordset open

V

Vanessa

I have a simple database but a problem I can't figure out. Objects
are:

1) Table A.
2) Form A, used as a front-end tool for data entry for Table A.
3) Button on Form A which drives data to temp tables using queries and
performs further calculations.
4) Report in Print Preview showing finished calculations.

Problem is: after tabbing off the last field in the form, Access is
leaving that recordset open for further entry or editing.
Consequently, none of the queries work because no data is saved in the
table. How do I get Access to close that recordset? I've tried using
gotorecord next, but since the table isn't actually open, that just
causes another error.
 
M

Mark A. Sam

Vanessa,

You aren't giving enough information to answer this. Is this a bound form?
Is the recordsetclone being open? It sounds like you are tabbing to a new
record before you click your button. Open your form in designview. Open
the property sheet for the form. Set the Cycle property to "Current Record"
on the drop down list.

God Bless,

Mark A. Sam
 
V

Vanessa

Vanessa,

You aren't giving enough information to answer this.  Is this a bound form?
Is the recordsetclone being open?   It sounds like you are tabbing to a new
record before you click your button.   Open your form in designview. Open
the property sheet for the form.  Set the Cycle property to "Current Record"
on the drop down list.

God Bless,

Mark A. Sam








- Show quoted text -

Thanks - it's a form bound to a table - really just a front-end data
entry tool. What i'd like to be able to do is to have the user tab off
the last field in the record and then click a calculate button.
however, the form is leaving the record open for editing (ie, it has
the pencil symbol in the corner, as if it's waiting to complete some
input)- - that means that none of the data entered pass through to the
queries and scratch tables that perform the calculations.
 
M

Mark A. Sam

Vanessa,

In the last control (or any data control for that matter) place this line in
the AfterUpdate event of the control:

DoCmd.RunCommand acCmdSaveRecord

This will update the form's underlying table.

God Bless,

Mark A. Sam

Vanessa,

You aren't giving enough information to answer this. Is this a bound form?
Is the recordsetclone being open? It sounds like you are tabbing to a new
record before you click your button. Open your form in designview. Open
the property sheet for the form. Set the Cycle property to "Current
Record"
on the drop down list.

God Bless,

Mark A. Sam








- Show quoted text -

Thanks - it's a form bound to a table - really just a front-end data
entry tool. What i'd like to be able to do is to have the user tab off
the last field in the record and then click a calculate button.
however, the form is leaving the record open for editing (ie, it has
the pencil symbol in the corner, as if it's waiting to complete some
input)- - that means that none of the data entered pass through to the
queries and scratch tables that perform the calculations.
 
V

Vanessa

Vanessa,

In the last control (or any data control for that matter) place this line in
the AfterUpdate event of the control:

DoCmd.RunCommand acCmdSaveRecord

This will update the form's underlying table.

God Bless,

Mark A. Sam









Thanks - it's a form bound to a table - really just a front-end data
entry tool. What i'd like to be able to do is to have the user tab off
the last field in the record and then click a calculate button.
however, the form is leaving the record open for editing (ie, it has
the pencil symbol in the corner, as if it's waiting to complete some
input)- - that means that none of the data entered pass through to the
queries and scratch tables that perform the calculations.- Hide quoted text -

- Show quoted text -

WORKED LIKE A CHARM! thankx!!!!
 

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


Top