J
Jerry Crosby
I have a form/subform set up with 4 buttons whose on-click property sets the
source for the subform. For example, the on click code for one is:
Me.frmReservationInfo.SourceObject = "frmReservation-Past"
What I want to be able to do now is to move the focus to that subform so I
can analyze a particular field. If it meets certain criteria, it will show
the form as requested (i.e., the SourceObject will remain the same).
However, if the field doesn't meet the criteria, the SourceObject will be a
different form.
How do I do that?
(For the curious, the form is a reservation-type form. The main form
contains the general data about the person. Clicking the button will fill
the subform with the past reservation records for that person (arrival date,
departure date, rooms they rented, number of guests, etc). However, if they
have no past reservations, I'd like it to fill the subform with a different
form that says something like, "This person has no current or pending
reservations." The analysis is made on the arrival date field.)
Jerry
source for the subform. For example, the on click code for one is:
Me.frmReservationInfo.SourceObject = "frmReservation-Past"
What I want to be able to do now is to move the focus to that subform so I
can analyze a particular field. If it meets certain criteria, it will show
the form as requested (i.e., the SourceObject will remain the same).
However, if the field doesn't meet the criteria, the SourceObject will be a
different form.
How do I do that?
(For the curious, the form is a reservation-type form. The main form
contains the general data about the person. Clicking the button will fill
the subform with the past reservation records for that person (arrival date,
departure date, rooms they rented, number of guests, etc). However, if they
have no past reservations, I'd like it to fill the subform with a different
form that says something like, "This person has no current or pending
reservations." The analysis is made on the arrival date field.)
Jerry