Results 1 to 2 of 2

Help on WHERE clause

  1. #1
    Join Date
    Dec 2005
    Posts
    2

    Help on WHERE clause

    OK Where am I going wrong on this string?


    strWhere = "(CallDate = " & Format(Now(), conDateFormat) & " And " & " ( BodyCorporate = " & " Me.txtBodyCorporate " & ")"



    Thanks all

  2. #2
    Join Date
    Dec 2005
    Posts
    2
    Ok I worked it out:

    strWhere = "(CallDate = " & Format(Now(), conDateFormat) & " And " & "[BodyCorporate] = """ & Me.txtBodyCorporate & """" & ")"

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

Similar Threads

  1. FROM Clause error message
    By skylite in forum Queries
    Replies: 2
    Last Post: 10-23-2008, 05:47 AM
  2. IIF clause
    By Peljo in forum Queries
    Replies: 2
    Last Post: 02-05-2008, 11:22 AM
  3. Replies: 1
    Last Post: 07-17-2006, 06:30 AM

Posting Permissions

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