Good morning,
Problem 1:
I have a form that I could use some assistance on. I have three fields on Tab A that pull data from a query. On Tab C, I have several fields that run calculations based on the query result. However, after the query runs, the calculated fields do not update. The only way I can get them to update is to click into the boxes where the query poplulates.
Problem 2:
The control source for these fields is a table where the queried data (along with several other pieces) will be stored. After the query runs, the data does not save to the table. Manually saving the record does not remedy this.
The current code behind it is based on a single command buttone (Problem source maybe?)
Here is what is going on so far...
Please let me know if there is any additional information that would help to better understand our plight.
Thanks for your help!
Problem 1:
I have a form that I could use some assistance on. I have three fields on Tab A that pull data from a query. On Tab C, I have several fields that run calculations based on the query result. However, after the query runs, the calculated fields do not update. The only way I can get them to update is to click into the boxes where the query poplulates.
Problem 2:
The control source for these fields is a table where the queried data (along with several other pieces) will be stored. After the query runs, the data does not save to the table. Manually saving the record does not remedy this.
The current code behind it is based on a single command buttone (Problem source maybe?)
Here is what is going on so far...
Code:
Option Compare Database
Option Explicit
Private Sub Command312_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Evaluator
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
Sub Evaluator()
If Me.txtQpts >= 15 Then
Me.chkQualEvalOverallExceeds.Value = -1
Me.chkQualEvalOverallMeets.Value = 0
Me.chkQualEvalOverallNeeds.Value = 0
Else
Me.chkQualEvalOverallExceeds.Value = 0
End If
If Me.txtQpts > 11 Then
If Me.txtQpts < 14 Then
Me.chkQualEvalOverallMeets.Value = -1
Me.chkQualEvalOverallExceeds.Value = 0
Me.chkQualEvalOverallNeeds.Value = 0
End If
Else
Me.chkQualEvalOverallMeets.Value = 0
End If
If Me.txtQpts < 10 Then
Me.chkQualEvalOverallNeeds.Value = -1
Me.chkQualEvalOverallExceeds.Value = 0
Me.chkQualEvalOverallMeets.Value = 0
Else
Me.chkQualEvalOverallNeeds.Value = 0
End If
End Sub
Please let me know if there is any additional information that would help to better understand our plight.
Thanks for your help!