home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / 8700 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!micro-heart-of-gold.mit.edu!uw-beaver!uw-coco!nwnexus!ole!rwing!eskimo!skaiser
  2. From: skaiser@eskimo.com (Steve Kaiser)
  3. Newsgroups: comp.databases
  4. Subject: Re: Help with Microsoft ACCESS, please
  5. Message-ID: <1992Dec28.171552.15401@eskimo.com>
  6. Date: 28 Dec 92 17:15:52 GMT
  7. References: <1992Dec24.002547.22630@Princeton.EDU> <1hckkaINN533@transfer.stratus.com>
  8. Organization: -> ESKIMO NORTH (206) For-Ever <-
  9. Lines: 28
  10.  
  11.  
  12. In article <1992Dec24.002547.22630@Princeton.EDU>  
  13. gdzimmer@phoenix.Princeton.EDU (Gary David Zimmer) writes:
  14. > Questions about Microsoft ACCESS:
  15. >   1)  Is there any way to control the starting value of a counter? Or,
  16. >       alternatively, is there a handy macro that sets the value of a
  17. >       field one greater than the field in the previous record?
  18. No guarantee on this one, but I think the procedure is as follows:
  19. - Start with the table that includes the counter field.  It should be
  20.   empty.
  21. - Create another table with one field, that field having the same name
  22.   as the counter field from the first table.  The field type must be
  23.   set to Long Integer.
  24. - Enter one row in the new table, using the number that is one lower 
  25.   than your desired starting number for the counter.
  26. - Create an append query to append the new table to the counter table.
  27. - Delete the appended row from the counter table.
  28.  
  29. Hope this works for you...
  30.  
  31. -- 
  32. Steve Kaiser                                       Kaiser Data
  33. skaiser@eskimo.com                  13533 Northshire Rd NW
  34. (206) 361-1515                     Seattle, WA 98177-4033
  35. ------------------------------------------------------------------------
  36.