Results 1 to 4 of 4
  1. #1
    jarrodf43 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2018
    Posts
    2

    Append Query using a Form is not appending a number.

    I have a form called New Projects that has a combo box for Customers (it pulls from a Customer table with Customer ID, FirstName and LastName). Then I have a Project Description (txtDescription) field, and Amount field (currently set to Standard number with 2 decimal places, and I have a Project Note field (255 characters) for describing the project. When I do my append query to pull from these unbound fields in the form, I get everything but the amount? What gives?



    Here's is the SQL for my query:

    INSERT INTO tblProjects ( CustomerID, Description, Amount, [Project Notes] )SELECT [Forms]![New Project]![cmbCustomer] AS Customer, [Forms]![New Project]![txtDescription] AS Description, [Forms]![New Project]![txtAmount] AS Amount, [Forms]![New Project]![txtNotes] AS [Project Notes];

    Thanks!

  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
    Curious. You're not running the query with focus still on the amount textbox, are you? The value won't have been committed. Make sure the textbox has a numeric format, in case that might screw it up.

    Any reason you don't just use a bound form?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jarrodf43 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2018
    Posts
    2
    Thanks! I was trying to preview the results without actually running the query. When I ran the query it worked. Can you tell me the pros and cons of a bound form versus unbound?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Jason has some thoughts here:

    http://www.baldyweb.com/BoundUnbound.htm
    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. Append Query multiples appending. HELP
    By AlliCrader in forum Queries
    Replies: 5
    Last Post: 07-29-2017, 09:02 AM
  2. Replies: 4
    Last Post: 08-09-2016, 06:07 AM
  3. Replies: 1
    Last Post: 04-10-2016, 09:50 AM
  4. Replies: 1
    Last Post: 03-13-2013, 10:37 PM
  5. Append Query and Increment Number
    By burrina in forum Queries
    Replies: 1
    Last Post: 02-02-2013, 12:28 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