Results 1 to 14 of 14
  1. #1
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16

    Continuous Form

    I have a continuous form where the record source is a query.

    I want to keep the form, but change the record source. I want to change the record source to a table. When I do this, it does not work.

    I have copied the query that worked and renamed it. I changed the fields selected in the query. When I use this renamed query, it works



    Why is it working this way? I thought I could just change the record source to anything I want.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You pretty much can change the RecordSource to whatever you want. Why change it to a table rather than another query? When you say it doesn't work with the table, what do you mean? Does it throw an error? Surely it does something.

  3. #3
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    When it works with the query, the text boxes in the form are populated with the some of the fields from the tables in the query.

    I have also used a query. I have selected the fields from just one table. When I use this query, the text boxes do not get populated.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If the fields are named the same in the query as the table and your controls are bound to those fields then they should display.

  5. #5
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    I'm using the Northwind 2007 database. I'm trying to change the Inventory List form.

    When I use a query containing Products table, the form does not work.RuralGuyIf the fields are named the same in the query as the table and your controls are bound to those fields then they should display.

    In the Inventory List form, I deleted all the text boxes except Product Name.

    I created a query called qryProducts where I select the field name Product Name from the Products table

    The record source in the form Inventory List is qryProducts

    The Control Source for text box Product Name is Product Name

    It doesn't work. Why?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Does your form have the DataEntry property set to YES? It should be NO.

  7. #7
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    What does the DataEntry property do?

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Forces the form to only show New records. Once saved you can no longer see the record just created.

  9. #9
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    I still do not understand.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If the DataEntry property is set to YES then the form will not display any old records.

  11. #11
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    How does it display new records?

    I have added new records to the Products table.

    When the DataEntry property is set to Yes, these records do not display

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Once the *new* record is saved, it is no longer *new* so you can not see it. It basically always keeps you on a new record so you can do DataEntry.

  13. #13
    duckie10 is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2009
    Posts
    16
    In the Northwind 2007 database, the DataEntry property is set to Yes in the form Inventory List

    The Record Source for this form is a query called Inventory which made up of the Products table and 5 queries. The Products table is joined to these queries.


    When the form Inventory List is opened, the text box Property Name is populated with all the records in the Products table

    How is this working?

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Really good question!! The form is based on a nonupdateable query so it seems the state of the DataEntry property makes no difference. You could not add a new record in that form under any condition which is why they bring up another form when you want to add a record. Sorry but I don't have a better answer for you.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-22-2009, 01:07 PM
  2. Continuous Subforms Filter Dependant Combo
    By BigBear in forum Forms
    Replies: 0
    Last Post: 04-19-2009, 08:13 AM
  3. Replies: 3
    Last Post: 09-06-2008, 10:19 AM
  4. Continuous Range of Records
    By tigers in forum Access
    Replies: 0
    Last Post: 10-10-2007, 08:36 AM
  5. Replies: 9
    Last Post: 01-31-2006, 08:35 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