Results 1 to 5 of 5
  1. #1
    IamKJVonly is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2018
    Posts
    41

    Trouble changing a RECORD SOURCE on a form need help

    I built a books data base table. One of the fields in that table is a DATE field and another field is LOCATION.


    Then I built a query based on the DATE field being sorted. It works fine.
    Next I built a Form based on that the DATE query so I can edit a record. It works fine.

    Then I built a query based on the LOCATION field of where the book is located. It works fine.

    Next I made a copy of my
    Form based on the DATE query. I renamed the new Form LOCATION and went into the properties option and selected the LOCATION query for the record source. It appeared to take the change and rechecking the record source it show the LOCATION query.

    However when ever I run the LOCATION form it gives me the DATE query data instead of the LOCATION query data. It acts as if it is still linked to the DATE query.

    I've tried everything I can think of. Is there another step I should have done??

    Any help will be greatly appreciated.
    Dave
    PS I'm just starting out in access 2010 and this is my first post in this form and if I'm not doing it right please let me know.
    Thanks again for any help you can give me.


  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Date is a reserved word in Access ---either change it to something meaningful to you (eg PublishedDate or ReviewedDate...) or enclose it in [Date] to show Access this is your terminology.

    You could post a coy of your database so readers can see what you are working with.

    Good luck.

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Try a Compact and Repair. That's a lot of changes that the Name Autocorrect option has to deal with.

  4. #4
    IamKJVonly is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2018
    Posts
    41
    I'm sorry but the field I called "Date" is really "DateLastRead" so that is NOT the problem.
    I've been trying everything I can think of to make it work But I can't seem to do it.
    I really don't want to have to build a form scratch every time I want to do a different type of query.

    Question am I doing the right procedure ?
    Dave

  5. #5
    IamKJVonly is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2018
    Posts
    41
    I found the problem !!!
    The problem was that in my query I had my LOCATION column first and my DateLastRead second followed by the other fields (Both were marked ascending) and the query worked

    Here is where I got in trouble. My form listed the DateLastRead first and the LOCATION field second. As soon as I marked the DateLastReadfield NOT sorted the form worked right. In the form that was linked to a query I though the query would override the form but the form overrides the query. confusing??


    Dave

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

Similar Threads

  1. Replies: 12
    Last Post: 12-10-2013, 08:57 PM
  2. Replies: 1
    Last Post: 10-24-2012, 11:15 AM
  3. changing form source while it's active! ??
    By debhead in forum Forms
    Replies: 1
    Last Post: 12-16-2010, 02:55 PM
  4. Replies: 4
    Last Post: 12-16-2010, 12:45 PM
  5. Changing the record source in a form
    By lmichaud in forum Forms
    Replies: 1
    Last Post: 07-09-2006, 09:20 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