Results 1 to 6 of 6
  1. #1
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287

    Easiest way to "save" a value on a form..

    Hey guys,



    I have a form that I just added a new unbound text box to designate a search criteria, its just a number value. The search is ran, and data is pushed into some tables. When the form is closed, the number that was entered into this text box disappears. The user won't know what the criteria was when the data was ran.

    What is the easiest way to keep this value stored after the form/program is closed and reopened?

  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,726
    You could put it in a table that shows who, when and the number. You could have a query to show that user what the last number used was.

    Just a few thoughts. We relly don't know the significance of the number.

    If you're doing a search using that number, where and how is
    other data being pushed into other tables?
    There must be some other process(es) being spawned in the code.

  3. #3
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    I just mentioned the super simplified version.

    The criteria is any sale that was made where the "warranty-able" merchandise value is over the number specified in the text box.

    There are ton of other processes that fire. 17 append queries that go to 6 different tables. Reports are the generated as the user desires.

    I made a new table with 1 field and 1 record and linked that text box to that field (after linking the table to the form). It isn't saving.

    How can I write all sorts of VBA and design queries yet I can't figure this out? I feel like an imbecile haha.

  4. #4
    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,726
    We've all been through it. You're too close to the problem -- is the usual symptom.

    Regarding your new table - Is the number involved specific to a particular User or Client or Product...

    Do you have to record the number and date and User... for each time that process is executed?
    I'm not picking up the context of the number --who , when, why it's used...

  5. #5
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    Ok wow. I just fixed that little brain fart. The query that this new criteria goes into is an append query. I just added an extra field to that table and used the criteria in it. The fields default value pulls from that new field. Problem solved. Sorry to waste your time!

    Happy hour is calling my name!

  6. #6
    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,726
    Remember it's a sober second thought....
    Glad you have it resolved.

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

Similar Threads

  1. Replies: 4
    Last Post: 03-12-2014, 06:46 AM
  2. Replies: 1
    Last Post: 04-23-2013, 08:35 AM
  3. Replies: 5
    Last Post: 02-05-2013, 10:57 PM
  4. saves data with out click "Save" button in forms
    By terrythomasvda in forum Forms
    Replies: 4
    Last Post: 01-14-2013, 01:31 PM
  5. Replies: 11
    Last Post: 11-26-2010, 10:53 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