Results 1 to 3 of 3
  1. #1
    Nanuaraq is offline Advanced Beginner
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2017
    Posts
    77

    creating a search box

    I am making a form to show a query of data to my users.
    My users work with cases, each assigned a case identification number.
    The idea with this particular form is to show the user relevant data about any given case, identified by the case number of user's choice. The user will type in their case number, and be given a view of relevant data on the case (particular to a crucial step in the case, where the case worker has to do some complicated calculations).

    The data is stored on an SQL server somewhere. I use Access merely as a pipeline to do queries.

    I have a problem with speed. Access seems to take a very long time indeed to process a request to show a given case.
    I have tried to solve it by creating a separate database where only a select few and relevant tables are shown. Still speed problems persist. I do not know why this database has so many issues with speed, since I am perfectly well able to access another and much larger database with no problems.



    I also wish to make a form where only one case is shown to the user. I can do this, but I would like a better searchfunction, such as a button on the form where the user may type in a case number and be shown that case.

    Any suggestions?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    put this code in the txtbox afterupdate event an give it the single record form for it to open:


    Code:
    sub txtBox_Afterupdate()
    vRet = Dlookup("[Case#]","tCases","[Case#]='" & me.txtBox & "'")
    if Isnull(vRet) then
       msgbox "Case '" & me.txtBox & "' not found."
    else
       docmd.openform "frm1Case",,,"[Case#]='" & me.txtBox & "'")
    endif
    end sub

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Nanuaraq
    The data is stored on an SQL server somewhere...I have a problem with speed.
    I wonder if the latter is related to the former. How is this server...located 'somewhere,' being accessed? Access works fine over a LAN...but terribly over a WAN/VPN...an estimated 100 times slower!

    Albert Kallal is a well known authority on the networking of MS Access, and has an often quoted article on the subject of attempting to run Access across WANs/VPNs:

    http://www.kallal.ca/Wan/Wans.html

    To make matters worse, connections frequently get dropped across WANs/VPNs, and Access simply does not tolerate dropped connections, the end result of which is usually a corrupted database!

    But take heart; Albert does offer some possible workarounds!

    Good Luck!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Creating a Search Box?
    By Candy_Tech in forum Access
    Replies: 2
    Last Post: 01-06-2017, 09:51 PM
  2. Replies: 1
    Last Post: 11-30-2016, 03:41 AM
  3. Replies: 8
    Last Post: 09-02-2015, 03:00 PM
  4. Help creating a search form
    By ttn022191 in forum Sample Databases
    Replies: 5
    Last Post: 09-26-2014, 01:39 PM
  5. creating a search form
    By foxtet in forum Forms
    Replies: 4
    Last Post: 08-06-2011, 06:08 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