Results 1 to 4 of 4
  1. #1
    Caz is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    2

    New Record Addition Problem and Question/ Query / Form

    Hi



    I have a question about how to get newly added Records to appear in a search in access.

    Basically I have one table with all relevant information needed, etc, and I have the original spreadsheet data inputted to the database. The original data appears fine when a search is done, eg, the user searches for something using a form that then uses a query and ultimately brings up the information that matches. In the queries, I use the same basic criteria- "LIKE "*" & [Forms]![FormName]![FieldName] & "*" ".

    My question is, now that I have a form to add a new record to the table so a user can add to it, what would be the best way to get the added record to appear during the search, like the original records? I have used " IS Not Null" at the end of the criteria within the query, but it tends to bring up all the new records no matter what the user searches. Is there a way around this?


    Thanks

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    answer depends on how you are viewing your query - if it is a query then close and reopen it. If it is a from then either close and reopen the form or refresh it. If it is a subform, requery it

  3. #3
    Caz is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    2
    I have tried running the query with the newly adding information in it, and then viewing the information by searching through a form, which will then bring up a new form that has all the fields of the table to allow the user to see all the information based on the search. If you know what I mean.

  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,850
    I'm not following your issue.
    Describe the issue in plain English. Then if you have a form, or form/subform, set up please describe it, or show us a jpg.

    Normally if you enter a record into a table via a form, after entering that record, if you requery the form, the new record should be available-unless you have some constraint that eliminates it from the result.

    If you have records

    ABCD
    XDERY
    PUUYR
    and you add a new record QwadRR
    then do a current form Requery (which should rebuild your form's recordsource) then

    ABCD
    XDERY
    PUUYR
    QwadRR should be available to you.


    Show us your table design.
    Show us the records in the table,
    then show us the query to add a new record,
    then show the table data again.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2015, 10:28 AM
  2. Date Query problem/question
    By normie in forum Queries
    Replies: 1
    Last Post: 03-06-2013, 02:05 PM
  3. Cross column addition query
    By smytelka in forum Queries
    Replies: 3
    Last Post: 01-04-2013, 02:41 PM
  4. Replies: 14
    Last Post: 09-21-2012, 11:12 AM
  5. Addition of similar coded items in query
    By shanky365 in forum Queries
    Replies: 1
    Last Post: 08-23-2011, 11:50 PM

Tags for this Thread

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