Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917

    See if this sample gets you a little further along. It impliments what was in that link I provided plus a little.

  2. #17
    WhatnThe is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    50
    Oh My GOD RuralGuy that’s exactly what I needed. I want to thank both you and Rainlover. You both have been very helpful in answering my questions. I think most people would have quit replying a long time ago. You both truly do deserve your super mod titles. I think I now understand how it works after seeing it in action. I have been at this for over 5 hours now.
    I have one last question before I mark this as solved about something “Rainlover” added to my form.
    He place the code below
    Code:
     Private Sub Form_BeforeUpdate(Cancel As Integer)
     Me.PcsProduced = Me.Lengths * Me.PPL
    End Sub
    It did work. It calculated the value and it was recorded when I clicked the add the record button. The only thing it did not do was display the value in the PcsProduced field.
    Would the info in the link have made the above code display the value in the PcsProduced field. Would you tell me what would have made this code display its value in the correct field

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    The code Rain supplied only stored the calculation as you saved the record. My sample bound the "calculated" field to the control on the form, set that control as locked and did the calculation in both the Current event and the AfterUpdate events of the two controls involved in the calculation. There are *lots* of ways to skin this cat depending on what you are looking for.

  4. #19
    WhatnThe is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    50
    Thanks RuralGuy. Now I am on my my other post and about opening a blank form when I launch my database then I am going to rest for a bit. I have marked this as solved.

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    That's great! One alligator at a time.

  6. #21
    WhatnThe is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Posts
    50
    Quote Originally Posted by RuralGuy View Post
    One alligator at a time.
    That one was like Godzilla

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Not to Mothra! Learning just takes time. Relax a bit.

  8. #23
    Rory898 is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    14

    Thumbs up

    RuralGuy just want to say thanks again. That page helped me out perfectly
    This forums amazing

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

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