Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Updatable
Message
De
24/10/2001 13:09:24
 
 
À
24/10/2001 12:35:01
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Divers
Thread ID:
00572594
Message ID:
00572739
Vues:
32
>The SQL is :
>
>
SELECT prototype.*, trknum.*
>FROM trknum INNER JOIN prototype ON trknum.trknum = prototype.trknum;
>
>TRKNUM only has 1 field: TRKNUM and it is the primary key
>PROTOTYPE has a bunch of fields with ID being the primary key

I think that the update query cannot find the unique field to be updated due to the lack of a where clause. What trknum is going to be updated? The way the update statement is written all trknums would be changed to the value in mtxt0.
Also is prototype the name of the query or are you trying to refer to the base table?


Actually I wanted to write 2 insert statements:
DoCmd.RunSQL ("update prototype set trknum = " & mtxt0 &  ";")
-----this will update ALL trknum to mtxt0 -------
and
DoCmd.RunSQL ("update prototype set cycle = " & mtxt1 &  " where prototype = '" & mtxt36 & "';")
------this will only update 1 record ------
Prototype is the name of a table not a query.
Here's to alcohol...the cause of ... and solution to ... all of life's problems - - Homer J. Simpson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform