DonnaCulff
Registered User.
- Local time
- Today, 12:33
- Joined
- Aug 25, 2009
- Messages
- 30
Good afternoon all,
I have a query which picks up completed work requests from a work request table (which is linked to Sharepoint)
I would like to add some of the information from that query to a previously created work request table where work requests were entered manually (I want to now update it via the query)
But I cannot get it to update all the results, just the top line.
Here is my code:
CurrentDb.Execute "INSERT INTO tblWorkRequests(WorkRequestID,AnalystName,DateOfRequest,Requestor,WorkRequestTitle,WorkRequestDescription,RequestCompletionDate)VALUES ('" & Me.txtID.Value & "', '" & Me.Assigned_To.Value & "', '" & Me.Created.Value & "', '" & Me.Work_Request_Creted_by.Value & "', '" & Me.Title.Value & "', '" & Me.Description.Value & "', '" & Me.Modified.Value & "')"
This works and doesnt bring back any error messages on a button click which is on a form showing the query results
But, It only adds the one record every time.
If I place my cursor onto the second record on the form, and press the button, it will then, and only then add the next record.
I have tried lots of loops but have myself gone round in circles getting no where. Can anyone help?


I have a query which picks up completed work requests from a work request table (which is linked to Sharepoint)
I would like to add some of the information from that query to a previously created work request table where work requests were entered manually (I want to now update it via the query)
But I cannot get it to update all the results, just the top line.
Here is my code:
CurrentDb.Execute "INSERT INTO tblWorkRequests(WorkRequestID,AnalystName,DateOfRequest,Requestor,WorkRequestTitle,WorkRequestDescription,RequestCompletionDate)VALUES ('" & Me.txtID.Value & "', '" & Me.Assigned_To.Value & "', '" & Me.Created.Value & "', '" & Me.Work_Request_Creted_by.Value & "', '" & Me.Title.Value & "', '" & Me.Description.Value & "', '" & Me.Modified.Value & "')"
This works and doesnt bring back any error messages on a button click which is on a form showing the query results
But, It only adds the one record every time.
If I place my cursor onto the second record on the form, and press the button, it will then, and only then add the next record.
I have tried lots of loops but have myself gone round in circles getting no where. Can anyone help?
