Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Timestamp Criteria Being Ignored

Discussion in 'Information Technology' started by EJO, Jul 28, 2006.

  1. EJO

    Expand Collapse

    A2K MDB with SQL Server 200 backend...

    Ok, I have read many posts on how not to include time in a criteria
    expression of a timestamp...

    What if I NEED to include the time? When including the time, the
    entire timestamp is being ignored. I used a message box to verify what
    my criteria was, look through the records and am getting everything
    without any regard to the timestamp criteria. As soon as I format the
    date to ignore the time, i get only records on that date:

    DoCmd.OpenForm "OLEdit", , , "[SR_ID] = " & intSR & " AND
    [ListDate] = #" & dtListDate & "#", , , intListType

    The open event of the OLEdit form sets the recordsource:

    If IsNumeric(Me.OpenArgs) = True Then
    strSql = "SELECT * FROM SRSrvcsEquip;"
    strSql = "SELECT * FROM SRSrvcsEquipDefaults;"
    End if

    Me.RecordSource = strSql

    Thanks, from a most frustrated know-enough-to-be-dangerous
  2. Loading...

    Similar Threads Forum Date
    Criteria: When She Deserves To Be Raped Hard Talk Dec 21, 2012
    Sikh News Punjab Mulling Change In Pass Criteria In Board Exams (Outlook India) Breaking News Dec 3, 2007

Since you're here... we have a small favor to ask...     Become a Supporter      ::     Make a Contribution     

Share This Page