i have a form with two dates and a command button to execute the following dcount
it does not give me the same results as whenj i run a query directly
is my syntax wrong
x = DCount("roombookings.status", "roombookings", "(RoomBookings.Status)='B'AND ((RoomBookings.Appdate) Between #" & [Forms]![frmallrecords]![sd] & "# And #" & [Forms]![frmallrecords]![td] & "#)")
it does not give me the same results as whenj i run a query directly
is my syntax wrong
x = DCount("roombookings.status", "roombookings", "(RoomBookings.Status)='B'AND ((RoomBookings.Appdate) Between #" & [Forms]![frmallrecords]![sd] & "# And #" & [Forms]![frmallrecords]![td] & "#)")