Results 1 to 8 of 8
  1. #1
    need_help12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    58

    Data range for Web Forms


    Good afternoon.

    I have a form I'm converting to a web form which allows end users to search for expiring contracts by entering a date range. In my client db, this was done by putting the following criteria in the StartDate section of the query: "<[Forms]![Navigation_Admin]![Navigation_Subform].[Form]![EndDate]", and this criteria in the EndDate section of the query: "Between [Forms]![Navigation_Admin]![NavigationSubform].[Form]![StartDate] And [Forms]![Navigation_Admin]![NavigationSubform].[Form]![EndDate]"

    Upon entering this criteria into my web query for my web form, I was prompted by Access that this is not a valid function for web compatability. What are my options for doing a start date/end date filter for a web form?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Which function is not compatible - is it really the BETWEEN AND that is not accepted? Show the complete query sql statement for analysis.

    Try:
    >=[Forms]![Navigation_Admin]![NavigationSubform].[Form]![StartDate] And <= [Forms]![Navigation_Admin]![NavigationSubform].[Form]![EndDate]"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    need_help12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    58
    Well, that allowed me to run the query no problem, but when I do, it returns all the datasets in my table. I think I'm missing something parameter related, and I simply dont have the web database knowledge.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Want to show the complete sql statement for analysis?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    need_help12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    58
    Maybe that's my issue? I'm not using SQL.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you are building queries in Access, then you are using SQL language. Access queries are based on SQL syntax. Open query in SQL View and copy/paste the statement into post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    need_help12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    58
    I thought there was no SQL View for web databases? Am I mistaken?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Ooops, sorry, I have never built web database. Even if there is no SQL View, the sql must be saved somewhere. If hidden sys tables can be viewed in web db, might find the sql in the MySysQueries table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Excel Automation Select Range Only with Data
    By orcinus in forum Programming
    Replies: 3
    Last Post: 02-09-2011, 01:03 PM
  2. Replies: 2
    Last Post: 11-25-2010, 11:01 AM
  3. Replies: 1
    Last Post: 05-25-2010, 02:58 PM
  4. Replies: 7
    Last Post: 12-11-2009, 01:44 AM
  5. Order of data in forms
    By Penz in forum Forms
    Replies: 7
    Last Post: 11-03-2009, 05:27 PM

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