Modification to last post 
Author Message
 Modification to last post

Ok, I am wondering if anyone can help me here.

I am working with a table containing a list of ID numbers.  I have a
function, NextFreeIDNumber(), which will return the next free ID number
for use in this table.  In other words, if IDs 1-8000 are all taken in the
table, then NextFreeIDNumber() should return 8001.

Well, to run this function is pretty slow.  I thought perhaps I could have
a hidden form periodically run this function so that other forms could
instantly retrieve the next free ID number on demand.  However, I didn't
realize that when the function is run, the whole application halts until
it's done.

Suggestions?

--
joel thornton
mirage marketing



Sat, 08 Jul 2000 03:00:00 GMT  
 Modification to last post

Post the code...



Quote:
> Ok, I am wondering if anyone can help me here.

> I am working with a table containing a list of ID numbers.  I have a
> function, NextFreeIDNumber()



Sat, 08 Jul 2000 03:00:00 GMT  
 Modification to last post

Joel

A real cheat. Have a separate table with just 1 record - the last number
used.  When you need it only 1 record to find which you then update.

:-)

Terry



Quote:
> Ok, I am wondering if anyone can help me here.

> I am working with a table containing a list of ID numbers.  I have a
> function, NextFreeIDNumber(), which will return the next free ID number
> for use in this table.  In other words, if IDs 1-8000 are all taken in
the
> table, then NextFreeIDNumber() should return 8001.

> Well, to run this function is pretty slow.  I thought perhaps I could
have
> a hidden form periodically run this function so that other forms could
> instantly retrieve the next free ID number on demand.  However, I didn't
> realize that when the function is run, the whole application halts until
> it's done.

> Suggestions?

> --
> joel thornton
> mirage marketing



Sun, 09 Jul 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Date/time of last modification for an URL

2. Last modification datetime

3. Questions about my last post.

4. Disregard last post...newbie at work with Visio

5. PS to last Post

6. Please disrgard the last post: Updating a Table of contents in Word 2000

7. Please ignore last posting: "hello world"

8. Correction to last post [Math Hashing Question]

9. Mail Access Question (once more and the last time posted)

10. About my last Post! QBINOUT.DLL

11. **Help** Newbie ??Disregard last post

12. One Last Post

 

 
Powered by phpBB® Forum Software