cath_hopes
Registered User.
- Local time
- Today, 16:02
- Joined
- Oct 17, 2007
- Messages
- 52
hi there!
I have a subform imbedded in a main form. The main form has a one to many relationship with the details in the subform. The subform's properties are set to Single Form rather than Continuous Form.
The main form is a Booking Form and the subform is a booking status form with the possibility of several booking status records attached to one booking record.
I have a 'Save' button on the main form which has the following code attached to it:
Me.Booking_last_updated_at.Value = Date + Time
I would like to add some code to simultaneously update a date field on the subform record that is currently displayed. I have tried the following code:
Forms![Booking Status].[Booking Status Date].Value = Date + Time
but when I tested this I got the runtime 2450 error message that Microsoft Office Access can't find the form 'Booking Status' referred to in the macro or Visual Basic code.
Any help with this would be much appreciated!
I have a subform imbedded in a main form. The main form has a one to many relationship with the details in the subform. The subform's properties are set to Single Form rather than Continuous Form.
The main form is a Booking Form and the subform is a booking status form with the possibility of several booking status records attached to one booking record.
I have a 'Save' button on the main form which has the following code attached to it:
Me.Booking_last_updated_at.Value = Date + Time
I would like to add some code to simultaneously update a date field on the subform record that is currently displayed. I have tried the following code:
Forms![Booking Status].[Booking Status Date].Value = Date + Time
but when I tested this I got the runtime 2450 error message that Microsoft Office Access can't find the form 'Booking Status' referred to in the macro or Visual Basic code.
Any help with this would be much appreciated!