Access query work days function over 20 days

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If select Days Elapsed over 20 days by adding >20 as criterion for the field
below.
DaysElapsed: DateDiff("y", [OrderDate], [ShippedDate])
Access will ignore the condition >20, still display all records.

If use WorkingDays ( ) function, Access through out error:†data type
mismatch in criteria expressionâ€, although the function DOES return “Integerâ€
 
If select Days Elapsed over 20 days by adding >20 as criterion for the field
below.
DaysElapsed: DateDiff("y", [OrderDate], [ShippedDate])
Access will ignore the condition >20, still display all records.

If use WorkingDays ( ) function, Access through out error:” data type
mismatch in criteria expression”, although the function DOES return “Integer”

Please open your query in design view, use View... SQL to switch to SQL view,
and post the SQL of the query; and also the VBA code of your WorkingDays
function.

John W. Vinson [MVP]
 
escribió en el mensaje de noticias:si me van a mandar un mensaje q sea en
castellano no se hablar en ingles ok.
 
escribió en el mensaje de noticias:si me van a mandar un mensaje q sea en
castellano no se hablar en ingles ok.

Si tienes pregunta sobre la programma Microsoft Access, puedes escribirlo en
microsoft.public.es.access en castellano.

Hay otros grupos por otras programmas.

John W. Vinson [MVP]
 
Back
Top