converting long in Access to ????

G

G.Esmeijer

Friends,
I have an existing access database with fields of type long.

How do I read these into my application

Reading an field Modelcode of type integer works fine with the following
line of code
modelcode = sdrSC.GetInt32(sdrSC.GetOrdinal("MODELCODE"));

How to handle if if the type is not of type integer but of type Long??

regards

gerrit esmeijer
 
B

Bjorn Abelli

...
I have an existing access database with fields of type long.
modelcode = sdrSC.GetInt32(sdrSC.GetOrdinal("MODELCODE"));

How to handle if if the type is not of type
integer but of type Long??

You could try GetInt64( )

// Bjorn A
 

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

Top