Results 1 to 3 of 3
  1. #1
    zyberjock is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    1

    Help with Query

    I am trying to execute this code but I get an error that says that I tried to execute a query that does not include a specified expression., Can anybody help me out on this one.



    Code:
    SELECT Min(EvnLog.[TimeDate]) as EntryDate, EvnLog.LName, EvnLog.FName, EvnLog.Event
    FROM EvnLog
    WHERE (((EvnLog.Event)=8) AND ((EvnLog.[TimeDate])>=#4/1/2009#));
    Thanks.

  2. #2
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28
    SELECT EvnLog.[TimeDate] as EntryDate, EvnLog.LName, EvnLog.FName, EvnLog.Event
    FROM EvnLog
    WHERE envlog.[timedate]=(select min(b.timedate) from evnlog as b where((EvnLog.Event)=8) AND ((EvnLog.[TimeDate])>=#4/1/2009#)));

  3. #3
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28
    SELECT EvnLog.[TimeDate] as EntryDate, EvnLog.LName, EvnLog.FName, EvnLog.Event
    FROM EvnLog
    WHERE envlog.[timedate]=(select min(b.timedate) from evnlog as b where((b.Event)=8) AND ((b.[TimeDate])>=#4/1/2009#)));

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums