Code Error

G

George

I am trying to copy one table into another. I was given
this code and I inserted my field names. Its does work.
When I run it it stops at DoCmd.RunSQL. Can anyone see the
problem. Thanks - George

Private Sub Form_AfterUpdate()
Dim strSQL As String
strSQL = "INSERT INTO T-Issued-Tools-History([Date],[Man
Number],[Tool-ID],[Description],[Insp-Due-Date],
[Quantity])"
strSQL = strSQL & "VALUES Me.Date,Me.Man Number,Me.Tool-
ID,Me.Description,Me.Insp-Due-Date,Me.Quantity)"
DoCmd.SetWarnings False
DoCmd.RunSQL
DoCmd.SetWarnings True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top