info@peterssoftware.com (Peter De Baets) wrote in message news:<f5f78ef3.0406171328.392f9648@posting.google. com>...[color=blue]
> Perhaps you're trying to use autonumber for something it is not
> designed for. My recommendation would be to use autonumber as a unique
> record key only, and if you need a consecutive number field for some
> other purpose, then create one and populate it yourself on record
> insert.
>
> Hope this helps,
>
> Peter De Baets
> Peter's Software - MS Access Tools for Developers
>
http://www.peterssoftware.com
>
>
bigbinc@hotmail.com (bigbinc) wrote in message news:<d1b33313.0406170619.5f0bd96a@posting.google. com>...[color=green]
> > I am in autonumber hell, it is important for me to get the AutoNumber
> > even in case of previous deleted records, and I cant get the value
> > through a 'test' insert and then delete method. There is no VBA
> > function that has that value in memory somewhere. That would be the
> > ideal.
> >
> > For example:
> >
> > AutoNumber-Field:
> > 1
> > 2
> > 3
> > 4
> > 5 *-
> > 6 *---- I need to delete these records
> > 7 *-
> > 8 *
> > 9 *
> >
> > *Delete*
> > so now I have
> >
> > 1
> > 2
> > 3
> > 4
> > --> Next insert
> > 10
> >
> > From the example above, I really need to get that value '10' without
> > performing a 'test' insert, I was thinking of using a meta-table or
> > something, other than that I think I have tried everything, any ideas?[/color][/color]
Hmm, interesting, I didnt design the database, I just have to work
with it, ideally I need the autonumber-value to link with other tables
and that is why I need to find that value. I figure out the problem,
but wouldnt you agree if I can gather information through GUIDs on
external registry values or build DirectShow movies into an access
database, wouldnt it make sense to have some kind of COM function to
find just a simple value. Obviously the value is stored somewhere,
and I see this question asked all the time, so it is not an insane
idea.