Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creat Tmp Recordset with adMemo
Message
 
À
30/06/2000 02:21:04
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00386954
Message ID:
00386990
Vues:
21
>Creating a memory Recordset, I need a field to be Memo data type
>like the example below. Is there such data type as adMemo?
>I checked the help file but couldn't find it. Any advise? Thanks.
>
> Set rstMemory = New ADODB.Recordset
> With rstMemory
> .CursorLocation = adUseClient
> .LockType = adLockPessimistic
> .Fields.Append "TypeCode", adChar, 20
> .Fields.Append "TypeName", adChar, 50
> .Fields.Append "Amount", adCurrency
> .Fields.Append "Remarks", ????? (need a Memo data type)
> .Open
> End With

According to http://msdn.microsoft.com/library/officedev/off2000/acdatComparisonDataTypes.htm, you should use adLongVarWChar.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform