Results 1 to 9 of 9
  1. #1
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17

    Continuous sub-form limited to one line

    Using Access 2010 32



    Got a form with an "add" button, and a continuous subform, with one unbound text box. The text box value is passed to a table via VBA when the "add" button is clicked. This works perfectly.

    However, the subform is limited to one line only, although "allow Additions" and "allow edits" is set true.

    (This is a much more elaborate form/subform but I have reduced it down to just the add button and the text box while troubleshooting this problem)

    Any ideas?

    Cheers,
    Brodie
    Last edited by UTS; 10-25-2017 at 01:29 AM. Reason: Clarification

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    you also have to have data entry set to false

  3. #3
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    It is.

    Cheers

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    sounds in that case like your form is unbound or the recordsource is not returning any records.

  5. #5
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    Click image for larger version. 

Name:	Snip_multiSched.JPG 
Views:	17 
Size:	20.7 KB 
ID:	30955Click image for larger version. 

Name:	Snip_multiSched.JPG 
Views:	16 
Size:	14.3 KB 
ID:	30956

    That's right. All the values on the form and sub-form are "INSERTed INTO" a table on the "ADD" button press. It all works fine, except for the sub-form only showing one line. Pictures above shows the sub-form. Notice there should be a new line there.

    BTW, the sub-form on its own behaves the same i.e. only showing one line. So problem is with sub-form I believe. But what??

    Cheers,

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    All the values on the form and sub-form are "INSERTed INTO" a table on the "ADD" button press
    yes, I saw that but your form could still have been bound to a temporary table

    it is because your form is not bound - it can only show multiple rows if there are multiple records

    good luck with your project, but I don't think I can help you

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I agree with Ajax...
    Quote Originally Posted by Ajax View Post
    <snip>it is because your form is not bound - it can only show multiple rows if there are multiple records
    You say "All the values on the form and sub-form are "INSERTed INTO" a table on the "ADD" button press".
    If that is so, why isn't the sub form bound to that table??

    It is much, much easier to use a bound form than executing code to append records......

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    In point of fact, an Unbound Form doesn't display any Records at all...how could it...it's not connected, directly or indirectly (through a Query,) to a Table, and that's where Records reside!

    An Unbound Form can only hold data that has been entered into the Form's Controls...not Records. You can then use SQL, as you're doing, to insert that data into a Table/Record, but you can only do so one set of data at a time.

    A Bound Form is really the way to go, as it is about 99% of the time, in Access.

    Linq ;0)>

  9. #9
    UTS is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Downunder
    Posts
    17
    OK, Gotcha. Working fine now.

    Thanks a lot.

    Cheers,

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

Similar Threads

  1. Replies: 1
    Last Post: 03-05-2015, 07:58 AM
  2. Form with limited access question
    By Aosmond in forum Forms
    Replies: 1
    Last Post: 08-04-2014, 02:29 AM
  3. Replies: 10
    Last Post: 06-10-2014, 09:03 AM
  4. Auto Line Number Continuous form
    By barkly in forum Forms
    Replies: 9
    Last Post: 02-16-2014, 07:49 AM
  5. Replies: 5
    Last Post: 05-02-2011, 11:02 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