Results 1 to 3 of 3
  1. #1
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114

    Need to reset search form.

    Hi all,

    I'm having an issue with a query & search form set that I'm hoping you can help with.

    Background:
    I created a database to track ECO changes (particularly Mods [a snapshot of a model in time]). I started with the current ECO information and am working my way back through them (for the past 15 years). So far, I've got 200 records in several tables. I want to get this particular issue solved and then I can pull in some other co-workers to back fill information for the past 15 years.

    Issue:
    I created a query and form with the idea that my boss could type the model no. in the form and have the records for that model appear in the query view. And of course, it's not working that way. It shows the results in the query, but only from running the search from the Query Design view. When using the Form View, a blank form appears:

    Click image for larger version. 

Name:	Form search result.png 
Views:	15 
Size:	7.5 KB 
ID:	28310

    The Design:
    I created a table for the ECOs and Mods, which I combined with two other tables to form the ModQ query:
    Click image for larger version. 

Name:	Query Design.png 
Views:	15 
Size:	19.7 KB 
ID:	28306

    Here's the design for the form:


    Click image for larger version. 

Name:	Form Design.png 
Views:	15 
Size:	14.1 KB 
ID:	28307

    When I run the query from the design view, I get the following parameter value screen:
    Click image for larger version. 

Name:	Parameter Value screen.png 
Views:	15 
Size:	2.7 KB 
ID:	28308

    Enter a value and click on OK:
    Click image for larger version. 

Name:	Parameter Value screen 2.png 
Views:	15 
Size:	3.8 KB 
ID:	28309

    SEE NEXT POST FOR THE REST OF THE SITUATION...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Controls used to input filter criteria must be UNBOUND, otherwise you change data in the record. Unless you use the 'filter by form' method. Search Access Help for filter methods.

    If the query properly references the form control, there should not be a popup.

    Your query looks like it is using INNER JOIN which requires related records in all tables for records to be retrieved. That might serve your needs. Actually, your table relationships don't make sense. You have specified primary key fields but none of them are linked to foreign key fields. You should be linking on primary/foreign key fields. Then apply filter criteria to whatever fields you want.
    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
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    702
    I would also recommend checking out this:

    Search Criteria example

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

Similar Threads

  1. Reset button vba for a File Search
    By redekopp in forum Forms
    Replies: 10
    Last Post: 11-17-2015, 02:31 PM
  2. Anchoring controls on a form reset on reopen
    By bayners123 in forum Forms
    Replies: 8
    Last Post: 04-13-2014, 10:03 AM
  3. Replies: 2
    Last Post: 03-12-2014, 01:31 AM
  4. Replies: 2
    Last Post: 11-20-2012, 03:00 PM
  5. Reset imageBox on a form?
    By bosve73 in forum Forms
    Replies: 0
    Last Post: 08-11-2010, 07:16 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