Afternoon all,
I'm not positive if this is a form question or a query question.
I was assisted with a query the other day (thanks again), and everything seems to work well from my perspective until I'm on the form I've created.
The query should listing in the combobox the appointment times that have yet to be booked for that day. Which it does. Though when I change the date field on the form to tomorrows date, the 2:00 PM appointment isn't listed in the dropdown because it's been booked the previous day.
My AppointmentDate field is a data type of Date/Time with a default value of =Date() and the Show Date Picker: For Dates. Changing the date here causes no effect on the cboAvailability dropdown.
I've tried adding a requery on change and after update to the AppointmentDate form field but I'm still new to this. Perhaps a relationship issue?
Here's the Appointment time query I'm working with in case that helps a bit.
Cheers,
k3ll1n
I'm not positive if this is a form question or a query question.
I was assisted with a query the other day (thanks again), and everything seems to work well from my perspective until I'm on the form I've created.
The query should listing in the combobox the appointment times that have yet to be booked for that day. Which it does. Though when I change the date field on the form to tomorrows date, the 2:00 PM appointment isn't listed in the dropdown because it's been booked the previous day.
My AppointmentDate field is a data type of Date/Time with a default value of =Date() and the Show Date Picker: For Dates. Changing the date here causes no effect on the cboAvailability dropdown.
I've tried adding a requery on change and after update to the AppointmentDate form field but I'm still new to this. Perhaps a relationship issue?
Here's the Appointment time query I'm working with in case that helps a bit.
Code:
SELECT DISTINCT tblAppointmentHoursDaily.Hours
FROM tblAppointmentHoursDaily LEFT JOIN tblAppointments ON tblAppointmentHoursDaily.[Hours] = tblAppointments.AppointmentTime
WHERE (((tblAppointments.AppointmentDate)<>Date() Or (tblAppointments.AppointmentDate) Is Null) AND ((tblAppointmentHoursDaily.Show)=True));
Cheers,
k3ll1n