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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unwanted subform requery

Status
Not open for further replies.

joshkay

Technical User
Jun 14, 2001
10
0
0
AU
i have a subform on a main form with no link child or master fields.The problem is whenever the main form is set to allow edits the subform requeries itself and goes to the first record.Editing is activated when i click button on the main form.I have a rough fix for it but not sure if its adequate enough.This is it
**********************************
On Error Resume Next
Dim nbr As Integer
nbr = Form_TransList.TransactionID
Me.AllowEdits = True
Form_TransList.RecordsetClone.FindFirst "TransactionId=" & nbr
Form_TransList.Bookmark = Form_TransList.RecordsetClone.Bookmark
Me.cboOptions.SetFocus
Me.cboOptions.Dropdown
**************************
This gets the record ID before the edits allowed and then goes to it later

I have checked everything possible
Any help gladly accepted

[peace]




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top