Results 1 to 5 of 5
  1. #1
    LostInAccess is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    6

    Unbound Form, but wish to save records...how?

    Hi all,

    I have a Form that was built in Form Design. It uses multiple combo boxes, pulling from multiple queries that were built from different tables.

    The Form works great, however I would like to be able to save a record of each Form (combination of fields) i create, then move to a new one. Right now (because it is an unbound Form i presume), I am unable to get a new record. If I select a Record Source for the Form, it then limits me to the number of records in that source (table or query) and the different text boxes i have populated (via an event of the combo boxes) maintain the original field selections as i scroll through the records (don't change per record).



    What are my options here? Is it possible to save records from an unbound Form?

    Any help would be very appreciated. Thank you.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sure, but you have to do it yourself, using a recordset or append query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

    ...If I select a Record Source for the Form, it then limits me to the number of records in that source (table or query) and the different text boxes i have populated (via an event of the combo boxes) maintain the original field selections as i scroll through the records (don't change per record).
    If the Comboboxes are Bound to a Field in your Form's underlying Table or Query, they will change and be Record-appropriate as you move from Record to Record.

    You shouldn't confuse the RowSource, i.e. the Table or Query the Combobox is based on, and the underlying Table/Query that your Form is based on and to which the Combobox can be Bound.

    To be honest, I have no idea what you mean by "...If I select a Record Source for the Form, it then limits me to the number of records in that source (table or query)..."

    Access is designed to be used with Bound Forms. By doing this, the Access Gnomes automatically take care of most of the heavy lifting involved in saving Records! A big part of the reason to use Access for database development is the speed with which it can be created, using Bound Forms. Several developers I know, experienced in Visual Basic database development and Access development, estimate that development, using Unbound Forms, by highly experienced developers, takes twice as long as it does when using Access and Bound Forms.

    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 if far, far better than anything you can do in Access


    So my question to you is is why are you going about this the hard way?

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

    All posts/responses based on Access 2003/2007

  4. #4
    LostInAccess is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    6
    Thanks for the tips guys.

    You were right about it being the hard way. So I decided to try to make it a Bound Form. I was able to create a table from my designed query (make-table-query), and used that as my record source for the Form. It actually solved all my problems quite well.

    I now have only one last issue with this Form that I can't seem to solve. Hopefully it has a much easier solution. I would like to know how to have the 'back color' of my Form 'Screen Only'. I am trying to print this form via a dot matrix printer and I only require the info from the Form. All the other fields and elements of my Form have the property to select "Display When - Screen Only" except for the 'back color'. I need the back color on the screen to make it user friendly, but I don't want it to print. Any suggestions?

    Thanks for all the help.
    (I will re-post this in a new thread as well)

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I only print reports; you have a lot more control over the format when printing a report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 06-23-2012, 12:09 PM
  2. Error 3021 appears when trying to save records...
    By curtgeo in forum Programming
    Replies: 2
    Last Post: 02-25-2012, 12:12 PM
  3. Replies: 2
    Last Post: 06-09-2011, 09:47 AM
  4. Print query records to reports and save as pdf
    By abhay_547 in forum Programming
    Replies: 0
    Last Post: 05-09-2011, 12:00 PM
  5. Replies: 9
    Last Post: 01-20-2011, 02:22 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