R
romeo.iula
Hi,
I'm writing an application in Access 2003 and am having issues. I've
created a form for a user to enter two date ranges. These ranges are
used in conjunction with another variable to create a filter. This
filter is created and applied in the following manner:
startDate = Me.txtStartDate
endDate = Me.txtEndDate
filter = "[staffid] = " & employeeOfInterest & " AND [date] >= '" &
startDate & "' AND [date] <= '" & endDate & "'"
DoCmd.OpenReport "rptOverTime", acViewPreview, , filter, , startDate &
" to " & endDate
Now my issue is this: it works perfectly fine on my computer yet on
any other computer, the report does not open. I get no errors or
anything. I've checked that all the computers are running the same
versions of Access and VBA, and that they all are using the same
references. I've spent the last few hours trying to figure this out
and i think i really just need a fresh pair of eyes to look at it. any
help will be greatly appreciated. Thanks !!
I'm writing an application in Access 2003 and am having issues. I've
created a form for a user to enter two date ranges. These ranges are
used in conjunction with another variable to create a filter. This
filter is created and applied in the following manner:
startDate = Me.txtStartDate
endDate = Me.txtEndDate
filter = "[staffid] = " & employeeOfInterest & " AND [date] >= '" &
startDate & "' AND [date] <= '" & endDate & "'"
DoCmd.OpenReport "rptOverTime", acViewPreview, , filter, , startDate &
" to " & endDate
Now my issue is this: it works perfectly fine on my computer yet on
any other computer, the report does not open. I get no errors or
anything. I've checked that all the computers are running the same
versions of Access and VBA, and that they all are using the same
references. I've spent the last few hours trying to figure this out
and i think i really just need a fresh pair of eyes to look at it. any
help will be greatly appreciated. Thanks !!