AnalystDBA
Programmer
I have an Access report based on criteria entered by the user.
The problem I have may not necessarily be Access related.
When I run the report on my machine the report opens fine with the correct information.
When someone else tries to run the report on their machine the report does not return the correct information.
The dates in the report are not within the date range specified by the user.
The following lines of code opens the report
the variables 'stdate' and 'eddate' are pulled from controls on a form
DoCmd.OpenReport stDocName, acPreview, , "last_del_date between #" & stdate & "# AND #" & eddate & "# and territory_code like '" & SelTerr & "' AND maingrp_code like '" & SelMain & "' AND prodgrp_code like '" & SelProd & "' and ware_code like '" & SelWare & "' and ord_ind like '" & SelOrd & "' and status_ind like '" & SelStat & "' and part_code like '" & SelPart & "'"
Heres the catch, When I log onto the other users machine using my logon the report works fine.
If the other user tries to log onto my machine using their logon the report fails.
This has got me stuffed.
Can anyone help?
Cheers
AnalystDBA
The problem I have may not necessarily be Access related.
When I run the report on my machine the report opens fine with the correct information.
When someone else tries to run the report on their machine the report does not return the correct information.
The dates in the report are not within the date range specified by the user.
The following lines of code opens the report
the variables 'stdate' and 'eddate' are pulled from controls on a form
DoCmd.OpenReport stDocName, acPreview, , "last_del_date between #" & stdate & "# AND #" & eddate & "# and territory_code like '" & SelTerr & "' AND maingrp_code like '" & SelMain & "' AND prodgrp_code like '" & SelProd & "' and ware_code like '" & SelWare & "' and ord_ind like '" & SelOrd & "' and status_ind like '" & SelStat & "' and part_code like '" & SelPart & "'"
Heres the catch, When I log onto the other users machine using my logon the report works fine.
If the other user tries to log onto my machine using their logon the report fails.
This has got me stuffed.
Can anyone help?
Cheers
AnalystDBA