Results 1 to 4 of 4
  1. #1
    dccjr's Avatar
    dccjr is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Colorado Springs, CO
    Posts
    138

    Thumbs up Bound Controls?

    First let me say that I have no experience with bound controls. Typically, I use unbound controls (combo boxes and textboxes), then an INSERT statement to write the data to the appropriate table. In a new project I have a form with some 40-50 fields on it. This makes for a really long SQL statement. So my question are:

    1. When does an bound control actually insert the contents of the control into the table?


    1a. If it is upon the control's loss of focus, if the user tabs back up to a previous control, does it change what is in the table for the same record?
    2. Is inserting all of the data from the form at one time the most efficient way? If not, what is a better way to do this?

    I am realy concerned about exceeding the 1024 character max on a string (my SQL statement is stored as such due to concatenation). I have never worked with so many controls on one form. (It can't be split as it is a post operation checklist).

    Any advice would be greatly appreciated.

  2. #2
    DepricatedZero's Avatar
    DepricatedZero is offline Cthulhu Fhtagn!
    Windows 8 Access 2007
    Join Date
    Apr 2013
    Location
    Cincinnati
    Posts
    65
    1: The changes are applied when the record bound to the form changes
    1a: It is not bound that way, however I recommend putting an "If Me.Dirty Then DoCmd.RunCommand acCmdUndo" into your navigation controls so that there are no accidental record changes
    2: I'm not sure I follow. This may simply depend on your process. Could you rephrase that question please?

  3. #3
    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
    Access is intended to be used with Bound Forms. Using them allows Access to do the vast majority of the heavy lifting. Data from all Bound Controls is committed to the Table when the Record is saved. The Record is saved, in turn, when

    • You move to another Record
    • You Close the Form
    • You Close Access, itself

    To be honest, if you insist on using Unbound Forms, you'd be far better off using a straight VB or C++ front end with a SQL Server or Oracle back end.

    • You can create an EXE file which gives total protection to your code/design
    • You can distribute the db to PCs without a copy of Access being on board
    • Your data security is far, far better than anything you can do in Access


    Linq ;0)>

  4. #4
    dccjr's Avatar
    dccjr is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Colorado Springs, CO
    Posts
    138
    Thanks Linq. Unfortunately, I am not at liberty to use an SQL backend. Oracle is completely out of the question, as our company is a SAP user.

    I think I have it fixed, but another issue has arisen. I will post in a new thread. Thanks again.

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

Similar Threads

  1. Bound form with bound combobox
    By Jerry8989 in forum Access
    Replies: 2
    Last Post: 12-05-2011, 01:50 PM
  2. Bound Forms
    By ruci1225 in forum Forms
    Replies: 3
    Last Post: 08-16-2011, 12:41 PM
  3. Bound Forms
    By bobsmith in forum Forms
    Replies: 1
    Last Post: 04-21-2011, 11:35 AM
  4. bound Hyperlinks
    By lazrus55 in forum Access
    Replies: 0
    Last Post: 06-03-2010, 08:10 AM
  5. Bound controls "mis"behaving
    By DanW in forum Forms
    Replies: 3
    Last Post: 11-16-2009, 11: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