Results 1 to 4 of 4
  1. #1
    Access Knowledge is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2017
    Posts
    5

    Pull in previously saved data to update based on number entered in one textbox

    This is a customer service form to record who, what and when in a database. I have a form entitled "Service Record" for this. On it their are multiple combobox and textboxes as well as autofilled textboxes depending on some of the comboxes. At the very top there is a basic textbox to enter the "Sales Order Number". There is a box for the "Issue" and then the "Solution. At first I would like the employees to enter all of the information on the form except for the "Solution". Later I want to revisit this customer service record by typing in the sales order number and having everything pulled back into the form to either update or finish filling it out. Is there a way to do this and how?



    Thank you for any help!

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    When a sales order is entered, filter the form by putting into the AfterUpdate event of the sales order field:
    Me.Filter="SalesOrder=" & Me!SalesOrder (whatever the fields are called)
    Me.FilterOn=True

    This will populate the bound fields from the record source.

  3. #3
    Access Knowledge is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2017
    Posts
    5
    I'm sorry I played around with this and couldn't get it to work. I tried your code with an "AfterUpdate" event and an "OnEnter" event and neither worked.

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Maybe I'm stating the obvious, but the search text box has to be unbound. Consider also a combo instead - eliminates incorrect search criteria plus you don't have to know the number off by heart. Maybe users would like cascading combos, where they pick pertinent values to narrow the initial results, like filtering to find their own entries?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Additional Value List edits erasing previously entered fields
    By rshepard@shepardsearch in forum SharePoint
    Replies: 2
    Last Post: 06-27-2017, 07:19 AM
  2. How to recall information previously entered
    By Accu-Grind in forum Forms
    Replies: 4
    Last Post: 11-07-2015, 06:34 AM
  3. Replies: 3
    Last Post: 01-09-2015, 05:48 PM
  4. Replies: 4
    Last Post: 05-28-2011, 01:20 AM
  5. Replies: 3
    Last Post: 05-26-2011, 12:52 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