G
Guest
Hi!
I have run into a wired situation where an ac97 report shows data from one
machine but no from others, and when I made a change, other machines fetched
the report fine but not the one in question.
I have the solution, depending who is using, the code adjusts itself. It is
ugly, and I would like to find out why it’s acting this way.
First, the mdb file is on a network drive. Users are running directly
against it, and there is no concurrency issue.
Here are the other details:
TxtDate is a text box on a form, it has mm/dd/yy as its format.
User inputs a date then click a button.
The button click event dynamically builds a query. Part of it looks like this:
strSQL = strSQL + " WHERE (((Format([EnteredDate], 'mm/dd/yyyy')) = #" &
txtDate & "#)
And here are some of the results under two scenarios:
Scenario One: every body’s working but not this particular “power userâ€.*
(Note: every body = two win 2k machines and one xp pro v2002 sp2
power user= xp pro v2002 sp2)
data entered on form: 03/31/06
txtDate value seen under break: 3/31/2006 (everyone), 03/31/06 (power user)
srtSQL Format as ‘m/dd/yyyy’
returned data as expected for everyone but “power userâ€.
data entered on form: 12/31/05
txtDate value seen under break: 12/31/2005 (every one), 12/31/05 (power user)
srtSQL Format as ‘m/dd/yyyy’
returned data as expected for everyone but “power userâ€.
However, there is a sub-scenario, if I changed srtSQL Format to ‘mm/dd/yyyy’
instead of ‘m/dd/yyyy’, for every one, only 12/31/05 returns data, 03/31/06
does not, and for power user, nothing returns on either case.
Scenario Two: every body broke but “power user†working.
Changed srtSQL Format to ‘mm/dd/yy’
Same test data entered as above, and same value under break mode as above.
I have also tried
dim dtDate as date
dtDate=CDate(txtDate) then pass dtDate to sql, but nothing has changed.
I hope I have provided enough details.
Thanks!
I have run into a wired situation where an ac97 report shows data from one
machine but no from others, and when I made a change, other machines fetched
the report fine but not the one in question.
I have the solution, depending who is using, the code adjusts itself. It is
ugly, and I would like to find out why it’s acting this way.
First, the mdb file is on a network drive. Users are running directly
against it, and there is no concurrency issue.
Here are the other details:
TxtDate is a text box on a form, it has mm/dd/yy as its format.
User inputs a date then click a button.
The button click event dynamically builds a query. Part of it looks like this:
strSQL = strSQL + " WHERE (((Format([EnteredDate], 'mm/dd/yyyy')) = #" &
txtDate & "#)
And here are some of the results under two scenarios:
Scenario One: every body’s working but not this particular “power userâ€.*
(Note: every body = two win 2k machines and one xp pro v2002 sp2
power user= xp pro v2002 sp2)
data entered on form: 03/31/06
txtDate value seen under break: 3/31/2006 (everyone), 03/31/06 (power user)
srtSQL Format as ‘m/dd/yyyy’
returned data as expected for everyone but “power userâ€.
data entered on form: 12/31/05
txtDate value seen under break: 12/31/2005 (every one), 12/31/05 (power user)
srtSQL Format as ‘m/dd/yyyy’
returned data as expected for everyone but “power userâ€.
However, there is a sub-scenario, if I changed srtSQL Format to ‘mm/dd/yyyy’
instead of ‘m/dd/yyyy’, for every one, only 12/31/05 returns data, 03/31/06
does not, and for power user, nothing returns on either case.
Scenario Two: every body broke but “power user†working.
Changed srtSQL Format to ‘mm/dd/yy’
Same test data entered as above, and same value under break mode as above.
I have also tried
dim dtDate as date
dtDate=CDate(txtDate) then pass dtDate to sql, but nothing has changed.
I hope I have provided enough details.
Thanks!