Ran both with same values in the form and the SQL query retrieves a row and the VBA code doesnt (DCOUNT)
Ran them both at same time ???? very confused
Also later changed field Date to booking_date and still the same results!
_______________ __
Thanks for the help & advice, greatly appreciated ~Rob
Ran them both at same time ???? very confused
Also later changed field Date to booking_date and still the same results!
Code:
SELECT Booking.* FROM Booking WHERE (((Booking.Date)=[Forms]![Booking]![DTPicker8]) AND ((Booking.Facility_ID)=[Forms]![Booking]![comboFacility]) AND ((Booking.Area_ID)=[Forms]![Booking]![comboArea]));
Code:
doublebooking = DCount("reference_number", "booking", "area_ID=" & Forms!Booking!comboArea & " AND Facility_ID=" & Forms!Booking!combofacility & _" AND date=#" & Forms!Booking!DTPicker8 & "#")
Thanks for the help & advice, greatly appreciated ~Rob
Comment