Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164

    RG, I can see that you used the Nz function in order to give each field numerical value of "0" if it contains a NULL. However, I am unclear as to what the "txt" preceeding each field name is doing. Can you explain.

  2. #17
    cwwaicw311 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    75
    The formula is working perfectly, thank for the help. But I was wandering since the control source of NewBalance is use for the formula, how is the value of NewBalance can be transfer to the NewBalance field in my table?

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Access has a nasty habit (in my opinion) of naming controls on a form the same name as the ControlSource (field name) of the control. As a result it is difficult to specify which one you are referring to. That is why I prepend the txt to the name of a TextBox control on a form.

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by cwwaicw311 View Post
    The formula is working perfectly, thank for the help. But I was wandering since the control source of NewBalance is use for the formula, how is the value of NewBalance can be transfer to the NewBalance field in my table?
    I believe this link should be useful: http://allenbrowne.com/casu-14.html

  5. #20
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    Thanks for sharing that RG, I am learning VBA scripting one step at a time and that certainly makes since.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with formula for Query
    By goldie6175 in forum Queries
    Replies: 1
    Last Post: 02-18-2010, 11:29 AM
  2. Concatenate Formula
    By Shingo in forum Programming
    Replies: 1
    Last Post: 07-25-2009, 09:14 AM
  3. simple math coding for form field??
    By RCBNewbee in forum Programming
    Replies: 7
    Last Post: 07-13-2009, 08:30 AM
  4. Math problem
    By kbrodrick in forum Programming
    Replies: 3
    Last Post: 05-06-2009, 08:56 AM
  5. formula on report??
    By dike969 in forum Access
    Replies: 0
    Last Post: 03-05-2007, 01:58 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