Might be because Transaction is a SQL reserved word, try wrapping it in square brackets.
myCommand.CommandText = "INSERT INTO [Transaction] ([TrxNumber],[CustomerID],[MovieID]) VALUES (" & T & ", " & C & ", " & M & ")"
also sql is picky about spaces around keywords.
JR