Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find PK Value After Save
Message
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
01362889
Message ID:
01362893
Vues:
8
>I have this line of code in my app:
>
>
>DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
>
>
>It fires the Save Record bar on the Records menu. The question is, if it's being inserted, how do I get the new PK? If it's an update, how do I know what record I'm on?
>
>Thanks

See http://msdn.microsoft.com/en-us/library/aa140015.aspx

SELECT @@IDENTITY (same as in SQL Server)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform