lrumd
You may get errors if tyring to embed a subform within a subform. My suggestion -- use a Tab form
Main form is above the tab form, and used for patients.
On one tab, have appointments. This should be fairly easy. You can use either a continuous or single form.
The second tab is used for orders, and depends on your database design. If your order form includes the patient ID, it should be fairly easy. If it only uses the appointment reference, the solution is more complex. Develop a query to retrieve the patient + appointment + order.
Okay, now your next issue. When you state that a patient needs to have an appointment before they can have an order, more information is required on your database design.
Without getting into too much detail...
tblPatient
patient_id
name
contact_info...
tblAppointment
appoint_id
patient_id
date_time_room ...
For the order, two possibilities...
1) tblOrder
order_id
patient_id
product_id...
or
2) tblOrder
order_id
patient_id
appointment_id
product_id
For the first scenario, you have to add code to on current event and load event for the subform to make it invisible and reset the focus to the patient part of the form....
pseudo code would be
how many appoinments does patient have
if zero then make the order form inisble, etc.
For the second scenario, make the appoinment field not accept nulls and Access will do the work for you.
Good luck
Richard