jpkeller55
Technical User
Not sure if this is possible. I have a simple database that is tracking number of miles a person walks each day. I would like the user to be able to enter either the distance in miles or the number of strides (from a pedometer)they have walked each day. The part I would like the form to do is calculate the number of strides(StrideNum) if they enter the miles(DistanceWalked) or calculate the distance in miles if they enter the strides.
Here is the query I am using for the form:
The way my query works now, the user can only enter DistanceWalked and the strides are calculated. Thanks for any help you can lend. Jim
Here is the query I am using for the form:
Code:
SELECT WalkData.WalkID, WalkData.EmplID, WalkData.Date, WalkData.DistanceWalked, Employees.StrideLth, [DistanceWalked]*63360/[StrideLth] AS StrideNum
FROM WalkData INNER JOIN Employees ON WalkData.EmplID = Employees.EmplID;