Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2020
    Posts
    3

    Populate new Row in form, without adding record to table

    Hello all. Issue at hand is, Database is going to be used to order,track, and maintain inventory control. Sort of like Northwind. What I am looking for is a form that when I use cbo's to select the record from the table, that it isn't generating a record in that table. I need the customer to just select the record. Also I need the form to add a row on the record selection. I cannot seem to find a way to, without the form/cbo's being bound to the table. Any help would be appreciative.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    you don't have to bind the form to the table but it works too.
    for unbound form , put value in the combo box, then run query that looks at it:
    docmd.openquery "qsMyData"

    qsMyData:
    select * from table where [city]=forms!fMyForm!comboBox

  3. #3
    Join Date
    Feb 2020
    Posts
    3
    Now I can throw a kicker in there, since someone finally gave me a logical answer. The form will be a subform, shown only in datasheet view, and has 4 cbo’s that cascade, and last cbo populates information into 3 txt boxes. All in all, I was trying to set the form to just select the records from the table. I may need to just create a “junk” table to dump the records into as the are selected. That way my main tables aren’t being added to unwantedly.

  4. #4
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,463
    So you want users to select values in the combo boxes and that will determine what records show on your form? Confusing when you say "Also I need the form to add a row on the record selection". What do you mean by that?

  5. #5
    Join Date
    Feb 2020
    Posts
    3
    So Bulzie, yes I want the first boxes value to determine what value you can select in the next 3 combo boxes. The fourth cbo fills in the text boxes that make up the rest of the form. My issue is, without binding the form or boxes to a table, it only allows one record or "row" to be available. I need a new "row" to open when selection is made in a previous row.

  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,016
    Quote Originally Posted by ihavenofreakingclue View Post

    ...without binding the form or boxes to a table, it only allows one record...to be available...
    Actually...an Unbound Form contains no Records...only unbound data that has been entered into Controls...and thus cannot have a second 'record!'

    Perhaps a clear explanation of why you need this second 'record' to show...and what you mean by Post#3 (probably me, but I can't make heads or tails out of your explanation there)...would help us help you.

    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
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Ihavenofreakingclue,

    I think you should try again to describe WHAT you are trying to do in simple plain English.
    From the responses it seems that readers do not understand the requirement. You are talking about forms bound/unbound, but these are solution type things related to HOW something could be done. There may be options for that, BUT first we have to understand that something.
    Good luck with your project.

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

Similar Threads

  1. Need help adding Record from a form to a Table
    By MadTom in forum Programming
    Replies: 35
    Last Post: 11-20-2018, 05:01 PM
  2. Adding new record to a table from a different form.
    By IncidentalProgrammer in forum Programming
    Replies: 5
    Last Post: 04-03-2015, 12:04 PM
  3. Replies: 3
    Last Post: 02-16-2015, 08:28 AM
  4. Replies: 4
    Last Post: 08-14-2012, 07:14 AM
  5. Replies: 1
    Last Post: 03-29-2010, 04:11 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