Hoping if somebody could possibly help!
I have a problem with update queries and the lack of a result. I'm trying to take data from two tables and force the results into a separate table( as all the information in the table is a duplication of data elsewhere, but it needs to be keep together as an invoice). I've tried a update query through the GUI trying to force the data from the tables directly I've also tried an SQL query (below) to force from a form, but the message just reads you are about to update 0 rows. The update query also doesn't provide any results. I wonder if it's a problems with the relationships, or maybe just me!! OH Heavens above will some body please help me I think It will drive me insane.
Private Sub Form_Close()
DoCmd.RunSQL "Update [Invoice_Line] " & _
"set Invoice_No=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_No]," & _
"Invoice_Line_Date=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_Line_Date]," & _
"Venue_ID=Forms![Invoice].[Invoice_Line_Query subform]![Venue_ID]" & _
"Where Invoice_No=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_No];"
DoCmd.SetWarnings True
End Sub
Thank you
Ciara
p.s. (The Technical user may be a bit of a lie, you must excuse my lack of access knowledge, I've only been playing with it for 3 weeks.)
I have a problem with update queries and the lack of a result. I'm trying to take data from two tables and force the results into a separate table( as all the information in the table is a duplication of data elsewhere, but it needs to be keep together as an invoice). I've tried a update query through the GUI trying to force the data from the tables directly I've also tried an SQL query (below) to force from a form, but the message just reads you are about to update 0 rows. The update query also doesn't provide any results. I wonder if it's a problems with the relationships, or maybe just me!! OH Heavens above will some body please help me I think It will drive me insane.
Private Sub Form_Close()
DoCmd.RunSQL "Update [Invoice_Line] " & _
"set Invoice_No=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_No]," & _
"Invoice_Line_Date=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_Line_Date]," & _
"Venue_ID=Forms![Invoice].[Invoice_Line_Query subform]![Venue_ID]" & _
"Where Invoice_No=Forms![Invoice].[Invoice_Line_Query subform]![Invoice_No];"
DoCmd.SetWarnings True
End Sub
Thank you
Ciara
p.s. (The Technical user may be a bit of a lie, you must excuse my lack of access knowledge, I've only been playing with it for 3 weeks.)