Results 1 to 3 of 3
  1. #1
    kyleg222 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2

    Unbound Text boxes

    I have many Unbound Text boxes in a form for user input. There are 20 rows which the following columns:



    Item Number | Quantity | Description | Unit Price | Amount


    I have the input fields to unbound because we rarely order the same thing and therefore there is no need to send the inputted data back to a table. I just want to have it save a copy of the form with the inputted data being saved just in case there needs to be a modification. This form is printed and sent to vendors.

    I would use labels as they are only text but you cannot go into form view to input data into labels.

    In addition some of these text boxes have calculations. For Example: Amount = Quantity * Unit Price

    At the bottom of the 20 columns is a total textbox that sums up all of the amount textboxes. Is there a way to make the total sum up the amount textboxes even if some of the textboxes are blank.

    What I mean is in excel a blank cell is interpreted as a zero is it possible to make a blank textbox be interpreted as a zero?

    Best Regards and thank you in advance for your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    You can have the textboxes show default value of zero. Or in the expression that sums the textboxes us Nz function.

    Nz(textbox1,0) + Nz(textbox2,0)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    kyleg222 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2
    Thank you very much June7, the Nz function did exactly what I was looking for.

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: 0
    Last Post: 05-03-2011, 05:58 AM
  3. Apply Filter based on unbound date boxes
    By anoob in forum Access
    Replies: 3
    Last Post: 01-21-2011, 05:26 PM
  4. Use unbound boxes in a form
    By jjerome512 in forum Forms
    Replies: 2
    Last Post: 01-14-2010, 08:53 PM
  5. Unbound text box truncating text
    By gddrew in forum Forms
    Replies: 0
    Last Post: 03-02-2006, 11:26 AM

Tags for this Thread

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