cath_hopes
Registered User.
- Local time
- Today, 14:37
- Joined
- Oct 17, 2007
- Messages
- 52
Hi there!
My form is based on a Booking table. This form has a subform based on a Booking Status table. The booking table has a one to many relationship with the Booking Status table.
I've coded a 'Close' button on my main form which asks the user whether they wish to save changes or not. If the answer is 'No' and the main form is a new record then Forms![Booking Form].Undo works fine and removes any new Booking and associated Booking Status records. If the main form is at an existing record then it undoes any main form changes but not any booking status subform changes.
On the main form code I've tried Me.Booking_Status.Form.Undo and Forms![Booking StatusForm].Undo but it doesn't seem to do anything.
Can anyone suggest any other code that might work or where I'm going wrong?
Thank you heaps in advance!
Catherine
My form is based on a Booking table. This form has a subform based on a Booking Status table. The booking table has a one to many relationship with the Booking Status table.
I've coded a 'Close' button on my main form which asks the user whether they wish to save changes or not. If the answer is 'No' and the main form is a new record then Forms![Booking Form].Undo works fine and removes any new Booking and associated Booking Status records. If the main form is at an existing record then it undoes any main form changes but not any booking status subform changes.
On the main form code I've tried Me.Booking_Status.Form.Undo and Forms![Booking StatusForm].Undo but it doesn't seem to do anything.
Can anyone suggest any other code that might work or where I'm going wrong?
Thank you heaps in advance!
Catherine