Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform controls not clearing when form advanced

Status
Not open for further replies.

BobJacksonNCI

Technical User
Mar 11, 2003
725
US
Hi!

I'm using Access 2000 with SQL 7 to create an ADP.

Have 2 SQL tables related in a database diagram.

Created form + subform to enter/retrieve records from the tables. Works fine when entering records where none exist and for editing existing records. (For user friendliness, I want them to be able to add/edit/view using the same form/subform.)

BUT, when advanced to a new record on the form, the subform still shows the records from the previous form.

I have Link Master Fields and Link Child Fields properties set. Have On Current event used to determine if the user is working on a new record or viewing/editing an existing record. Tried adding subform.dataentry = true, Access didn't like that.

Assistance would be GREATLY appreciated!
 
Uh,

There's a chance I don't know what I'm doing...

(Be gentle, please)

Commenting out the code below which in in the
form's On Current event may have corrected the problem.

Dim rs As Object
Set rs = Me.Recordset.Clone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top