darkstar257
Registered User.
- Local time
- Today, 11:33
- Joined
- Jan 6, 2011
- Messages
- 77
I have created a unit converter and I have a text boxes that output weight or length based on the calculation below. However, sometimes the text boxes won't display the calculated value despite clicking on the solve button. Could it be an issue with multiple users writing to the same record at the same time? How can I prevent this? I intended for this to be a single record form.
I tried changing the Weight and Length variables to custom properties as shown here:
http://msaccesstips.com/2009/11/creating-using-form-custom-property/
How should I redesign this database to make it into a single record database yet not have multiple users editing the same record at the same time? These two things sounds conflicting no matter what! Would it solve the issue if I split it into a BE and FE?
I tried changing the Weight and Length variables to custom properties as shown here:
http://msaccesstips.com/2009/11/creating-using-form-custom-property/
How should I redesign this database to make it into a single record database yet not have multiple users editing the same record at the same time? These two things sounds conflicting no matter what! Would it solve the issue if I split it into a BE and FE?
Code:
Private Sub Solve_Click()
........
...
'Conversion Equations
Select Case inputType
'Case Statement ft^2/lb/mil -> [lb] / [ft]
Case Is = "ft^2/lb/mil"
'Solve for weight [lb]
If outputType = "lb" Then
Weight = Round((vsheet * widthTemp * Length / matFactor * (Thickness / 0.001)), 2)
WeightUnit = "lb"
ElseIf outputType = "ft" Then
'Solve for length [ft]
Length = Round((vsheet * matFactor * Weight / (Thickness / 0.001) / widthTemp), 2)
LengthUnit = "ft"
Else
MsgBox ("Unknown Input Type")
End If
.....
....
End Select
....
...
Last edited: