Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT INTO Method2 ([Contract #]) - doesn't work!
Message
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
INSERT INTO Method2 ([Contract #]) - doesn't work!
Divers
Thread ID:
00583218
Message ID:
00583218
Vues:
47
Help!

The following command is failing:

cnPdox.Execute "INSERT INTO Method2 ([Contract #]) VALUES ('10092169');"

with the message:

The INSERT INTO statement contains the following unknown field name:
'Contract #'. Make sure you have typed the name correctly and try the operation again.

[Contract #] IS a valid field, a KEY field in fact. SQL sees it in an UPDATE query WHERE statement, but not in the INSERT query. Is there a problem with the # character? If I use the same INSERT command with a different field name, it works properly. What is it about the field name 'Contract #'?

Thank you in advance for your time!
John
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform