converting data-access type long to ???

  • Thread starter Thread starter G.Esmeijer
  • Start date Start date
G

G.Esmeijer

Friends,
I would like to read an Access database with somefields of type long.
I know that reading an integer goes fine with:
modelcode = sdrSC.GetInt32(sdrSC.GetOrdinal("MODELCODE"));

But what if the modelcode is of type long?



Regards Gerrit Esmeijer
 
Gerrit,

The Access "long integer" type corresponds to System.Int32, so your existing
code should be fine (nulls excluded). The Access "integer" type corresponds
to System.Int16.

HTH,
Nicole
 
Back
Top