My Assistant
![]() ![]() |
|
|
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? |
|
|
|
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 |
|
|
|
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. |
|
|
|
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.
|
|
|
|
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 Top · Lo-Fi Version | Time is now: 24th May 2013 - 05:21 AM |