Re: Type mismatch in a criteria that used to work

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



John Spencer wrote:
SELECT [downtime 1].Date
, [downtime 1].DESCRIPTION
, Left([description],6) AS linetype
, [downtime 1].[reason code]
, [downtime 1].comments
, [downtime 1].duration
, [downtime 1].dtstart
, [downtime 1].dtfinish
, [downtime 1].dtevent
, [downtime 1].[start time]
, [downtime 1].[finish time]
, [downtime 1].shift
FROM [downtime 1]
WHERE [downtime 1].shift=[Forms]![Downtime Report]![Combo58] OR
[Forms]![Downtime Report]![Combo58] is Null

I suspect that the error is occuring in the DownTime 1 query.


That was my first thought, except he said the query runs fine without
the criterion.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: LDAP query for xerox 3545 printer/scanner blocked by SBS 2003?
    ... I am able to query the LDAP successfully from the second workstation but not ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... Step2:Please ensure the DNS on workstation is pointed to SBS server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Convert Negative values to zero
    ... query that includes the calculations. ... numbers (not downtime) to zeros. ... Dim Hours As String, minutes As String, seconds As String ... although in a Totals query it can give you the same result as DSum if ...
    (microsoft.public.access.tablesdbdesign)
  • Re: need help designin a report
    ... There will be a query on the child table that does the same. ... Design the form that will become your subform to properly display the things ... subform to the proper place on your main form. ... >> I suggested in the earlier thread in this newsgroup (the subject was ...
    (microsoft.public.access.gettingstarted)
  • Re: Cant update table data from form
    ... > tables (the form is built on tables, not queries). ... to more than one newsgroup, ... If the record source of the form is a table (not a multi-table query) ...
    (microsoft.public.access.forms)
  • Re: Convert Negative values to zero
    ... Second name in query is Downtime and I used IIf statement you gave me ... Ideally will be to total Downtime and not TotalHours ... When asking about a query it is often best to post its SQL. ...
    (microsoft.public.access.tablesdbdesign)