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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top