T
tracktraining
Hi All,
I am trying to write this code and i am in need of help.
In my UPDATE form I have a checkbox on each row. When an old document is
updated with a new revision then this is the user's process:
1) User type in the document with the old revision in the search fields
and filter the records.
2) List of employee will appear
3) The checkboxs are default to true (i.e. checked)
4) user enters the new revision code in a field in the form header
5) user uncheck the boxes in the row of the employee who doesn't need to
read the updated revision of the document
6) add other employees who need to read the document in the *(star) line
(empname, empemail, document#, revision)
7) user click UPDATE button
8) rows will be added to empdocstatus table where the box is checked from
the UPDATED form, and any other additional *(star) rows that were added.
My problem is that i don't know how to read the insert into value statement.
This is what I have so far:
Private Sub UpdateTrain_Click()
On Error GoTo Err_UpdateTrain_Click
Dim UpdatedRev As String
Dim db As Database
Dim rs As DAO.Recordset
Dim UpdateTraining As String
Set db = CurrentDb
rs = Me.RecordsetClone
Do Until rs.EOF
If chkTrain = True Then
UpdateTraining = "INSERT INTO EmpDocStatus (EmpEmail, DocID,
Revision, DateAssigned, DateCompleted, JobFunc)" & _'
VALUES ......................................
End If
rs.MoveNext
Loop
Please advise if possible. And let me know if you need more information.
Thanks so much for helping,
TrackTraining
I am trying to write this code and i am in need of help.
In my UPDATE form I have a checkbox on each row. When an old document is
updated with a new revision then this is the user's process:
1) User type in the document with the old revision in the search fields
and filter the records.
2) List of employee will appear
3) The checkboxs are default to true (i.e. checked)
4) user enters the new revision code in a field in the form header
5) user uncheck the boxes in the row of the employee who doesn't need to
read the updated revision of the document
6) add other employees who need to read the document in the *(star) line
(empname, empemail, document#, revision)
7) user click UPDATE button
8) rows will be added to empdocstatus table where the box is checked from
the UPDATED form, and any other additional *(star) rows that were added.
My problem is that i don't know how to read the insert into value statement.
This is what I have so far:
Private Sub UpdateTrain_Click()
On Error GoTo Err_UpdateTrain_Click
Dim UpdatedRev As String
Dim db As Database
Dim rs As DAO.Recordset
Dim UpdateTraining As String
Set db = CurrentDb
rs = Me.RecordsetClone
Do Until rs.EOF
If chkTrain = True Then
UpdateTraining = "INSERT INTO EmpDocStatus (EmpEmail, DocID,
Revision, DateAssigned, DateCompleted, JobFunc)" & _'
VALUES ......................................
End If
rs.MoveNext
Loop
Please advise if possible. And let me know if you need more information.
Thanks so much for helping,
TrackTraining