B
BYoung via AccessMonster.com
I have a tabular form based on a table, tblDPG. Employees will get into this
form and enter data into 6 fields
chrTechNumber
dtmWorkDate
numJobsAssigned
numJobsComplete
numPoints
numHours
after the employee enters information I want them to click an update button
to update the information in the table and reset the fields back to 0. Here
is the code I have now.
Private Sub cmdUpdate_Click()
If Me.Dirty Then
Me.Dirty = Flase
End If
me.chrtechnumber.value = "0"
me.dtmWorkDate.value="0"
me.numjobsassigned.value="0"
me.numjobscomplete.value="0"
me.numPoints.Value="0"
me.numHours.Value = "0"
The problem is that this updates the information and resets the values in the
first record only to 0, while at the same time changing the information in
the table to 0 also. I would like for this command to store the information
in the table and then reset the values on the form to zero.
I'm pretty new to VBA so I'm not sure how to do this successfully. Any Ideas?
form and enter data into 6 fields
chrTechNumber
dtmWorkDate
numJobsAssigned
numJobsComplete
numPoints
numHours
after the employee enters information I want them to click an update button
to update the information in the table and reset the fields back to 0. Here
is the code I have now.
Private Sub cmdUpdate_Click()
If Me.Dirty Then
Me.Dirty = Flase
End If
me.chrtechnumber.value = "0"
me.dtmWorkDate.value="0"
me.numjobsassigned.value="0"
me.numjobscomplete.value="0"
me.numPoints.Value="0"
me.numHours.Value = "0"
The problem is that this updates the information and resets the values in the
first record only to 0, while at the same time changing the information in
the table to 0 also. I would like for this command to store the information
in the table and then reset the values on the form to zero.
I'm pretty new to VBA so I'm not sure how to do this successfully. Any Ideas?