VB low level IO

  • Thread starter Thread starter Paul Ilacqua
  • Start date Start date
P

Paul Ilacqua

I'm using VB 2005 and want to build and use a counter file. It will be used
as an autonumber field for a database application. It will be hit 10 - 15000
times a day. Naturally I want to lock all reads - writes while the number is
incremented. The file can be read - incremented and be rewritten. I can
cludge something together but I'd like to learn the "correct" method.

Thanks
Paul
 
Don't databases automatically assign the autonumber field? Why would you
want to create a number that a database won't let you enter?
 
It will let me enter any number I send as long as it's not a dupe.... I just
like to have more control over the process of numbering, plus I do alot of
bulk loads and unloads and the autonum issues are many.
 
It will let me enter any number I send as long as it's not a dupe....

That doesn't sound like an autonumber field to me. It sounds like a
user-defined primary key field.
 
Back
Top