thanks for your reply. I'll try to make the answer simple: the reason is I
have a local table in my database where I, provisionally, keep and edit some
records, before adding them to a sharepoint list, linked to my database.
before adding those records, I need one of their fields to start where the
last in the sharepoint list ended. for instance, the last is 20, I want my 4
records in the proviosional table to be 21, 22, 23 and 24 before adding them
to te list and deleting them from the provisional table. hope i have made
myself clear.
"dch3" wrote:
> What is the specific reason why you want sequential numbers?
>
> When working with a database, there is no guarantee that the database engine
> will return records in any particular order unless you use sorting in your
> query - and then you can always get mixed results based on the specific
> sorting that you use and situations where a record has nearly the same values
> for the fields on which you sort.
>
> "vsoeiro" wrote:
>
> > hi all, need your help on this,
> >
> > I need to add a sequential number to all records in a given table, starting
> > at a given number. I think i should do something like this:
> >
> > dim intStartingValue as Integer
> > 'start at 21, for instance
> > intValue = 20
> >
> > For Each element In group
> > intValue = intValue + 1
> > <field to be updated> = intValue
> > Next
> >
> > My problem is to indicate element as being the records, and group being the
> > table I want to update. Can someone please help on this, or suggest a better
> > aproach?
> >
> > Thanks,
> >
> > Vasco
> >
|