UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Record changes in subform    
 
   
spencermochadais...
post Feb 23 2005, 03:40 PM
Post #1

New Member
Posts: 10
From: So. Ca.



I have a standard invoice / invoice detail form / subform relationship. On the detail subform, the sku field is enabled to delete the record on the double click event. The code works as expected except that when I return to the subform the last remaining sku replaces the first sku (of the invoice detail). I've traced code to see if there is anything in the double click event that could cause this, and there is not.

Any suggestions?
Go to the top of the page
 
+
Garfieldm842
post Feb 23 2005, 04:03 PM
Post #2

UtterAccess Guru
Posts: 876
From: Lansing, Michigan



have you tried requerying the subform after you delete the record?

To test just press F9 after you delete the record. F9 will requery your form, but you will want to replace this with VBA.

me.requery

HTH
Go to the top of the page
 
+
spencermochadais...
post Feb 23 2005, 04:10 PM
Post #3

New Member
Posts: 10
From: So. Ca.



me.requery is part of the code to delete the record.

I'm in the process of rebuilding the sub form.
Go to the top of the page
 
+
Garfieldm842
post Feb 23 2005, 04:21 PM
Post #4

UtterAccess Guru
Posts: 876
From: Lansing, Michigan



Are you using LinkChild and LinkMaster to make the subform update based on a control from the main form.
Go to the top of the page
 
+
spencermochadais...
post Feb 23 2005, 04:37 PM
Post #5

New Member
Posts: 10
From: So. Ca.



Select statement calls the main form; single table query populates the subform; links are by invoicenumber unique key parent child.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 05:21 AM