(What is the "." before the Field Name?)
Try:
DoCmd.OpenForm stDocName, , , "DateLogged Between " & "#" & CStr(CDate(StartDate)) & "#" & " AND " & "#" & CStr(CDate(EndDate)) & "#"
Make sure that your criteria evaluates to something like this, ...which works fine form me:
DoCmd.OpenForm "frmOrders", , , "OrderDate Between " & "#1/1/1995#" & " AND " & "#1/1/1996#"
;-)
JeffCoachman