Good morning jzwp11. I am starting to work on this form and I am trying to do the SQL code string for the update botton click event.
This is what I hacked together for the button code, I haven't tried it as I am sure it probably won't work but I was curious if you would let me know if I am on the right track and/or what to do to make it work?
Code:
Private Sub UpdateButton_Click()
Dim mySQL As String
mySQL = "INSERT INTO AssetUsage ([AssetID], [Usage], [UsageDate])"
mySQL = mySQL & " SELECT AssetID, tbUsage, tbUsageDate"
mySQL = mySQL & " FROM Forms![Usage Mass Update]"
End Sub
Where tbUsage and tbUsageDate are the names of the unbound text boxes on the form [Usage Mass Update]. Can you query a form as I have laid out or does something else have to happen?
TIA for your help.