Re: different results of query from different workstations



On Tue, 19 Feb 2008 17:09:01 -0800, Durian62
<Durian62@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

My multi-user database is on a server and I experience different query
results depending on from which workstation the query is run.

The query converts a txt-field into a date format with the following
command: format([left([variable xyz],16,?General Date?) with a criteria of
?>Now()-26/24?.

If I remember correctly the problem is linked to differences in the setup of
Access on each single machine (possibly add-ins?) ? who can help?

General Date will have variable appearance depending on the computer's
Regional date/time settings. What are the typical contents of [variable xyz]?
I suspect that a DateSerial and/or TimeSerial function will be a better choice
than Format().

Note that Format will return a text string, not a Date/Time value, and that
the Now() expression might better be

= DateAdd("h", -26, Now())

if your intention is to find all values more recent than 26 hours ago. If
that's not your intention... what is?
--
John W. Vinson [MVP]
.



Relevant Pages

  • Re: Importing dates formatted "yyyy, mm, dd".
    ... You then can use a query (append or update, ... depending upon what you want to do) to convert to a date value (assuming ... that all digits will always be in the "yyyy, mm, dd" format): ...
    (microsoft.public.access.externaldata)
  • Re: [PHP] Date
    ... If you are pulling $start_date from a database, depending on the format you ... Connect and query your database, get the result and assign it to a variable. ...
    (php.general)
  • Re: Formattng time question
    ... the database is time and the query works. ... The excel field is formatted as ... time and displays 2:00 PM or 14:00 depending on the format. ...
    (microsoft.public.excel.misc)
  • Re: formatting a calculated number field on a form
    ... > A query in an MDB file CAN call a user-defined function. ... > function name is Age and it returns a double. ... The user will certainly "notice" if a patient was born on Jan ... I just want control over the *display format* of a number ...
    (microsoft.public.access.forms)
  • RE: Query count then average.
    ... What was happening in my database was the query returned the ... "Ken Sheridan" wrote: ... It probably depends where you set the Format property. ... "Robert F." ...
    (microsoft.public.access.queries)