Results 1 to 3 of 3
  1. #1
    MwNew is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    2

    Access Where statement Help!


    I have some code that runs however when run it keeps asking for a value for ME.Text35?

    strWhere = "WHERE Descriptions.[Functional Alignment]In ("
    If Me.GetFunctionalAlignment.ItemsSelected.Count > 0 Then
    For Each varItem In Me.GetFunctionalAlignment.ItemsSelected
    strCriteria = strCriteria & ",'" & Me.GetFunctionalAlignment.ItemData(varItem) & "'"
    Next varItem
    strCriteria = Right(strCriteria, Len(strCriteria) - 1)
    strCriteria = strWhere & strCriteria & ")"
    strCriteria = strCriteria & " AND [Raw Data].[Age of Claim]>= " & _
    Me.Age_GT_Text25 & " And [Raw Data].[Age of Claim] <= " & Me.Age_LT_Text27
    If Me.CmbClaimFilter = "Pend" Then
    strCriteria = strCriteria & " AND NOT [Raw Data].[User Id] = " & Me.Text35 & _
    " AND NOT [Raw Data].[User Id] = " & Me.Text35 & ";"
    strSQL = strTempSQL & strCriteria

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Where is the rest of your code?
    Where are you trying to run this code?

  3. #3
    MwNew is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    2
    Thanks for asking however I solved this issue. Thanks

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

Similar Threads

  1. Use Parameter in select statement (Sql in Access)
    By mohammadyou in forum Access
    Replies: 6
    Last Post: 06-04-2012, 01:40 PM
  2. Replies: 5
    Last Post: 04-20-2012, 06:40 PM
  3. Excel VLookup vs Access IIF statement
    By Huddle in forum Queries
    Replies: 9
    Last Post: 02-02-2012, 11:00 AM
  4. Replies: 7
    Last Post: 08-17-2011, 01:49 PM
  5. Help about access INSERT INTO statement
    By ducthang88 in forum Programming
    Replies: 7
    Last Post: 12-03-2010, 08:40 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
  •  
Other Forums: Microsoft Office Forums