Results 1 to 10 of 10
  1. #1
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25

    Unbound combo or text boxes fail to work in Form Header Section


    I tried to put some unbound combo or text boxes in the header section of a continuous form. All boxes are not working until I move them to detail section. All boxes in the form header section have the settings: Enabled is set to Yes and Locked to No. Is there any construction restricting me to use unbound boxes in the header section of a continuous form? Thanks!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    What is the purpose of these unbound controls?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    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 may get some insight from this example from Allen Browne.

  4. #4
    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
    Quote Originally Posted by ScottXe View Post

    ...Is there any construction restricting me to use unbound boxes in the header section of a continuous form...
    Not per se; I think the important thing, here, lies in the answer to Bob's question.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  5. #5
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    Quote Originally Posted by Bob Fitz View Post
    What is the purpose of these unbound controls?

    The boxes are used to input the key words for searching the records.

  6. #6
    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
    The Header Section is really the correct location for this kind of thing! How, exactly, are they 'not working?' Are you getting error messages? Incorrect results? No results or nothing happening at all?

    Saying that they 'work' after moving them to the Detail Section makes me wonder if their working depends on a value or values found in one or more Fields in the Record. If this is the case, perhaps the problem is that there has to be a Record that is selected before running the search code.

    The Allen Browne article orange cited is an excellent tutorial for this sort of thing; perhaps you can find your answer there.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  7. #7
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    Thanks for all responses. I have resolved it by setting to yes on Allow Edits property.

  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
    Quote Originally Posted by Missinglinq View Post

    ...How, exactly, are they 'not working?'...
    So, by 'not working' you meant that you could not actually make a selection from the Combobox. This demonstrates why you have to be as detailed as possible when describing a problem! If you'd made that clear, in your original post, we could have helped you immediately!

    The Access Gnomes, in their infinite wisdom, look at the act of using of a Combobox as a form of editing a Record; hence if AllowEdits is set to No/False, they cannot be used!

    FYI, if you need to

    • Use a Combobox
    • Not allow editing of Records

    the workaround is to set AllowEdits to Yes/True and Lock or Lock and Disable all of the Controls on the Form.

    Linq ;0)>
    Last edited by Missinglinq; 11-05-2014 at 09:26 AM.
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  9. #9
    ScottXe is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    25
    Quote Originally Posted by Missinglinq View Post
    So, by 'not working' you meant that you could not actually make a selection from the Combobox. This demonstrates why you have to be as detailed as possible when describing a problem! If you'd made that clear, in your original post, we could have helped you immediately!

    The Access Gnomes, in their infinite wisdom, look at the act of using of a Combobox as a form of editing a Record; hence if AllowEdits is set to No/False, they cannot be used!

    FYI, if you need to

    • Use a Combobox
    • Not allow editing of Records

    the workaround is to set AllowEdits to Yes/True and Lock or Lock and Disable all of the Controls on the Form.

    Linq ;0)>
    Hi Linq,

    Thanks for your reply. I used to set the Allow Edits to No for read-only form but never known about the effect to other unbound boxes in form header. Actually, there are a couple of ways to make a read-only form and unsure the differences amongst them.

    Allow Edits = No
    Recordset Type = Snapshot
    Data -> Locked = Yes

    Thanks!

  10. #10
    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
    Quote Originally Posted by ScottXe View Post

    ...I used to set the Allow Edits to No for read-only form but never known about the effect to other unbound boxes in form header...
    Just to be clear...the fact that the unbound Controls were in the Form Header had nothing to do with their not functioning...you had to have turned AllowEdits back on when moving them to the Detail Section and finding them magically functioning. It's easy to do a couple of different things without realizing it, when clawing at straws.

    Quote Originally Posted by ScottXe View Post

    ...there are a couple of ways to make a read-only form and unsure the differences amongst them...

    Allow Edits = No
    Recordset Type = Snapshot
    Data -> Locked = Yes
    See if this helps:

    Allow Edits = No

    Records cannot be Edited
    New Records can be Added
    Records can be Deleted
    Comboboxes will not work

    Recordset Type = Snapshot

    Records cannot be Edited
    New Records cannot be Added
    Records cannot be Deleted
    Comboboxes will work


    Data Controls-> Locked = Yes

    Records cannot be Edited
    New Records can be Added
    Records can be Deleted
    Comboboxes will work

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Replies: 9
    Last Post: 01-09-2014, 02:58 PM
  3. Replies: 6
    Last Post: 03-26-2013, 12:17 PM
  4. Replies: 1
    Last Post: 03-10-2012, 07:34 AM
  5. Using Unbound text boxes
    By rbiggs in forum Reports
    Replies: 4
    Last Post: 08-16-2011, 04:05 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