Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The database I posted updates for me. As soon as I tabbed out of the height control, the max weight updated.

    Here are some examples of age calculations
    http://access.mvps.org/access/datetime/date0001.htm

  2. #17
    scoobz1234 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    41
    Quote Originally Posted by June7 View Post
    Consider this query:

    SELECT tblBCP*, tblHeightWeightStandardsCondensed.MINIMUM, tblHeightWeightStandardsCondensed.MAXIMUM
    FROM tblHeightWeightStandardsCondensed RIGHT JOIN tblBCP ON (tblHeightWeightStandardsCondensed.HEIGHT = tblBCP.HEIGHT) AND (tblHeightWeightStandardsCondensed.GENDER = tblBCP.Gender);

    Could probably include tblMale_Standards similarly. What circumference is measured - neck?

    Not considering age factor in determining standards?

    We don't consider ages, only because the difference is very small. we measure the neck and the waist for males and the hips waist and neck for females. you take the waist-neck=circumference 30" waist and a 15" neck circ=15

    the only place age comes into play is for BF%

    MALES:
    17-26 yrs old = max BF% of 18%
    27-39 = 19%
    40-45 = 20%
    46+ = 21%

    FEMALES:
    26%
    27%
    28%
    29%

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Does ssanfu's db resolve issues?
    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.

  4. #19
    scoobz1234 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    41
    Hello again!

    No it does not update for me, not sure why. after i input the Height into the form Height field it will update the table and the query but the form itself does not update. so the Max Weight box does not show the new max weight. the reason i need this to update is because people change on average a half an inch, the way we have to do it is if your 65.5 we mark you at 66 if your at 65.4 we mark you at 64...


    EDIT: I got the Update to work, i had to for the txt box itself put in:

    Code:
    Private Sub txtHeight_AfterUpdate()
        Me.Requery
    End Sub
    EDIT AGAIN: scratch that, when i tab or click out of that text box it requeries but sends me to the first record. any way to make it stay on current record?

    Also after i uploaded i went in and changed everything to have propor names and then i found out about the LEFT and RIGHT commands, so now i use those for LAST 4 and for the First Initial.

    I plan on utilizing the TblMaleStandards to calculate BF% i should be able to do similar using a query or even the same query adding the third table and setting the relationships
    Last edited by scoobz1234; 04-10-2013 at 09:52 AM.

  5. #20
    scoobz1234 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    41
    Ok i have figured out how to make it requery and stay on current record, i had to set a bookmark and then call the bookmark after the requery. you lose your place within the record but atleast it stays on the current record.

    Code:
    Private Sub txtHeight_AfterUpdate()
    Dim rs As Object
    Dim lngBookmark As Long
    lngBookmark = Me.txtBCPID.Value
    Me.Requery
    Set rs = Me.RecordsetClone
    rs.FindFirst "BCPID = " & lngBookmark
    Me.Bookmark = rs.Bookmark
    Set rs = Nothing
    End Sub

  6. #21
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Glad yo got it working.
    But it is strange that the form updates for me and not for you. I'll try and look into it again tonight.

  7. #22
    scoobz1234 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    41
    Same database, but i have an issue that came about today, maybe you can help me out with?

    When i enter a new record into the TBL Via the FORM, i can never go back and view that record, it only shows record 1 and 2 nothing after that. it gives me an error saying mismatch data.

    Body Composition Program.zip

  8. #23
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I'll look at it tonight......

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

Similar Threads

  1. Calculation Field in table vs Query calculation
    By Leonidsg in forum Database Design
    Replies: 18
    Last Post: 02-28-2013, 09:38 PM
  2. Calculation for time x hours in table
    By hellojosie in forum Access
    Replies: 6
    Last Post: 11-20-2011, 01:54 AM
  3. Data variance calculation report
    By O2BSmart in forum Access
    Replies: 4
    Last Post: 08-10-2010, 09:35 AM
  4. Automatic Calculation in table
    By musicalogist in forum Access
    Replies: 4
    Last Post: 04-22-2010, 11:52 AM
  5. Data calculation between records
    By ibergarden in forum Access
    Replies: 3
    Last Post: 04-22-2010, 11:39 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